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

Add support for Inkbird PTH-9CW air quality monitor

Issue #528
Jason Rumney 2 лет назад
Родитель
Сommit
858713c5e4

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -241,3 +241,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [darki73](https://github.com/darki73) for contributing support for SHerko smart curtain motorss.
 - [karolzamosc](https://github.com/karolzamosc) for assisting with support for Rumba bathroom heaters, BHT-002-GALW thermostats.
 - [pnm1977](https://github.com/pnm1977) for assisting with support for Gosund UP111_RTL smartplugs.
+- [jprasm](https://github.com/jprasm) for assisting with support for Inkbird air quality monitors.

+ 1 - 0
DEVICES.md

@@ -345,6 +345,7 @@ of device.
 - Catit Pixi smart fountain
 - Catit pet feeder (2.2kg dispenser and 6 meal versions)
 - Emax EM3378 Weather Station (selling as Hiper P1 and other rebrands)
+- Inkbird PTH-9CW air quality monitor
 - KKMoon 7in1 air quality monitor
 - Kogan bidet toilet seat
 - Konlen/Rockson WF96L water level controller

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

@@ -0,0 +1,32 @@
+name: Inkbird air quality monitor
+primary_entity:
+  entity: sensor
+  name: CO2
+  class: carbon_dioxide
+  dps:
+    - id: 2
+      type: integer
+      name: sensor
+      unit: ppm
+      class: measurement
+secondary_entities:
+  - entity: sensor
+    name: Temperature
+    class: temperature
+    dps:
+      - id: 18
+        type: integer
+        name: sensor
+        unit: C
+        class: measurement
+  - entity: sensor
+    name: Humidity
+    class: humidity
+    dps:
+      - id: 19
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+
+