Explorar el Código

Add Tongou TOVTH-216WTTDA Temp/Humidity Switch (#4785)

* Add Tongou TOVTH-216WTTDA Temp/Humidity Switch

* Update tongou_tovth-216_wttda_switch.yaml

* Update tongou_tovth-216_wttda_switch.yaml

* Update tongou_tovth-216_wttda_switch.yaml

* fix (tongou_tovth216wttda_switch): naming

- Avoid punctuation in filename, format as brand_model_type as per evolved convention.
- remove description as model, promote model_id instead.

PR #4785

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
terryfork hace 1 día
padre
commit
5138650068

+ 40 - 0
custom_components/tuya_local/devices/tongou_tovth216wttda_switch.yaml

@@ -0,0 +1,40 @@
+name: Sensor switch
+products:
+  - id: oj6soirdngp9jijy
+    manufacturer: Tongou
+    model: TOVTH-216WTTDA
+entities:
+  - entity: sensor
+    class: temperature
+    dps:
+      - id: 27
+        type: integer
+        name: sensor
+        unit: C
+        class: measurement
+        mapping:
+          - scale: 10
+  - entity: sensor
+    class: humidity
+    dps:
+      - id: 46
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+  - entity: switch
+    translation_key: switch_x
+    translation_placeholders:
+      x: "1"
+    dps:
+      - id: 2
+        type: boolean
+        name: switch
+  - entity: switch
+    translation_key: switch_x
+    translation_placeholders:
+      x: "2"
+    dps:
+      - id: 101
+        type: boolean
+        name: switch