Add CO2 level reading for Kaiterra integration (#26935)
This commit is contained in:
parent
4d92e76f19
commit
588bc26661
2 changed files with 6 additions and 1 deletions
|
@ -82,6 +82,11 @@ class KaiterraAirQuality(AirQualityEntity):
|
|||
"""Return the particulate matter 10 level."""
|
||||
return self._data("rpm10c")
|
||||
|
||||
@property
|
||||
def carbon_dioxide(self):
|
||||
"""Return the CO2 (carbon dioxide) level."""
|
||||
return self._data("rco2")
|
||||
|
||||
@property
|
||||
def volatile_organic_compounds(self):
|
||||
"""Return the VOC (Volatile Organic Compounds) level."""
|
||||
|
|
|
@ -23,7 +23,7 @@ from .const import (
|
|||
|
||||
_LOGGER = getLogger(__name__)
|
||||
|
||||
POLLUTANTS = {"rpm25c": "PM2.5", "rpm10c": "PM10", "rtvoc": "TVOC"}
|
||||
POLLUTANTS = {"rpm25c": "PM2.5", "rpm10c": "PM10", "rtvoc": "TVOC", "rco2": "CO2"}
|
||||
|
||||
|
||||
class KaiterraApiData:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue