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

Add support for Zigbee ZTH08ZTU temperature and humidity sensor

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

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -287,3 +287,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [WilcoE](https://github.com/WilcoE) for assisting with support for Poolex Qline new Q7 variant of pool heatpumps.
 - [WiestDaessle](https://github.com/WiestDaessle) for contributing support for Etersky curtain switches.
 - [Xpl0jd](https://github.com/Xpl0jd) for contributing support for Nedis portable air conditioners.
+- [jirijanu](https://github.com/jirijanu) for assisting with support for ZTH08ZTU zigbee temperature and humidity sensors.

+ 1 - 1
DEVICES.md

@@ -413,7 +413,7 @@ of device.
 ### Devices supported via Zigbee hubs
 
 - LoraTap SC500ZB-V2 curtain controller
-
+- ZTH08ZTU temperature and humidity sensor
 
 NOTE: this project does not intend to expand the scope to support non-Tuya
 devices via Tuya hubs.  Though it may be techincally feasible to do such a

+ 28 - 0
custom_components/tuya_local/devices/zigbee_zth08ztu_temphumid_sensor.yaml

@@ -0,0 +1,28 @@
+name: Temperature humidity sensor
+products:
+  - id: cirvgep4
+    name: ZTH08ZTU
+primary_entity:
+  entity: sensor
+  name: Temperature
+  class: temperature
+  dps:
+    - id: 1
+      type: integer
+      name: sensor
+      unit: C
+      class: measurement
+      mapping:
+        - scale: 10
+secondary_entities:
+  - entity: sensor
+    name: Humidity
+    class: humidity
+    dps:
+      - id: 2
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+
+