Skip to content

Wait until node don't work with list #585

Description

@landaisbenj

Describe the bug

"Wait until" node work with exact entity, but don't work with list of entites. I try to make a flow, who wait my couple of windows was closed (if they was open). So "until my windows was off, wait...", with check against current state.

Flow never pass the node if it was in list, even one or more entities was listed. But, work fine with just 1 of this binary_sensor in one exact entity...
And by the way, « check against current state » box disappear only in list mode.

To Reproduce

Try with this node with 1 exact sensor, and try with 1 sensor or more but in list. Like this:
image

Expected behavior

I have 2 windows. So i try "wait until" node with list of 2 binary_sensor. I would like the flow pass the node if that 2 binary_sensor was off, or wait until all them was off.

Screenshots

This work :

image

This don’t :

image

And so this don’t too :

image

Note "check against current box" disappear in the 2 last pict.

Example Flow

[{"id":"729015cc64df886d","type":"inject","z":"2b156957.368d96","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":300,"y":1650,"wires":[["0f90ac620793800b"]]},{"id":"a38fe30d82567cb5","type":"debug","z":"2b156957.368d96","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":720,"y":1650,"wires":[]},{"id":"0f90ac620793800b","type":"ha-wait-until","z":"2b156957.368d96","name":"","server":"9641f53.6d3d808","version":1,"outputs":1,"entityId":["binary_sensor.door_window_sensor_158d00051e24d3","binary_sensor.door_window_sensor_158d0001dbccf9"],"entityIdFilterType":"list","property":"state","comparator":"is","value":"off","valueType":"str","timeout":"0","timeoutType":"num","timeoutUnits":"seconds","entityLocation":"data","entityLocationType":"none","checkCurrentState":true,"blockInputOverrides":true,"x":510,"y":1650,"wires":[["a38fe30d82567cb5"]]},{"id":"9641f53.6d3d808","type":"server","name":"Home Assistant Freebox","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30}]

This package's version (not the Home Assistant add-on verison)

0.42.4

Is Node-RED running in Docker?

Home Assistant add-on

Node-RED version

2.2.0

Node.js version

11.0.2

Additional context

Open issue after this hassio-addons/app-node-red#1292 (comment)

It was hard to get all version because i don't know where to find them in home assistant... So maybe "Node.js version" is not the right.

And there was a mistake here :)

This package's version (not the Home Assistant add-on verison)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions