IKEA VINDSTYRKA Zigbee Air quality sensor

Thanks! This really helped me. I just have one problem. The values are being recorded as strings, rather than integers. Do you know where I would need to change this?

Here is how my history looks like because of this:

image

this should make the sensor value an int.

customize:
  sensor.air_monitor_voc_index:
    state_class: measurement
    device_class: aqi

Thanks for the reply. Apologies for the ignorance, but where do I need to add this?
Later Edit:
I have tried to add the customization that @diplix suggested, but the issue persisted. However, it is not fixed after I have made the change directly in the GUI. Thanks!

Hi Ben,

Can you describe in detail how to achieve this? Which command line tool did you use to patch ZHA toolkit?

One of the easiest ways is to install the Visual Studio Code Server addon in HA.
Via the Studio Code Server addon you will be able to directly edit/change the relevant ZHA Toolkit files.

1 Like