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

edge driver for aeotec pico switch and pico duo switch added #978

11 changes: 11 additions & 0 deletions drivers/SmartThings/zigbee-switch/fingerprints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2177,6 +2177,17 @@ zigbeeManufacturer:
manufacturer: Insta GmbH
model: NEXENTRO Dimming Actuator
deviceProfileName: on-off-level
#AEOTEC
- id: "AEOTEC/ZGA002"
manufacturer: AEOTEC
model: "ZGA002"
deviceLabel: Aeotec Pico Switch
deviceProfileName: aeotec-pico-switch
- id: "AEOTEC/ZGA003"
manufacturer: AEOTEC
model: "ZGA003"
deviceLabel: Aeotec Pico Duo Switch
deviceProfileName: aeotec-pico-switch
zigbeeGeneric:
- id: "genericSwitch"
deviceLabel: Zigbee Switch
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
name: aeotec-pico-switch-two-button-control
components:
- id: main
capabilities:
- id: switch
version: 1
- id: powerMeter
version: 1
- id: energyMeter
version: 1
- id: powerConsumptionReport
version: 1
- id: voltageMeasurement
version: 1
- id: currentMeasurement
version: 1
- id: temperatureAlarm
version: 1
- id: refresh
version: 1
categories:
- name: Switch
- id: button1
label: Switch 1
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button2
label: Switch 2
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
metadata:
deviceType: Switch
ocfDeviceType: oic.d.switch
deviceTypeId: Switch
preferences:
- name: "s1LocalControlMode"
title: "S1 Local Control Mode"
description: "Enable/Disable local control mode of S1."
required: false
preferenceType: enumeration
definition:
options:
0: "Disabled"
1: "Enabled"
default: 1
- name: "s2LocalControlMode"
title: "S2 Local Control Mode"
description: "Enable/Disable local control mode of S2."
required: false
preferenceType: enumeration
definition:
options:
0: "Disabled"
1: "Enabled"
default: 1
- name: "s1ExternalSwitchConfig"
title: "S1 External Switch Configuration"
description: "Change switch configuration of S1."
required: false
preferenceType: enumeration
definition:
options:
0: "2-State Toggle Switch"
1: "Momentary Switch"
4: "Auto Detect"
default: 0
- name: "s2ExternalSwitchConfig"
title: "S2 External Switch Configuration"
description: "Change switch configuration of S2."
required: false
preferenceType: enumeration
definition:
options:
0: "2-State Toggle Switch"
1: "Momentary Switch"
4: "Auto Detect"
default: 0
- name: "s1Actions"
title: "S1 External Switch Actions"
description: "Adjust S1 External Switch Actions."
required: false
preferenceType: enumeration
definition:
options:
0: "State 2: ON | State 1: OFF"
1: "State 2: OFF | State 1: ON"
2: "Toggle"
default: 2
- name: "s2Actions"
title: "S2 External Switch Actions"
description: "Adjust S2 External Switch Actions."
required: false
preferenceType: enumeration
definition:
options:
0: "State 2: ON | State 1: OFF"
1: "State 2: OFF | State 1: ON"
2: "Toggle"
default: 2
93 changes: 93 additions & 0 deletions drivers/SmartThings/zigbee-switch/profiles/aeotec-pico-switch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: aeotec-pico-switch
components:
- id: main
capabilities:
- id: switch
version: 1
- id: button
version: 1
- id: powerMeter
version: 1
- id: energyMeter
version: 1
- id: powerConsumptionReport
version: 1
- id: voltageMeasurement
version: 1
- id: currentMeasurement
version: 1
- id: temperatureAlarm
version: 1
- id: refresh
version: 1
categories:
- name: Switch
metadata:
deviceType: Switch
ocfDeviceType: oic.d.switch
deviceTypeId: Switch
preferences:
- name: "s1LocalControlMode"
title: "S1 Local Control Mode"
description: "Enable/Disable local control mode of S1."
required: false
preferenceType: enumeration
definition:
options:
0: "Disabled"
1: "Enabled"
default: 1
- name: "s2LocalControlMode"
title: "S2 Local Control Mode"
description: "Enable/Disable local control mode of S2."
required: false
preferenceType: enumeration
definition:
options:
0: "Disabled"
1: "Enabled"
default: 1
- name: "s1ExternalSwitchConfig"
title: "S1 External Switch Configuration"
description: "Change switch configuration of S1."
required: false
preferenceType: enumeration
definition:
options:
0: "2-State Toggle Switch"
1: "Momentary Switch"
4: "Auto Detect"
default: 0
- name: "s2ExternalSwitchConfig"
title: "S2 External Switch Configuration"
description: "Change switch configuration of S2."
required: false
preferenceType: enumeration
definition:
options:
0: "2-State Toggle Switch"
1: "Momentary Switch"
4: "Auto Detect"
default: 0
- name: "s1Actions"
title: "S1 External Switch Actions"
description: "Adjust S1 External Switch Actions."
required: false
preferenceType: enumeration
definition:
options:
0: "State 2: ON | State 1: OFF"
1: "State 2: OFF | State 1: ON"
2: "Toggle"
default: 2
- name: "s2Actions"
title: "S2 External Switch Actions"
description: "Adjust S2 External Switch Actions."
required: false
preferenceType: enumeration
definition:
options:
0: "State 2: ON | State 1: OFF"
1: "State 2: OFF | State 1: ON"
2: "Toggle"
default: 2
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: switch-scenes-power-energy-consumption-report-aeotec
components:
- id: main
capabilities:
- id: switch
version: 1
- id: button
version: 1
- id: powerMeter
version: 1
- id: energyMeter
version: 1
- id: powerConsumptionReport
version: 1
- id: voltageMeasurement
version: 1
- id: currentMeasurement
version: 1
- id: refresh
version: 1
categories:
- name: Switch
metadata:
deviceType: Switch
ocfDeviceType: oic.d.switch
deviceTypeId: Switch
Loading
Loading