Closed walberjunior closed 10 months ago
You want to be able to set the state of a sensor to unavailable
from node-red? Not when the NR disconnects from HA automatically set the state of the sensor to unavailable
?
You want to be able to set the state of a sensor to unavailable from node-red?
Yes. So I can find out if there was a connection problem with the alarm.
Would be a nice feature indeed!
I have node-red running as a tcp serial client, and pusing the values to home assistant. But it would be nice to set everything to unavailable when the tcp connection drops
It would really be a great alternative.
Sorry for the late reply. I test my zwave sensors every 2 hours bij send a ping to all the devices. Then wait 10 seconds and then read the state from every sensor this should be 'alive'. Unfortunatly this only works with zwave devices not zigbee
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
zachowj Thank you for your work.
I use NR to request the status of my alarm and create all the sensors. But if for some reason the NR loses the connection with the alarm, the sensors keep the last state received. I use the script below to change the sensors to "unavailable", but it would be nice if NR had this function natively.