Greetings. I'm a complete n00b when it comes to Node Red, but also a dedicated learner, so I'm looking forward to contributing as I become more familiar with how things work.
For my first string, I want to turn on our back light (named Doggy Light) whenever the back door is opened (named East Back Door) after dark, then turn it off again after 8 minutes. This is working marvelously with Node Red.
I see a problem in that if I turn the light on because I'm working or entertaining outside, I do not want it to automatically turn off after 8 minutes. I know that my options are to either:
Only run the string if the Doggy Light is off, OR
Halt the timer node if the Doggy Light is on
I'm unsure how to successfully accomplish this. I've included my current JSON file.
Thanks for the help!
[{"id":"3f8dba6.ff12846","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"7bf0f92c.be28f8","type":"server-state-changed","z":"3f8dba6.ff12846","name":"East Door","server":"f4ec457f.b0c348","entityidfilter":"binary_sensor.east_back_door","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":70,"y":260,"wires":[["2a3ed802.aca22"]]},{"id":"2a3ed802.aca22","type":"switch","z":"3f8dba6.ff12846","name":"Switch","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":211,"y":260,"wires":[["230b21e5.789026","606542eb.27561c"]]},{"id":"7b2e78e1.a2398","type":"api-call-service","z":"3f8dba6.ff12846","name":"DogLight On","server":"f4ec457f.b0c348","service_domain":"light","service":"turn_on","data":"{\"entity_id\":\"light.doggy\"}","mergecontext":"","output_location":"","output_location_type":"none","x":566,"y":244,"wires":[[]]},{"id":"5e1f49f4.df3e18","type":"api-call-service","z":"3f8dba6.ff12846","name":"DogLight Off","server":"f4ec457f.b0c348","service_domain":"light","service":"turn_off","data":"{\"entity_id\":\"light.doggy\"}","mergecontext":"","output_location":"","output_location_type":"none","x":566,"y":321,"wires":[[]]},{"id":"230b21e5.789026","type":"time-range-switch","z":"3f8dba6.ff12846","name":"After Dark","lat":"34.95005","lon":"-89.92639","startTime":"dusk","endTime":"dawn","startOffset":0,"endOffset":0,"x":354.5,"y":254,"wires":[["7b2e78e1.a2398"],[]]},{"id":"606542eb.27561c","type":"stoptimer","z":"3f8dba6.ff12846","duration":"8","units":"Minute","payloadtype":"str","payloadval":"","name":"","x":375.5,"y":306,"wires":[["5e1f49f4.df3e18"],[]]},{"id":"f4ec457f.b0c348","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true}]