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

Add support for KKMoon air quality monitor

Issue #489
Jason Rumney 2 лет назад
Родитель
Сommit
7eec804ffb

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -233,3 +233,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [grangoni](https://github.com/grangoni) for contributing support for PH-W218 water quality monitors.
 - [antonio1475](https://github.com/antonio1475) for contributing support for Rojeco pet feeders.
 - [erelke](https://github.com/erelke) for contributing Hungarian translations.
+- [p-owerscripter](https://github.com/p-owerscripter) for contributing support for KKMoon air quality monitors.

+ 1 - 0
DEVICES.md

@@ -339,6 +339,7 @@ of device.
 - Catit Pixi smart fountain
 - Catit pet feeder (experimental)
 - Emax EM3378 Weather Station (selling as Hiper P1 and other rebrands)
+- KKMoon 7in1 air quality monitor
 - Kogan bidet toilet seat
 - Konlen/Rockson WF96L water level controller
 - Nedis pet feeder

+ 68 - 0
custom_components/tuya_local/devices/kkmoon_airquality_monitor.yaml

@@ -0,0 +1,68 @@
+name: Air quality
+product:
+  - id: ezovdhzaxsovyzf0
+    name: 7in1 air quality meter
+primary_entity:
+  entity: sensor
+  name: Air quality
+  icon: "mdi:factory"
+  dps:
+    - id: 21
+      type: string
+      name: sensor
+secondary_entities:
+  - entity: sensor
+    name: PM 2.5
+    class: pm25
+    dps:
+      - id: 2
+        type: integer
+        name: sensor
+        unit: µg/m³
+        class: measurement
+  - entity: sensor
+    name: Formaldehyde
+    class: volatile_organic_compounds
+    dps:
+      - id: 27
+        type: integer
+        name: sensor
+        unit: µg/m³
+        class: measurement
+  - entity: sensor
+    name: Temperature
+    class: temperature
+    dps:
+      - id: 12
+        type: integer
+        name: sensor
+        unit: C
+        class: measurement
+        mapping:
+          - scale: 10
+  - entity: sensor
+    name: Humidity
+    class: humidity
+    dps:
+      - id: 13
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+  - entity: sensor
+    name: Volatile organic compounds
+    class: volatile_organic_compounds
+    dps:
+      - id: 14
+        type: integer
+        name: sensor
+        unit: µg/m³
+        class: measurement
+  - entity: sensor
+    name: CO2
+    class: carbon_dioxide
+    dps:
+      - id: 15
+        type: integer
+        name: sensor
+        unit: ppm