node-red-contrib-home-assistant-websocket icon indicating copy to clipboard operation
node-red-contrib-home-assistant-websocket copied to clipboard

wait until node - the operation OR on AND is unclear for a list of entities

Open uowiec opened this issue 2 years ago • 0 comments

Documentation URL

No response

The problem

In the wait until node, it is possible to check a condition against a list of entities. The documentation lacks of information whether the node waits until any entity meets the condition or all of them meet the condition. Namely, whether the check on entities values are joined with logic operator OR or AND. Since the entity parameter takes a list and a condition is common to them, it is obvious to me, that all of the entities have to meet the condition. From my observation, the node only waits until the first entity meets the condition. For example: I'm closing 2 window covers. One cover is shorter and closes faster than the other. In the wait until node, i select the type of list and both cover entieties on the list then set the condition to: state is closed. The node passes the message right after the first cover closes, whole the other cover is still closing.

uowiec avatar Apr 28 '23 23:04 uowiec