Răsfoiți Sursa

feat (devices): add TH02 Z3-P3Z temperature and humidity sensor

Issue #4230
Jason Rumney 3 luni în urmă
părinte
comite
9856bdf969

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -1213,3 +1213,4 @@ Further device support has been made with the assistance of users. Please consid
 - [laskas-p](https://github.com/laskas-p) for contributing support for Wellio D008A 20L dehumidifier.
 - [akritikos](https://github.com/akritikos) for assisting with support for Eureka ERK-S62 adjustable desk.
 - [BigGeorgeTx](https://github.com/BigGeorgeTx) for contributing improvements to Feit dimmer.
+- [pawlak2](https://github.com/pawlak2) for assisting with support for TH02 Z3-P3Z temperature and humidity sensor.

+ 1 - 0
DEVICES.md

@@ -1294,6 +1294,7 @@ entity types as sub devices.
 - PY321-Z-TY energy meter
 - Smart air box BR V2
 - Temperature and humidity sensor with alarm feature
+- TH02 Z3-P3Z temperature and humidity sensor
 - WL-898WZ water leak sensor
 - WL-RTCZ-05Z human presence sensor
 - Zemismart SPM01 energy meter

+ 32 - 0
custom_components/tuya_local/devices/z3p3z_th02_temphumid.yaml

@@ -0,0 +1,32 @@
+name: Temperature and humidity
+products:
+  - id: vtA4pDd6PLUZzXgZ
+    model: TH02 Z3-P3Z
+entities:
+  - entity: sensor
+    class: humidity
+    dps:
+      - id: 101
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+  - entity: sensor
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 102
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+  - entity: sensor
+    class: temperature
+    category: diagnostic
+    dps:
+      - id: 103
+        type: integer
+        name: sensor
+        unit: C
+        class: measurement
+