Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CHAD-9171] Re-port fibaro_double_switch to parent/child #317

Merged
merged 9 commits into from Nov 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion drivers/SmartThings/zwave-switch/fingerprints.yml
Expand Up @@ -336,7 +336,7 @@ zwaveManufacturer:
deviceLabel: Fibaro Double Switch
manufacturerId: 0x010F
productType: 0x0203
deviceProfileName: switch-1-button-6-power-energy
deviceProfileName: fibaro-double-switch
- id: "Eaton/5740/0000"
deviceLabel: Eaton 5-Scene Keypad
manufacturerId: 0x001A
Expand Down
302 changes: 302 additions & 0 deletions drivers/SmartThings/zwave-switch/profiles/fibaro-double-switch.yml
@@ -0,0 +1,302 @@
name: fibaro-double-switch
components:
- id: main
capabilities:
- id: switch
version: 1
- id: powerMeter
version: 1
- id: energyMeter
version: 1
- id: button
version: 1
- id: refresh
version: 1
categories:
- name: Switch
- id: button1
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button2
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button3
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button4
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button5
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button6
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
preferences:
- name: "restoreState"
title: "Restore state"
description: "This parameter determines if the device will return to state prior to the power failure after power is restored"
required: false
preferenceType: enumeration
definition:
options:
0: "power off after power failure"
1: "restore state"
default: 1
- name: "ch1OperatingMode"
title: "Ch1 operating mode"
description: "This parameter allows to choose operating for the 1st channel controlled by the S1 switch"
required: false
preferenceType: enumeration
definition:
options:
0: "standard operation"
1: "delay ON"
2: "delay OFF"
3: "auto ON"
4: "auto OFF"
5: "flashing mode"
default: 0
- name: "ch1ReactionToSwitch"
title: "Ch1 reaction to switch"
description: "This parameter determines how the device in timed mode reacts to pushing the switch connected to the S1 terminal"
required: false
preferenceType: enumeration
definition:
options:
0: "cancel and set target state"
1: "no reaction"
2: "reset timer"
default: 0
- name: "ch1TimeParameter"
title: "Ch1 time parameter"
description: "First channel - Time parameter for delay/auto ON/OFF modes"
required: false
preferenceType: number
definition:
minimum: 0
maximum: 32000
default: 50
- name: "ch1PulseTime"
title: "Ch1 pulse time"
description: "This parameter allows to set time of switching to opposite state in flashing mode"
required: false
preferenceType: enumeration
definition:
options:
1: "0.1 s"
5: "0.5 s"
10: "1 s"
20: "2 s"
30: "3 s"
40: "4 s"
50: "5 s"
60: "6 s"
70: "7 s"
80: "8 s"
90: "9 s"
100: "10 s"
300: "30 s"
600: "60 s"
6000: "600 s"
default: 5
- name: "ch2OperatingMode"
title: "Ch2 operating mode"
description: "his parameter allows to choose operating for the 1st channel controlled by the S2 switch"
required: false
preferenceType: enumeration
definition:
options:
0: "standard operation"
1: "delay ON"
2: "delay OFF"
3: "auto ON"
4: "auto OFF"
5: "flashing mode"
default: 0
- name: "ch2ReactionToSwitch"
title: "Ch2 reaction to switch"
description: "This parameter determines how the device in timed mode reacts to pushing the switch connected to the S2 terminal"
required: false
preferenceType: enumeration
definition:
options:
0: "cancel and set target state"
1: "no reaction"
2: "reset timer"
default: 0
- name: "ch2TimeParameter"
title: "Ch2 time parameter"
description: "Second channel - Time parameter for delay/auto ON/OFF modes"
required: false
preferenceType: number
definition:
minimum: 0
maximum: 32000
default: 50
- name: "ch2PulseTime"
title: "Ch2 pulse time"
description: "This parameter allows to set time of switching to opposite state in flashing mode"
required: false
preferenceType: enumeration
definition:
options:
1: "0.1 s"
5: "0.5 s"
10: "1 s"
20: "2 s"
30: "3 s"
40: "4 s"
50: "5 s"
60: "6 s"
70: "7 s"
80: "8 s"
90: "9 s"
100: "10 s"
300: "30 s"
600: "60 s"
6000: "600 s"
default: 5
- name: "switchType"
title: "Switch type"
description: "Parameter defines as what type the device should treat the switch connected to the S1 and S2 terminals"
required: false
preferenceType: enumeration
definition:
options:
0: "momentary switch"
1: "toggle sw. (ON/OFF)"
2: "toggle sw. synced with switch status"
default: 2
- name: "flashingReports"
title: "Flashing reports"
description: "This parameter allows to define if the device sends reports during the flashing mode"
required: false
preferenceType: enumeration
definition:
options:
0: "do not send reports"
1: "sends reports"
default: 0
- name: "s1ScenesSent"
title: "S1 scenes sent"
description: "This parameter determines which actions result in sending scene IDs assigned to them"
required: false
preferenceType: enumeration
definition:
options:
0: "do not send scenes"
1: "key pressed 1 time"
2: "key pressed 2 times"
3: "key pressed 1 & 2 times"
4: "key pressed 3 times"
5: "key pressed 1 & 3 times"
6: "key pressed 2 & 3 times"
7: "key pressed 1, 2 & 3 times"
8: "key held & released"
9: "key Pressed 1 time & held"
10: "key pressed 2 times & held"
11: "key pressed 1, 2 times & held"
12: "key pressed 3 times & held"
13: "key pressed 1, 3 times & held"
14: "key pressed 2, 3 times & held"
15: "key pressed 1, 2, 3 times & held"
default: 0
- name: "s2ScenesSent"
title: "S2 scenes sent"
description: "This parameter determines which actions result in sending scene IDs assigned to them"
required: false
preferenceType: enumeration
definition:
options:
0: "do not send scenes"
1: "key pressed 1 time"
2: "key pressed 2 times"
3: "key pressed 1 & 2 times"
4: "key pressed 3 times"
5: "key pressed 1 & 3 times"
6: "key pressed 2 & 3 times"
7: "key pressed 1, 2 & 3 times"
8: "key held & released"
9: "key Pressed 1 time & held"
10: "key pressed 2 times & held"
11: "key pressed 1, 2 times & held"
12: "key pressed 3 times & held"
13: "key pressed 1, 3 times & held"
14: "key pressed 2, 3 times & held"
15: "key pressed 1, 2, 3 times & held"
default: 0
- name: "ch1EnergyReports"
title: "Ch1 energy reports"
description: "This parameter determines the min. change in consumed power that will result in sending power report"
required: false
preferenceType: enumeration
definition:
options:
1: "0.01 kWh"
10: "0.1 kWh"
50: "0.5 kWh"
100: "1 kWh"
500: "5 kWh"
1000: "10 kWh"
default: 100
- name: "ch2EnergyReports"
title: "Ch2 energy reports"
description: "This parameter determines the min. change in consumed power that will result in sending power report"
required: false
preferenceType: enumeration
definition:
options:
1: "0.01 kWh"
10: "0.1 kWh"
50: "0.5 kWh"
100: "1 kWh"
500: "5 kWh"
1000: "10 kWh"
default: 100
- name: "periodicPowerReports"
title: "Periodic power reports"
description: "This parameter defines in what time interval the periodic power reports are sent"
required: false
preferenceType: enumeration
definition:
options:
1: "1 s"
5: "5 s"
10: "10 s"
600: "600 s"
3600: "3600 s"
32000: "32000 s"
default: 3600
- name: "periodicEnergyReports"
title: "Periodic energy reports"
description: "This parameter determines in what time interval the periodic Energy reports are sent"
required: false
preferenceType: enumeration
definition:
options:
1: "1 s"
5: "5 s"
10: "10 s"
600: "600 s"
3600: "3600 s"
32000: "32000 s"
default: 3600