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

Add TC700_Pro_Wifi air quality monitor (#5360)

* probably functional tc700 config

* actually working config

* fix dp 107

* Update custom_components/tuya_local/devices/tc700_airquality_nonitor.yaml

* Remove TVOC name from tc700 air quality monitor

Translation exists

* Fix entity type for Recordings count in YAML

A readonly number is a sensor

* Rename 'Recordings count' to 'Record count' and add category

Recordings implies video or audio.
Since this is just air sensors, it should be history records.
Mark as diagnostic, since this is not a main sensor for the device.

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
Mihail Gribkov 1 неделя назад
Родитель
Сommit
37652dc6b6
1 измененных файлов с 87 добавлено и 0 удалено
  1. 87 0
      custom_components/tuya_local/devices/tc700_airquality_nonitor.yaml

+ 87 - 0
custom_components/tuya_local/devices/tc700_airquality_nonitor.yaml

@@ -0,0 +1,87 @@
+name: TC700 Air Quality Monitor
+products:
+  - id: rvkhlmxnhytxua4a
+    model: TC700_Pro_Wifi
+entities:
+  - entity: sensor
+    class: temperature
+    dps:
+      - id: 1
+        type: integer
+        name: sensor
+        unit: C
+        class: measurement
+        mapping:
+          - scale: 10
+  - entity: sensor
+    class: humidity
+    dps:
+      - id: 2
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+  - entity: sensor
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 4
+        type: integer
+        name: sensor
+        unit: "%"
+  - entity: sensor
+    class: carbon_dioxide
+    dps:
+      - id: 101
+        type: integer
+        name: sensor
+        unit: ppm
+        class: measurement
+  - entity: sensor
+    class: pm1
+    dps:
+      - id: 102
+        type: integer
+        name: sensor
+        unit: ugm3
+        class: measurement
+  - entity: sensor
+    class: pm25
+    dps:
+      - id: 103
+        type: integer
+        name: sensor
+        unit: ugm3
+        class: measurement
+  - entity: sensor
+    class: pm10
+    dps:
+      - id: 104
+        type: integer
+        name: sensor
+        unit: ugm3
+        class: measurement
+  - entity: sensor
+    name: HCHO
+    class: volatile_organic_compounds
+    dps:
+      - id: 105
+        type: integer
+        name: sensor
+        unit: ugm3
+        class: measurement
+  - entity: sensor
+    class: volatile_organic_compounds
+    dps:
+      - id: 106
+        type: integer
+        name: sensor
+        unit: ugm3
+        class: measurement
+  - entity: sensor
+    name: Record count
+    category: diagnostic
+    dps:
+      - id: 107
+        type: integer
+        name: sensor