Bail out of failed reaction?
-
Good morning all,
I've ran into an issue a few times when a node has gone dead for whatever reason, and all other reactions are held up because a reaction is trying to run and won't end because of the failed node.Specifically, I have z-wave blind controllers that are battery powered. Because they are battery powered, they don't always respond immediately. This becomes a problem when ZWave-JS updates, and the handshake between the update and the already included device fails. This doesn't happen often, but when it does, I have to go through the whole process of factory resetting the device and replace/including the existing device. This happened to me last night, and my whole home was held hostage by the one reaction that wouldn't run.
The reason it won't stop and continue is a Repeat condition I have in place that I got from @toggledbits quite a while back, that repeats the command until the position value registers what the it was ordered to be. Below is a screenshot of the reaction that is called from other rulesets. Note that there are two devices being called here, a grouping for a single room.
I think I need some sort of way to count the number of passes/attempts this makes, an then let it go on if it fails. I'm just not sure how I would go about that.
Any ideas?












