Temperature automation no longer working

EDIT: I’m a dummy. I was evaluating something after it already changed to true. I changed the wait until to evaluate true again. So now once upstairs motion stops, it waits 10 minutes to see if it goes true. If it doesn’t then it stays off. This whole post can be ignored (or left if someone else has an issue).*

I have an automation that was working perfectly. Nothing has changed, but suddenly, only one of my call service nodes isn’t getting the message. The idea is this:

  • Air is on.
  • Motion upstairs, adjust air to cool the upstairs more than normal.
  • Motion upstairs stops, take adjust the upstairs thermostat to be a warmer temperature (don’t need to cool rooms we’re not in).

The automation to trigger cooling upstairs more works great; however, once motion stops, I have a wait until node that waits 10 minutes before readjusting the thermostat. The wait until node gets the message, it waits, but then doesn’t pass the message on. It does work when I deselect checking against the current state, but this isn’t what I want. At any rate, could someone please review?

[{"id":"98994bfc.8f6868","type":"tab","label":"Temperature Automation","disabled":false,"info":""},{"id":"b0fc2b06.14f1b8","type":"api-current-state","z":"98994bfc.8f6868","name":"Upstairs air is on","server":"84a8d823.e15248","version":1,"outputs":2,"halt_if":"heat_cool","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"climate.ecobee_up","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":950,"y":360,"wires":[["25293b7.f733ac4"],[]]},{"id":"5ae1356e.aa17bc","type":"api-call-service","z":"98994bfc.8f6868","name":"Set Ecobee Up to 62/84","server":"84a8d823.e15248","version":1,"debugenabled":true,"service_domain":"climate","service":"set_temperature","entityId":"climate.ecobee_up","data":"{\"target_temp_high\":84,\"target_temp_low\":62}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1490,"y":360,"wires":[[]]},{"id":"fe8a4743.fa16d8","type":"api-current-state","z":"98994bfc.8f6868","name":"Upstairs air is on","server":"84a8d823.e15248","version":1,"outputs":2,"halt_if":"heat_cool","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"climate.ecobee_up","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":950,"y":239,"wires":[["ed0ae9ac.9b9278"],[]]},{"id":"7e714ec3.8fa37","type":"time-range-switch","z":"98994bfc.8f6868","name":"Time is between 8 am and 11pm","lat":"33.89654","lon":"-117.30287","startTime":"08:00","endTime":"23:00","startOffset":0,"endOffset":0,"x":670,"y":279,"wires":[["fe8a4743.fa16d8"],["ad25227.d9154e"]]},{"id":"1534463f.028eda","type":"server-state-changed","z":"98994bfc.8f6868","name":"Ben Room Motion","server":"84a8d823.e15248","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.ben_room_motion_sensor","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,"x":170,"y":200,"wires":[["9ad49448.debd58"],[]]},{"id":"773241c1.76eca","type":"server-state-changed","z":"98994bfc.8f6868","name":"Luke Room Motion","server":"84a8d823.e15248","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.luke_room_motion_sensor","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,"x":170,"y":260,"wires":[["9ad49448.debd58"],[]]},{"id":"7865e835.4f57b8","type":"server-state-changed","z":"98994bfc.8f6868","name":"Play Room Motion","server":"84a8d823.e15248","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.play_room_motion","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,"x":170,"y":320,"wires":[["9ad49448.debd58"],[]]},{"id":"432b5299.b6ce5c","type":"server-state-changed","z":"98994bfc.8f6868","name":"Bedroom Motion","server":"84a8d823.e15248","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.bedroom_motion_ias_zone","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,"x":160,"y":380,"wires":[["9ad49448.debd58"],[]]},{"id":"ed0ae9ac.9b9278","type":"change","z":"98994bfc.8f6868","name":"Auto=on","rules":[{"t":"set","p":"payload","pt":"msg","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1260,"y":237,"wires":[["5835ecf8.871b64"]]},{"id":"f4a944b5.1ca808","type":"api-call-service","z":"98994bfc.8f6868","name":"Set Ecobee Up to 67/79","server":"84a8d823.e15248","version":1,"debugenabled":true,"service_domain":"climate","service":"set_temperature","entityId":"climate.ecobee_up","data":"{\"target_temp_high\":79,\"target_temp_low\":67}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1490,"y":300,"wires":[[]]},{"id":"ad25227.d9154e","type":"api-current-state","z":"98994bfc.8f6868","name":"Upstairs air is on","server":"84a8d823.e15248","version":1,"outputs":2,"halt_if":"heat_cool","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"climate.ecobee_up","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":950,"y":300,"wires":[["289893ae.9f5b6c"],[]]},{"id":"289893ae.9f5b6c","type":"change","z":"98994bfc.8f6868","name":"Auto=on","rules":[{"t":"set","p":"payload","pt":"msg","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1260,"y":300,"wires":[["f4a944b5.1ca808"]]},{"id":"25293b7.f733ac4","type":"ha-wait-until","z":"98994bfc.8f6868","name":"","server":"84a8d823.e15248","outputs":2,"entityId":"group.upstairs_motion_detectors","entityIdFilterType":"exact","property":"state","comparator":"is","value":"off","valueType":"str","timeout":"10","timeoutType":"num","timeoutUnits":"minutes","entityLocation":"","entityLocationType":"none","checkCurrentState":true,"blockInputOverrides":true,"x":1120,"y":380,"wires":[[],["a8861bdd.9da5c8"]]},{"id":"46912703.0371f8","type":"trigger-state","z":"98994bfc.8f6868","name":"Upstairs Motion has stopped","server":"84a8d823.e15248","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityid":"group.upstairs_motion_detectors","entityidfiltertype":"exact","debugenabled":false,"constraints":[{"id":"1g6qp9clbl3","targetType":"entity_id","targetValue":"binary_sensor.luke_room_motion_sensor","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"off"},{"id":"2u8fofvzsjt","targetType":"entity_id","targetValue":"binary_sensor.ben_room_motion_sensor","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"off"},{"id":"koxsi2kbrq9","targetType":"entity_id","targetValue":"binary_sensor.play_room_motion","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"off"},{"id":"a01tf8d3unn","targetType":"entity_id","targetValue":"binary_sensor.bedroom_motion_ias_zone","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"off"},{"id":"49bn8otrz5l","targetType":"entity_id","targetValue":"binary_sensor.upstairs_hall_motion_sensor","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"off"}],"constraintsmustmatch":"all","outputs":2,"customoutputs":[],"outputinitially":true,"state_type":"str","x":200,"y":440,"wires":[["b12db8e9.a58068"],[]]},{"id":"9ad49448.debd58","type":"api-current-state","z":"98994bfc.8f6868","name":"We're home","server":"84a8d823.e15248","version":1,"outputs":2,"halt_if":"home","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"group.peeps","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":430,"y":280,"wires":[["7e714ec3.8fa37"],[]]},{"id":"5835ecf8.871b64","type":"api-call-service","z":"98994bfc.8f6868","name":"Set Ecobee Up to 68/78","server":"84a8d823.e15248","version":1,"debugenabled":true,"service_domain":"climate","service":"set_temperature","entityId":"climate.ecobee_up","data":"{\"target_temp_high\":78,\"target_temp_low\":68}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1490,"y":237,"wires":[[]]},{"id":"b12db8e9.a58068","type":"api-current-state","z":"98994bfc.8f6868","name":"We're home","server":"84a8d823.e15248","version":1,"outputs":2,"halt_if":"home","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"group.peeps","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":430,"y":340,"wires":[["e61ca5b8.04f008"],[]]},{"id":"f29b454.47894b8","type":"inject","z":"98994bfc.8f6868","name":"","topic":"Manual Override 68/78","payload":"on","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1030,"y":120,"wires":[["5835ecf8.871b64"]]},{"id":"870b9ad0.99ae58","type":"inject","z":"98994bfc.8f6868","name":"","topic":"Manual Override 62/84","payload":"on","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1030,"y":500,"wires":[["5ae1356e.aa17bc"]]},{"id":"e61ca5b8.04f008","type":"time-range-switch","z":"98994bfc.8f6868","name":"Time is between 8 am and 11pm","lat":"33.89654","lon":"-117.30287","startTime":"08:00","endTime":"23:00","startOffset":0,"endOffset":0,"x":670,"y":340,"wires":[["b0fc2b06.14f1b8"],["ad25227.d9154e"]]},{"id":"a8861bdd.9da5c8","type":"change","z":"98994bfc.8f6868","name":"Auto=on","rules":[{"t":"set","p":"payload","pt":"msg","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1260,"y":360,"wires":[["5ae1356e.aa17bc"]]},{"id":"84a8d823.e15248","type":"server","z":"","name":"Home Assistant"}]

You connected only to the time out output of the wait node. That only triggers when 10 minutes passed without the upstair motion detectors turning off. You probably want to connect both output nodes, so it will pass a message when either 10 minutes have passed, or the upstair motion detectors turned off.

I got it sorted out. I was checking when Motion stopped instead of when Motion started again. And the idea with the wait until node is to have it time out. If it doesn’t time out, then it takes no action. No need to connect the other wire. For the wait until node to work, it needs to time out and be connected the way I have it.