I’m using the Dyson fan sensors to measure temp and humidity, but is also has a sensor for air quality “sensor.nursery_air_quality” which are returns as a number. I’d like the number to display as the air quality state as per the Dyson app eg: “Good”, “Fair”, “Poor” and Very Poor" instead of 1,2,3 or 4.
Can anyone please suggest how I might map the digits to the words so they display in the sensor? I can’t see that customize is the right place, so I’m guessing templates? Not sure now they work so sample code would be appreciated. thanks
My current Group config: