I would like to ask you for help with one automation. I created irrigation system automation, and it is working as I want, but I have one problem with that.
All 8 Z-wave relays, which controlling valves have week signal and sometimes, it happens to me, that after defined time, HA switch relays OFF, but command does not arrive. Frequency once per month approx… If this happens, I just switch it OFF manually. Unfortunately, irrigation system than run for example 2h more.
Is there a chance to detect, that relay did not receive command to switch OFF and repeat command?
Or more simple, try one more time OFF command to be sure?
I do that for all control commands. Meaning send command, wait with a timeout for the change to be reflected back and retry up to three times with increasing delays. I did this via autogenerating scripts.
There is a custom component that does this and at some point I’ll discard those scripts and move over. Interestingly the use case they talk about is an irrigation system not turning off.
You can also try waiting a bit, then pining the node, then waiting, then checking the status. The ping (if it gets through the network) should update the status. The problem with just waiting 5 seconds is that unless the device decides to send a new status update during that time I’m not sure why it would update the status.