Chart on air quality

Hi,
First of all, as I’m new here I hope I’m not posting in the wrong place.

I’m getting started with Gladys but I dove straight into the deep end by integrating my Dyson air purifier with Node-RED and MQTT.

It appears correctly in Gladys and reports the data perfectly. So I put a small chart on the dashboard to track the evolution of air quality. Air quality is calculated from 1 (very good) to 10 (very bad); when you display the variation over 24 hours, for example, it shows +X% in green because it has worsened.
Is there a way to change the color to red, for example, or should I modify the incoming value by making it negative, for instance?

Thanks in advance

Hi @Nagromdark :slight_smile:

What kind of feature are you using for your air quality sensor? What unit is it in?

We have some features that we’ve defined in the code as « negative if they increase » for a red display when they go up :slight_smile:

I use the AQI unit, these are the data reported by the Dyson :

and here is the MQTT config :

@Nagromdark it’s all on the Gladys code side :smiley: I’m fixing it!

It’s fixed here:

I’ll let you know as soon as it goes into production

2 Likes

It’s merged and it will be included in the next Gladys release!

@pierre-gilles, thanks so much :wink:

Edit 16/02: Hi @pierre-gilles, (sorry I don’t know how to reopen the discussion). It seems that it isn’t working properly even with the latest version:


I don’t know if I did something wrong?


![image|341x500, 50%](upload://dDzsWyF

1 Like

Fixed in Gladys Assistant 4.53.0 :

1 Like