Skip to content

Commit 0fc7fdf

Browse files
committed
Add support for additional devices
1 parent 29ddc79 commit 0fc7fdf

File tree

5 files changed

+64
-27
lines changed

5 files changed

+64
-27
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@
66
- Suppress device update if no state change for boolean sensors
77

88
New devices:
9+
- Calex LED A60 Zigbee GLS-lamp
10+
- Climax Power plug
911
- Dresden Elektronik ZigBee Light Link wireless electronic ballast
1012
- Gledopto Zigbee LED controller RGB + CCT / RGBW / WWCW / Dimmer
13+
- HEIMAN Door sensor
1114
- Innr E27 Bulb RGBW
1215
- Innr B22 Bulb RGBW
16+
- Innr E14 Candle with white spectrum
17+
- Iris Contact sensor
1318
- JIAWEN Wireless Bulb E27 9W RGBW
1419
- OSRAM Flex RGBW
1520
- OSRAM Outdoor Flex RGBW
@@ -21,13 +26,17 @@ New devices:
2126
- OSRAM Classic A60 RGBW
2227
- OSRAM LIGHTIFY LED CLA60 E27 RGBW
2328
- OSRAM LIGHTIFY Surface Light TW
29+
- Paulmann SmartHome Zigbee LED-stripe
30+
- Paulmann SmartHome Yourled RGB Controller
2431
- Philips Hue Go
32+
- Philips Hue white ambiance Aurelle Rectangle Panel Light
2533
- Philips Hue white and color ambiance E26/E27/E14
2634
- Philips Hue white and color ambiance GU10
2735
- Philips Hue white and color ambiance LightStrip plus
2836
- Philips Hue White and color ambiance Play Lightbar
2937
- Philips Hue white and color ambiance BR30
3038
- Philips Hue Motion Sensor
39+
- Sengled Element Plus (A19)
3140
- Sengled Element Plus Color (A19)
3241
- SmartThings SmartSense multi sensor
3342
- SmartThings SmartThings arrival sensor

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ git pull
3333
### Belkin
3434
- Belkin WeMo smart LED bulb
3535

36+
### Calex
37+
- Calex LED A60 Zigbee GLS-lamp
38+
39+
### Climax
40+
- Climax Power plug
41+
3642
### Commercial Electric
3743
- Commercial Electric Matte White Recessed Retrofit Smart Led Downlight - 4 Inch
3844

@@ -47,6 +53,9 @@ git pull
4753
### Gledopto
4854
- Gledopto Zigbee LED controller RGB + CCT / RGBW / WWCW / Dimmer
4955

56+
### HEIMAN
57+
- HEIMAN Door sensor
58+
5059
### Hive
5160
- Hive Active light dimmable
5261

@@ -75,6 +84,7 @@ git pull
7584
- Innr GU10 Spot
7685
- Innr GU10 Spot 350 lm, dimmable, white spectrum
7786
- Innr E14 Candle
87+
- Innr E14 Candle with white spectrum
7888
- Innr B22 Bulb dimmable
7989
- Innr B22 Bulb RGBW
8090
- Innr Puck Light
@@ -88,6 +98,7 @@ git pull
8898

8999
### Iris
90100
- Iris Smart plug
101+
- Iris Contact sensor
91102

92103
### JIAWEN
93104
- JIAWEN Wireless Bulb E27 9W RGBW
@@ -121,6 +132,10 @@ git pull
121132
- OSRAM Outdoor Flex RGBW
122133
- OSRAM Classic A60 RGBW
123134

135+
### Paulmann
136+
- Paulmann SmartHome Zigbee LED-stripe
137+
- Paulmann SmartHome Yourled RGB Controller
138+
124139
### Philips
125140
- Philips Hue dimmer switch
126141
- Philips Hue Go
@@ -130,6 +145,7 @@ git pull
130145
- Philips Hue white ambiance E14
131146
- Philips Hue white ambiance GU10
132147
- Philips Hue white ambiance E26/E27
148+
- Philips Hue white ambiance Aurelle Rectangle Panel Light
133149
- Philips Hue white and color ambiance BR30
134150
- Philips Hue white and color ambiance GU10
135151
- Philips Hue white and color ambiance E26/E27/E14
@@ -141,6 +157,7 @@ git pull
141157
### Sengled
142158
- Sengled Element Classic (A19)
143159
- Sengled Element Classic (A60)
160+
- Sengled Element Plus (A19)
144161
- Sengled Element Plus Color (A19)
145162
- Sengled Element Touch (A19)
146163

