Skip to content

Commit 9d979f1

Browse files
authored
WWST add support for Zooz ZEN05 (SmartThingsCommunity#2843)
* Adding support for ZEN05
1 parent dbaa2e1 commit 9d979f1

4 files changed

Lines changed: 113 additions & 0 deletions

File tree

drivers/SmartThings/zwave-switch/fingerprints.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,13 @@ zwaveManufacturer:
916916
manufacturerId: 0x010F
917917
productType: 0x0102
918918
deviceProfileName: fibaro-dimmer-2
919+
#Zooz
920+
- id: "Zooz/ZEN05"
921+
deviceLabel: Zooz Outdoor Plug ZEN05
922+
manufacturerId: 0x027A
923+
productType: 0x7000
924+
productId: 0xB001
925+
deviceProfileName: zooz-zen05-plug
919926
#Shelly/Qubino
920927
- id: 1120/2/137
921928
deviceLabel: Wave Plug UK
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
name: zooz-zen05-plug
2+
components:
3+
- id: main
4+
capabilities:
5+
- id: switch
6+
version: 1
7+
- id: powerMeter
8+
version: 1
9+
- id: energyMeter
10+
version: 1
11+
- id: voltageMeasurement
12+
version: 1
13+
- id: refresh
14+
version: 1
15+
categories:
16+
- name: SmartPlug
17+
preferences:
18+
- name: "driverInfo"
19+
title: "Driver Info"
20+
description: "This driver may have limited features, check the online Zooz documentation for information about custom drivers."
21+
preferenceType: string
22+
definition:
23+
stringType: paragraph
24+
#param 1
25+
- name: "ledMode"
26+
title: "LED Indicator Behavior"
27+
description: "Decide how the LED indicator behaves depending on the on/off status of the plug."
28+
required: false
29+
preferenceType: enumeration
30+
definition:
31+
options:
32+
0: "On when on, off when off *"
33+
1: "On when off, off when on"
34+
2: "Always off"
35+
default: 0
36+
#param 7
37+
- name: "ledBrightness"
38+
title: "LED Brightness"
39+
description: "Choose the LED indicator brightness level."
40+
required: false
41+
preferenceType: enumeration
42+
definition:
43+
options:
44+
0: "High"
45+
1: "Medium"
46+
2: "Low *"
47+
default: 2
48+
#param 2
49+
- name: "autoTurnOff"
50+
title: "Auto-off Timer"
51+
description: "Default: 0=disabled; Auto-off timer will automatically turn the Smart Plug off after x minutes once it has been turned on."
52+
required: false
53+
preferenceType: integer
54+
definition:
55+
minimum: 0
56+
maximum: 65535
57+
default: 0
58+
#param 4
59+
- name: "autoTurnOn"
60+
title: "Auto-on Timer"
61+
description: "Default: 0=disabled; Auto-on timer will automatically turn the Smart Plug on after x minutes once it has been turned off."
62+
required: false
63+
preferenceType: integer
64+
definition:
65+
minimum: 0
66+
maximum: 65535
67+
default: 0
68+
#param 6
69+
- name: "powerRecovery"
70+
title: "On/Off Status After Power Failure"
71+
description: "Choose the recovery state for your Smart Plug if power outage occurs."
72+
required: false
73+
preferenceType: enumeration
74+
definition:
75+
options:
76+
2: "Restores Prior Status *"
77+
0: "Always Off once restored"
78+
1: "Always On once restored"
79+
default: 2
80+
#param 8
81+
- name: "manualControl"
82+
title: "Manual Control"
83+
description: "Disable or enable manual control (turning the Smart Plug on and off using the physical button)."
84+
required: false
85+
preferenceType: enumeration
86+
definition:
87+
options:
88+
0: "Disabled"
89+
1: "Enabled *"
90+
default: 1

drivers/SmartThings/zwave-switch/src/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ local driver_template = {
102102
capabilities.battery,
103103
capabilities.energyMeter,
104104
capabilities.powerMeter,
105+
capabilities.voltageMeasurement,
105106
capabilities.colorControl,
106107
capabilities.button,
107108
capabilities.temperatureMeasurement,

drivers/SmartThings/zwave-switch/src/preferences.lua

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,21 @@ local devices = {
362362
dimmerPaddleControl = {parameter_number = 27, size = 1}
363363
}
364364
},
365+
ZOOZ_ZEN05 = {
366+
MATCHING_MATRIX = {
367+
mfrs = 0x027A,
368+
product_types = 0x7000,
369+
product_ids = 0xB001
370+
},
371+
PARAMETERS = {
372+
ledMode = { parameter_number = 1, size = 1 },
373+
autoTurnOff = { parameter_number = 2, size = 4 },
374+
autoTurnOn = { parameter_number = 4, size = 4 },
375+
powerRecovery = { parameter_number = 6, size = 1 },
376+
ledBrightness = { parameter_number = 7, size = 1 },
377+
manualControl = { parameter_number = 8, size = 1 },
378+
}
379+
},
365380
AEOTEC_HEAVY_DUTY = {
366381
MATCHING_MATRIX = {
367382
mfrs = 0x0086,

0 commit comments

Comments
 (0)