Ver Fonte

CO2 Box: changes from code review and docs.

PR #793
Jason Rumney há 3 anos atrás
pai
commit
c4079f2b78
3 ficheiros alterados com 4 adições e 6 exclusões
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 2 6
      custom_components/tuya_local/devices/co2_box.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -294,3 +294,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [julianocomg](https://github.com/julianocomg) for contributing support for Adaprox fingerbot plus and 6-way simple switches.
 - [julianocomg](https://github.com/julianocomg) for contributing support for Adaprox fingerbot plus and 6-way simple switches.
 - [andyrak](https://github.com/andyrak) for assisting with support for Lytmi HDMI sync backlights.
 - [andyrak](https://github.com/andyrak) for assisting with support for Lytmi HDMI sync backlights.
 - [melvanderwal](https://github.com/melvanderwal) for assisting with support for Inkbird iBBQ-4T thermometers.
 - [melvanderwal](https://github.com/melvanderwal) for assisting with support for Inkbird iBBQ-4T thermometers.
+- [ahori](https://github.com/ahori) for contributing support for CO2-Box air quality monitors.

+ 1 - 0
DEVICES.md

@@ -386,6 +386,7 @@ of device.
 - Bresser smart 7-in-1 weather station
 - Bresser smart 7-in-1 weather station
 - Catit Pixi smart fountain
 - Catit Pixi smart fountain
 - Catit pet feeder (Pixi 2.2kg dispenser and 6 meal versions, and another non-Pixi branded single dispenser)
 - Catit pet feeder (Pixi 2.2kg dispenser and 6 meal versions, and another non-Pixi branded single dispenser)
+- CO2-Box air quality monitor
 - Emax EM3378 Weather Station (selling as Hiper P1 and other rebrands)
 - Emax EM3378 Weather Station (selling as Hiper P1 and other rebrands)
 - Inkbird PTH-9CW air quality monitor
 - Inkbird PTH-9CW air quality monitor
 - KKMoon 7in1 air quality monitor
 - KKMoon 7in1 air quality monitor

+ 2 - 6
custom_components/tuya_local/devices/co2_box.yaml

@@ -1,14 +1,10 @@
-name: CO2 BOX
+name: CO2 box
 primary_entity:
 primary_entity:
   entity: sensor
   entity: sensor
-  name: CO2
-  icon: mdi:molecule-co2
+  class: carbon_dioxide
   dps:
   dps:
     - id: 2
     - id: 2
       type: integer
       type: integer
       class: measurement
       class: measurement
       name: sensor
       name: sensor
       unit: ppm
       unit: ppm
-      range:
-        min: 400
-        max: 5000