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

Add support for Nedis ZBSC10WT zigbee climate sensors.

Discussion #831
Jason Rumney 2 лет назад
Родитель
Сommit
a04e2b114d

+ 1 - 0
DEVICES.md

@@ -478,6 +478,7 @@ of device.
 ### Devices supported via Zigbee hubs
 
 - LoraTap SC500ZB-V2 curtain controller
+- Nedis ZBSC10WT temperature and humidity sensor
 - ZTH08ZTU temperature and humidity sensor
 
 NOTE: this project does not intend to expand the scope to support non-Tuya

+ 37 - 0
custom_components/tuya_local/devices/zigbee_zb10wt_temphumid_sensor.yaml

@@ -0,0 +1,37 @@
+name: Climate sensor
+products:
+  - id: fie1dpkm
+    name: Nedis ZBSC10WT
+primary_entity:
+  entity: sensor
+  class: temperature
+  dps:
+    - id: 1
+      type: integer
+      name: sensor
+      unit: C
+      class: measurement
+      mapping:
+        - scale: 10
+secondary_entities:
+  - entity: sensor
+    class: humidity
+    dps:
+      - id: 2
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+        mapping:
+          - scale: 10
+  - entity: sensor
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 4
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+        mapping:
+          - scale: 10