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

Add support for Nedis air quality monitor.

Issue #384
Jason Rumney 3 лет назад
Родитель
Сommit
ce85574ac0
3 измененных файлов с 64 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 62 0
      custom_components/tuya_local/devices/nedis_airquality.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -172,3 +172,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [LeandroIssa](https://github.com/LeandroIssa) for contributing Brazilian Portuguese translations.
 - [YuriiMaiboroda](https://github.com/YuriiMaiboroda) for contributing Ukrainian translations.
 - [samios88](https://github.com/samios88) for assistance supporting Nedis pet feeders.
+- [janchrillesen](https://github.com/janchrillesen) for assistance supporting Nedis air quality monitors.

+ 1 - 0
DEVICES.md

@@ -256,6 +256,7 @@ generic configurations known to work with multiple brands of device.
 - Catit Pixi smart fountain
 - Catit pet feeder (experimental)
 - Nedis pet feeder
+- Nedis WIFISA10CWT air quality monitor
 - Qoto 03 smart water valve / sprinkler controller
 - SD123 HPR01 human presence radar
 - Universal remote control (supports sensors only)

+ 62 - 0
custom_components/tuya_local/devices/nedis_airquality.yaml

@@ -0,0 +1,62 @@
+name: Nedis air quality monitor
+product:
+  - id: ipbqjatfsxghe3dc
+    name: Nedis WIFISA10CWT
+primary_entity:
+  entity: sensor
+  name: Formaldehyde
+  class: volatile_organic_compounds
+  dps:
+    - id: 2
+      type: integer
+      name: sensor
+      unit: ugm3
+      class: measurement
+      mapping:
+        - scale: 0.1
+secondary_entities:
+  - entity: sensor
+    name: Temperature
+    class: temperature
+    dps:
+      - id: 18
+        type: integer
+        name: sensor
+        unit: C
+        class: measurement
+        mapping:
+          - scale: 10
+  - entity: sensor
+    name: Humidity
+    class: humidity
+    dps:
+      - id: 19
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+        mapping:
+          - scale: 10
+  - entity: sensor
+    name: Volatile organic compounds
+    class: volatile_organic_compounds
+    dps:
+      - id: 21
+        type: integer
+        name: sensor
+        unit: ppm
+        class: measurement
+        mapping:
+          - scale: 10
+  - entity: sensor
+    name: Carbon dioxide
+    class: carbon_dioxide
+    dps:
+      - id: 22
+        type: integer
+        name: sensor
+        unit: ppm
+        class: measurement
+
+
+