I am looking to set a workflow where all entities need to be in a set state (no motion = off, specific light = off) and then wait 10 minutes before performing the action.
I have it working with one state using the events:state node but can’t get it working when both entities are compliant.
Here is my code:
[{"id":"d81d43a35568ab4d","type":"tab","label":"Desk Lights","disabled":false,"info":"","env":[]},{"id":"306cd4c818ed7e64","type":"server-state-changed","z":"d81d43a35568ab4d","name":"Under Desk Motion Detection OFF","server":"26a44118.302a0e","version":5,"outputs":2,"exposeAsEntityConfig":"","entityId":["binary_sensor.qingping_motion_light_sensor_t_motion_sensor","light.standing_desk_lstrip"],"entityIdType":"list","outputInitially":false,"stateType":"str","ifState":"off","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"10","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":140,"y":380,"wires":[["d200f0d45ccf1cf0"],[]]},{"id":"d200f0d45ccf1cf0","type":"api-call-service","z":"d81d43a35568ab4d","name":"","server":"26a44118.302a0e","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.wall_light","switch.tp_link_power_strip_1d6e_left_monitor_light","switch.tp_link_power_strip_1d6e_right_monitor_light"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":520,"y":360,"wires":[[]]},{"id":"78a4497d96f23c4f","type":"server-state-changed","z":"d81d43a35568ab4d","name":"Under Desk Motion Detection ON","server":"26a44118.302a0e","version":5,"outputs":2,"exposeAsEntityConfig":"","entityId":"binary_sensor.qingping_motion_light_sensor_t_motion_sensor","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"on","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":150,"y":480,"wires":[["8e9127f7b0a3b117"],[]]},{"id":"8e9127f7b0a3b117","type":"api-call-service","z":"d81d43a35568ab4d","name":"","server":"26a44118.302a0e","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.wall_light","switch.tp_link_power_strip_1d6e_left_monitor_light","switch.tp_link_power_strip_1d6e_right_monitor_light"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":440,"y":480,"wires":[[]]},{"id":"26a44118.302a0e","type":"server","name":"Home Assistant","addon":true}]
Thanks in advance!