How to list all sensors with state = 'unavailable', 'none' or 'unknown'

to prevent needing to use an automation to trigger a refresh every minute you could set up the “Time & Date Sensor” then use the “sensor.time” in the config for the “unavailable” sensor you created.

That will cause the sensor to refresh whenever the sensor.time updates (which is every minute0. So you will get the same result as using the automation without the extra code.

3 Likes