@@ -184,6 +201,5 @@ git pull
184201

185202
### Other
186203
- Custom devices (DiY) DNCKAT single key wired wall light switch
187-
- Paulmann SmartHome Zigbee LED-stripe
188204

189205
If your device is not listed here but [zigbee2mqtt supports](https://github.com/Koenkk/zigbee2mqtt/wiki/Supported-devices) it, support can be added (fairly) easy by creating device adapter.

adapters/__init__.py

Lines changed: 37 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from adapters.base_adapter import Adapter
2+
from adapters.contact_adapter import ContactAdapter
23
from adapters.dimmable_bulb_adapter import DimmableBulbAdapter
34
from adapters.dimmable_ct_bulb_adapter import DimmableCtBulbAdapter
45
from adapters.on_off_switch_adapter import OnOffSwitchAdapter
56
from adapters.rgb_adapter import RGBAdapter
67
from adapters.rgbw_adapter import RGBWAdapter
78
from adapters.ikea.tradfri_wireless_dimmer import TradfriWirelessDimmer
89
from adapters.lumi.sensor_cube import SensorCube
9-
from adapters.lumi.sensor_magnet import SensorMagnet
1010
from adapters.lumi.sensor_motion import SensorMotion
1111
from adapters.lumi.sensor_motion_aq2 import SensorMotionAq2
1212
from adapters.lumi.sensor_smoke import SensorSmoke
@@ -22,23 +22,22 @@
2222
from adapters.lumi.WXKG11LM import WXKG11LM
2323
from adapters.lumi.WXKG12LM import WXKG12LM
2424
from adapters.osram.sensor_motion import SensorMotionOsram
25-
from adapters.samsung.sensor_contact import SensorContact
2625
from adapters.samsung.sensor_arrival import SensorArrival
2726
from adapters.philips.hue_dimmer_switch import HueDimmerSwitch
2827
from adapters.philips.hue_motion_sensor import HueMotionSensor
2928

3029
adapter_by_model = {
31-
'CC2530.ROUTER': Adapter, # Zigbee router based on CC2530 chip
30+
# Belkin
3231
'F7C033': DimmableBulbAdapter, # Belkin WeMo smart LED bulb
32+
# Calex
33+
'421786': DimmableBulbAdapter, # Calex LED A60 Zigbee GLS-lamp
34+
# Climax
35+
'PSS-23ZBS': OnOffSwitchAdapter, # Climax Power plug
36+
# Commercial Electric
3337
'53170161': DimmableCtBulbAdapter, # Commercial Electric Matte White Recessed Retrofit Smart Led Downlight - 4 Inch
38+
# Custom devices (DiY)
39+
'CC2530.ROUTER': Adapter, # Zigbee router based on CC2530 chip
3440
'DNCKATSW001': OnOffSwitchAdapter, # Custom devices (DiY) DNCKAT single key wired wall light switch
35-
'HALIGHTDIMWWE27': DimmableBulbAdapter, # Hive Active light dimmable
36-
'3210-L': OnOffSwitchAdapter, # Iris Smart plug
37-
'KS-SM001': OnOffSwitchAdapter, # Ksentry Electronics Zigbee OnOff Controller
38-
'NL08-0800': DimmableBulbAdapter, # Nanoleaf Ivy smart bulb
39-
'FB56+ZSW05HG1.2': OnOffSwitchAdapter, # Nue ZigBee one gang smart switch
40-
'50045': DimmableBulbAdapter, # Paulmann SmartHome Zigbee LED-stripe
41-
'ZLED-2709': DimmableBulbAdapter, # Trust Smart Dimmable LED Bulb
4241
# Dresden Elektronik
4342
'Mega23M12': RGBWAdapter, # Dresden Elektronik ZigBee Light Link wireless electronic ballast
4443
# GE
@@ -47,6 +46,10 @@
4746
'45857GE': DimmableBulbAdapter, # GE ZigBee in-wall smart dimmer
4847
# Gledopto
4948
'GL-C-008': RGBWAdapter, # Gledopto Zigbee LED controller RGB + CCT / RGBW / WWCW / Dimmer
49+
# HEIMAN
50+
'HS1DS': ContactAdapter, # HEIMAN Door sensor
51+
# Hive
52+
'HALIGHTDIMWWE27': DimmableBulbAdapter, # Hive Active light dimmable
5053
# Ikea
5154
'LED1536G5': DimmableCtBulbAdapter, # IKEA TRADFRI LED bulb E12/E14 400 lumen, dimmable, white spectrum, opal white
5255
'LED1537R6': DimmableCtBulbAdapter, # IKEA TRADFRI LED bulb GU10 400 lumen, dimmable, white spectrum
@@ -71,6 +74,7 @@
7174
'DL 110 W': DimmableBulbAdapter, # Innr Spot wide
7275
'PL 110': DimmableBulbAdapter, # Innr Puck Light
7376
'RB 145': DimmableBulbAdapter, # Innr E14 Candle
77+
'RB 248 T': DimmableCtBulbAdapter, # Innr E14 Candle with white spectrum
7478
'RB 165': DimmableBulbAdapter, # Innr E27 Bulb
7579
'RB 175 W': DimmableBulbAdapter, # Innr E27 Bulb warm dimming
7680
'RB 185 C': RGBWAdapter, # Innr E27 Bulb RGBW
@@ -82,8 +86,17 @@
8286
'SL 110 W': DimmableBulbAdapter, # Innr Spot Flex wide
8387
'ST 110': DimmableBulbAdapter, # Innr Strip Light
8488
'UC 110': DimmableBulbAdapter, # Innr Under Cabinet Light
89+
# Iris
90+
'3210-L': OnOffSwitchAdapter, # Iris Smart plug
91+
'3320-L': ContactAdapter, # Iris Contact sensor
8592
# JIAWEN
8693
'K2RGBW01': RGBWAdapter, # JIAWEN Wireless Bulb E27 9W RGBW
94+
# Ksentry
95+
'KS-SM001': OnOffSwitchAdapter, # Ksentry Electronics Zigbee OnOff Controller
96+
# Nanoleaf
97+
'NL08-0800': DimmableBulbAdapter, # Nanoleaf Ivy smart bulb
98+
# Nue
99+
'FB56+ZSW05HG1.2': OnOffSwitchAdapter, # Nue ZigBee one gang smart switch
87100
# OSRAM
88101
'AA68199': DimmableCtBulbAdapter, # OSRAM LIGHTIFY LED PAR16 50 GU10 tunable white
89102
'AA69697': RGBWAdapter, # OSRAM Classic A60 RGBW
@@ -103,21 +116,25 @@
103116
'4058075036147': RGBWAdapter, # OSRAM Smart+ Gardenpole RGBW
104117
'4058075816718': RGBWAdapter, # OSRAM SMART+ outdoor wall lantern RGBW
105118
'4058075816794': DimmableCtBulbAdapter, # OSRAM Smart+ Ceiling TW
119+
# Paulmann
120+
'50045': DimmableBulbAdapter, # Paulmann SmartHome Zigbee LED-stripe
121+
'50049': RGBAdapter, # Paulmann SmartHome Yourled RGB Controller
106122
# Philips
123+
'3216331P5': DimmableCtBulbAdapter, # Philips Hue white ambiance Aurelle Rectangle Panel Light
107124
'324131092621': HueDimmerSwitch, # Philips Hue dimmer switch
108125
'3261030P7': DimmableCtBulbAdapter, # Philips Hue Being
109126
'433714': DimmableBulbAdapter, # Philips Hue Lux A19 bulb E27
110127
'7146060PH': RGBWAdapter, # Philips Hue Go
111128
'7199960PH': RGBAdapter, # Philips Hue Iris
112129
'7299355PH': RGBAdapter, # Philips Hue white and color ambiance LightStrip
113130
'7299760PH': RGBAdapter, # Philips Hue Bloom
114-
'8718696449691': DimmableBulbAdapter, # Philips Hue White Single bulb B22
131+
'8718696449691': DimmableBulbAdapter, # Philips Hue white Single bulb B22
115132
'8718696485880': RGBWAdapter, # Philips Hue white and color ambiance GU10
116133
'8718696548738': DimmableCtBulbAdapter, # Philips Hue white ambiance E26/E27
117134
'8718696598283': DimmableCtBulbAdapter, # Philips Hue white ambiance GU10
118135
'8718696695203': DimmableCtBulbAdapter, # Philips Hue white ambiance E14
119136
'915005106701': RGBWAdapter, # Philips Hue white and color ambiance LightStrip plus
120-
'915005733701': RGBWAdapter, # Philips Hue White and color ambiance Play Lightbar
137+
'915005733701': RGBWAdapter, # Philips Hue white and color ambiance Play Lightbar
121138
'9290002579A': RGBWAdapter, # Philips Hue white and color ambiance BR30
122139
'9290011370': DimmableBulbAdapter, # Philips Hue white A60 bulb E27
123140
'9290012573A': RGBWAdapter, # Philips Hue white and color ambiance E26/E27 (with Color Temperature)
@@ -126,26 +143,29 @@
126143
'E11-G13': DimmableBulbAdapter, # Sengled Element Classic (A19)
127144
'E11-G23': DimmableBulbAdapter, # Sengled Element Classic (A60)
128145
'E11-N1EA': RGBWAdapter, # Sengled Element Plus Color (A19)
146+
'Z01-A19NAE26': DimmableCtBulbAdapter, # Sengled Element Plus (A19)
129147
'Z01-CIA19NAE26': DimmableBulbAdapter, # Sengled Element Touch (A19)
130148
# SmartThings
131-
'STSS-MULT-001': SensorContact, # SmartThings SmartSense multi sensor
149+
'STSS-MULT-001': ContactAdapter, # SmartThings SmartSense multi sensor
132150
'STS-PRS-251': SensorArrival, # SmartThings SmartThings arrival sensor
133151
# Sylvania
152+
'72922-A': OnOffSwitchAdapter, # Sylvania SMART+ Smart Plug
134153
'73693': RGBWAdapter, # Sylvania LIGHTIFY LED RGBW A19
135-
'73742': DimmableCtBulbAdapter, # Sylvania LIGHTIFY LED adjustable white RT 5/6
136154
'73740': DimmableCtBulbAdapter, # Sylvania LIGHTIFY LED adjustable white BR30
155+
'73742': DimmableCtBulbAdapter, # Sylvania LIGHTIFY LED adjustable white RT 5/6
137156
'74282': DimmableCtBulbAdapter, # Sylvania Smart Home adjustable white MR16 LED bulb
138157
'74283': DimmableBulbAdapter, # Sylvania LIGHTIFY LED soft white dimmable A19
139158
'74696': DimmableBulbAdapter, # Sylvania LIGHTIFY LED soft white dimmable A19
140-
'72922-A': OnOffSwitchAdapter, # Sylvania SMART+ Smart Plug
159+
# Trust
160+
'ZLED-2709': DimmableBulbAdapter, # Trust Smart Dimmable LED Bulb
141161
# Xiaomi
142162
'ZNCZ02LM': Plug, # Xiaomi Mi power plug ZigBee
143163
'QBCZ11LM': Plug, # Xiaomi Aqara socket Zigbee (on/off, power measurement)
144164
'MFKZQ01LM': SensorCube, # Xiaomi Mi smart home cube
145165
'WXKG02LM': WXKG02LM, # Xiaomi Aqara double key wireless wall switch
146166
'WXKG03LM': WXKG03LM, # Xiaomi Aqara single key wireless wall switch
147-
'MCCGQ01LM': SensorMagnet, # Xiaomi MiJia door & window contact sensor
148-
'MCCGQ11LM': SensorMagnet, # Xiaomi Aqara door & window contact sensor
167+
'MCCGQ01LM': ContactAdapter, # Xiaomi MiJia door & window contact sensor
168+
'MCCGQ11LM': ContactAdapter, # Xiaomi Aqara door & window contact sensor
149169
'RTCGQ01LM': SensorMotion, # Xiaomi MiJia human body movement sensor
150170
'RTCGQ11LM': SensorMotionAq2, # Xiaomi Aqara human body movement and illuminance sensor
151171
'WXKG01LM': WXKG01LM, # Xiaomi MiJia wireless switch

adapters/samsung/sensor_contact.py renamed to adapters/contact_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from devices.sensor.contact import ContactSensor
33

44

5-
class SensorContact(AdapterWithBattery):
5+
class ContactAdapter(AdapterWithBattery):
66
def __init__(self, devices):
77
super().__init__(devices)
88
self.devices.append(ContactSensor(devices, 'sensor', 'contact'))

adapters/lumi/sensor_magnet.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)