I’m looking to trigger some automation in hassio based on an mqtt number payload.
I send from my esp8266 the voltage level and I want to trigger some action like changing the icon based on the payload value. So if the voltage is dropping indicating the battry is getting empty I want to change the icon for this sensor.
Can someone help me with this ?