Skip to content

Commit

Permalink
fix incorrect indoor air quality data keys (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
zlangbert authored Jan 12, 2025
1 parent e072090 commit 6ba20e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions custom_components/daikinone/daikinone.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,9 @@ def __map_air_quality_indoor(self, payload: DaikinDeviceDataResponse) -> DaikinO
return DaikinOneAirQualitySensorIndoor(
aqi=payload.data["aqIndoorValue"],
aqi_summary_level=payload.data["aqIndoorLevel"],
particles=payload.data["aqIndoorParticles"],
particles=payload.data["aqIndoorParticlesValue"],
particles_summary_level=payload.data["aqIndoorParticlesLevel"],
voc=payload.data["aqIndoorVOC"],
voc=payload.data["aqIndoorVOCValue"],
voc_summary_level=payload.data["aqIndoorVOCLevel"],
)

Expand Down
2 changes: 1 addition & 1 deletion custom_components/daikinone/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ async def async_setup_entry(
name="Indoor Air Quality Particle Count",
has_entity_name=True,
state_class=SensorStateClass.MEASUREMENT,
# TODO: don't know what measurement this actually is, PM25 is a guess
device_class=SensorDeviceClass.PM25,
native_unit_of_measurement=CONCENTRATION_MICROGRAMS_PER_CUBIC_METER,
icon="mdi:air-filter",
Expand Down Expand Up @@ -227,6 +226,7 @@ async def async_setup_entry(
has_entity_name=True,
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.VOLATILE_ORGANIC_COMPOUNDS,
native_unit_of_measurement=CONCENTRATION_MICROGRAMS_PER_CUBIC_METER,
icon="mdi:air-filter",
),
data=data,
Expand Down

0 comments on commit 6ba20e1

Please sign in to comment.