I periodically read data from the web and update some sensors I have created via Node-RED.
Now when the network went down or the data is unavailable for any other reason I'd like to indicate that by setting the sensor state to unavailable or unknown. At the moment this seems to be impossible. The sensors accept the state in Node-RED but home assistant still reports the old (valid) value is set for these sensors.
Version of the custom_component
3.1.6
Configuration
Describe the bug
I periodically read data from the web and update some sensors I have created via Node-RED. Now when the network went down or the data is unavailable for any other reason I'd like to indicate that by setting the sensor state to unavailable or unknown. At the moment this seems to be impossible. The sensors accept the state in Node-RED but home assistant still reports the old (valid) value is set for these sensors.
Debug log