Просмотр исходного кода

Add support for Nedis zigbee door/window sensors.

Issue #702
Jason Rumney 2 лет назад
Родитель
Сommit
cc1f53d1ae

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -341,3 +341,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [lhassel](https://github.com/lhassel) for assisting with support for a variant of Inkbird iBBQ-4T thermometers with measurements combined into a single dp similar to IBS-M1S.
 - [SergioFuchs](https://github.com/SergioFuchs) for assisting with support for Moes star projector.
 - [Batav93](https://github.com/Batav93) for assisting with support for Duux Whisper Flex fans.
+- [Atirion](https://github.com/Atirion) for assisting with support for Nedis Door/Window sensors.

+ 1 - 0
DEVICES.md

@@ -489,6 +489,7 @@ port and password.
 ### Devices supported via Zigbee hubs
 
 - LoraTap SC500ZB-V2 curtain controller
+- Nedis ZBSD10WT door/window sensor
 - Nedis ZBSC10WT temperature and humidity sensor
 - ZTH08ZTU temperature and humidity sensor
 

+ 22 - 0
custom_components/tuya_local/devices/nedis_openclose_sensor.yaml

@@ -0,0 +1,22 @@
+name: Door/window sensor
+products:
+  - id: bzxlofth
+    name: Nedis Zigbee ZBSD10WT
+primary_entity:
+  entity: binary_sensor
+  class: door
+  dps:
+    - id: 1
+      type: boolean
+      name: sensor
+secondary_entities:
+  - entity: sensor
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 2
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+