Hello all. I have build multiple flows using the “wait until” node. Generally there is this huge problem with this node that is imho a massive bug, but I dont think my specific problem stems from that issue.
All “wait until” nodes that are waiting for a numeric or boolean state (e.g. waiting for a specific temperature to be reached/surpassed or a condition to be true) are working fine.
However nodes waiting for a time are horribly unreliable. The way I have set them up is that I have them listen to the HA “Time” entity. (Since afaik NR does not provide a clock of its own?)
Unfortunately HA does not (afaik) provide this time entitiy as a number but as a string thus I don’t see any way of creating something that equals >= meaning if its “that time or later”. So the “wait until” node can only match the specific moment (when the string matches exactly). This is problematic as well, but would be manageable.
However: The node works if i set it to e.g. two minutes from now and stare at the debug until it triggers. If however I set it to e.g. 4 hours from now and walk away it will just not trigger but just sits there stuck on “waiting” even if its past the set time! It’s driving me insane!
Does anyone know how to
A) Have the node not be stuck on waiting after deploying
B) Create something like “>=” for a timestamp aka. “if now or later”
C) Have the node reliably wait for hours without getting stuck?
D) Have any idea on how to do what I’m doing differently/better alltogether? (Edit: Found a way. See below)
Here I my configuration of such a node
Here is the flow i’m using it in. Its just switching between the home and sleep thermostat presets at a predefined time, unless the thermostat is set to “away”.
Thank you all in advance!
EDIT: Found a way of doing this specific flow using gates and repeating inject nodes. Seems much more reliable. But the questions A/B/C still stand, since not all examples can be solved this way.
This is how I modified the flow, if anyone needs to do something similar: