I’m looking to create a flow to do the following and can’t figure it out.
- Light #1 has been on for 5 minutes (got this part).
- Wait Until Light #2 has been on for 5 minutes. (this is the part I can’t figure out).
I’m looking to create a flow to do the following and can’t figure it out.
If you post what you have, it makes it easier for people to help.
not sure this is exactly what you’re after but I hope it helps you somehow
[{"id":"6917641c.f8f94c","type":"server-state-changed","z":"74e4c309.282f6c","name":"Light 1 on for 5 minutes?","server":"9405c3fe.d0a6c","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"light.light_1","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"5","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":270,"y":300,"wires":[["cfff401e.8d638"],[]]},{"id":"cfff401e.8d638","type":"ha-wait-until","z":"74e4c309.282f6c","name":"wailt until it's been on for 5 minutes","server":"9405c3fe.d0a6c","outputs":2,"entityId":"light.light_2","entityIdFilterType":"exact","property":"state","comparator":"is","value":"off","valueType":"str","timeout":"5","timeoutType":"num","timeoutUnits":"minutes","entityLocation":"","entityLocationType":"none","checkCurrentState":true,"blockInputOverrides":true,"x":550,"y":300,"wires":[[],["5abe49ed.ed9ac8"]]},{"id":"5abe49ed.ed9ac8","type":"debug","z":"74e4c309.282f6c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":820,"y":340,"wires":[]},{"id":"9405c3fe.d0a6c","type":"server","name":"Home Assistant","addon":true}]
if the previous one doesn’t fit your needs because the flows stops if light 2 is off, this one will do it.
Note that in both cases the flow continues through the timeout output of the later wait until node.
[{"id":"b1884ae7.ac07e8","type":"server-state-changed","z":"74e4c309.282f6c","name":"Light 1 on for 5 minutes?","server":"9405c3fe.d0a6c","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"light.light_1","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"5","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":230,"y":320,"wires":[["fae27748.6e9438"],[]]},{"id":"5af02f18.53401","type":"ha-wait-until","z":"74e4c309.282f6c","name":"wailt until it's been on for 5 minutes","server":"9405c3fe.d0a6c","outputs":2,"entityId":"light.light_2","entityIdFilterType":"exact","property":"state","comparator":"is","value":"off","valueType":"str","timeout":"5","timeoutType":"num","timeoutUnits":"minutes","entityLocation":"","entityLocationType":"none","checkCurrentState":true,"blockInputOverrides":true,"x":680,"y":320,"wires":[[],["b648084e.0c1ef8"]]},{"id":"b648084e.0c1ef8","type":"debug","z":"74e4c309.282f6c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":950,"y":360,"wires":[]},{"id":"fae27748.6e9438","type":"ha-wait-until","z":"74e4c309.282f6c","name":"wailt until it's on","server":"9405c3fe.d0a6c","outputs":1,"entityId":"light.light_2","entityIdFilterType":"exact","property":"state","comparator":"is","value":"on","valueType":"str","timeout":0,"timeoutType":"num","timeoutUnits":"seconds","entityLocation":"","entityLocationType":"none","checkCurrentState":true,"blockInputOverrides":true,"x":440,"y":320,"wires":[["5af02f18.53401"]]},{"id":"9405c3fe.d0a6c","type":"server","name":"Home Assistant","addon":true}]`