NR Automation to turn on fan when criteria is met - how to add a bypass

I have a dog yard with a fan that turns on when we leave. However, other criteria needs to be met (temperature, door status) for the fan to stay on. I need to set up a bypass so I can turn it on outside of the rule, but without having to go into NR and temporarily disable the automation.

The code below works, just doesn’t include a bypass. I’ve written several others with an input_select override so it’s accessible from the dashboard, but for whatever reason, I’m struggling with this one.

Also, the coordinates in bigtimer are not my location, i randomized it and got somewhere in China!

[{"id":"09cef4933813f217","type":"bigtimer","z":"a9d91831.4826f8","outtopic":"","outpayload1":"on","outpayload2":"off","name":"0800 - 2200 Jan - Sept","comment":"","lat":"31.89654","lon":"117.30287","starttime":"480","endtime":"1320","starttime2":0,"endtime2":0,"startoff":"0","endoff":0,"startoff2":0,"endoff2":0,"offs":0,"outtext1":"","outtext2":"","timeout":1440,"sun":true,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"jan":true,"feb":true,"mar":true,"apr":true,"may":true,"jun":true,"jul":true,"aug":true,"sep":true,"oct":false,"nov":false,"dec":false,"day1":0,"month1":0,"day2":0,"month2":0,"day3":0,"month3":0,"day4":0,"month4":0,"day5":0,"month5":0,"day6":0,"month6":0,"day7":0,"month7":0,"day8":0,"month8":0,"day9":0,"month9":0,"day10":0,"month10":0,"day11":0,"month11":0,"day12":0,"month12":0,"d1":0,"w1":0,"d2":0,"w2":0,"d3":0,"w3":0,"d4":0,"w4":0,"d5":0,"w5":0,"d6":0,"w6":0,"xday1":0,"xmonth1":0,"xday2":0,"xmonth2":0,"xday3":0,"xmonth3":0,"xday4":0,"xmonth4":0,"xday5":0,"xmonth5":0,"xday6":0,"xmonth6":0,"xday7":"","xmonth7":"","xday8":"","xmonth8":"","xday9":"","xmonth9":"","xday10":"","xmonth10":"","xday11":"","xmonth11":"","xday12":"","xmonth12":"","xd1":0,"xw1":0,"xd2":0,"xw2":0,"xd3":0,"xw3":0,"xd4":0,"xw4":0,"xd5":0,"xw5":0,"xd6":0,"xw6":0,"suspend":false,"random":false,"randon1":false,"randoff1":false,"randon2":false,"randoff2":false,"repeat":true,"atstart":true,"odd":false,"even":false,"x":320,"y":740,"wires":[["9b766bc1179b85cd"],[],[]]},{"id":"6182cf607642f12f","type":"inject","z":"a9d91831.4826f8","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"on","payloadType":"str","x":110,"y":700,"wires":[["09cef4933813f217"]]},{"id":"966b99cadcc2dc4a","type":"inject","z":"a9d91831.4826f8","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"off","payloadType":"str","x":110,"y":740,"wires":[["09cef4933813f217"]]},{"id":"7b644aa018c1c582","type":"inject","z":"a9d91831.4826f8","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"auto","payloadType":"str","x":110,"y":780,"wires":[["09cef4933813f217"]]},{"id":"9b766bc1179b85cd","type":"api-current-state","z":"a9d91831.4826f8","name":"We're home","server":"84a8d823.e15248","version":3,"outputs":2,"halt_if":"home","halt_if_type":"str","halt_if_compare":"is","entity_id":"group.peeps","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","x":510,"y":680,"wires":[["6660518e792d727d"],["da4e9241fe3a3e27"]]},{"id":"6660518e792d727d","type":"change","z":"a9d91831.4826f8","name":"Turn off the dog fan","rules":[{"t":"set","p":"payload","pt":"msg","to":"off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":870,"y":740,"wires":[["8ae5a41bce32dd13"]]},{"id":"da4e9241fe3a3e27","type":"api-current-state","z":"a9d91831.4826f8","name":"Sliding Door open?","server":"84a8d823.e15248","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"binary_sensor.sliding_door_status","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"1","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":590,"y":780,"wires":[["6660518e792d727d"],["435ce1618ecadb54"]]},{"id":"773cfc5e4133f509","type":"switch","z":"a9d91831.4826f8","name":"Temp >=72","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"72.0","vt":"str"},{"t":"lte","v":"71.9","vt":"str"}],"checkall":"false","repair":false,"outputs":2,"x":870,"y":560,"wires":[["3981162326c3d9b9"],["6660518e792d727d"]]},{"id":"8ae5a41bce32dd13","type":"api-current-state","z":"a9d91831.4826f8","name":"Is dog fan already off? ","server":"84a8d823.e15248","version":3,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","entity_id":"switch.holiday_2","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","x":1120,"y":700,"wires":[[],["dc1be9a9612d7eca"]]},{"id":"435ce1618ecadb54","type":"api-current-state","z":"a9d91831.4826f8","name":"Temperature Check","server":"84a8d823.e15248","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.mylocation_temperature","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","x":710,"y":620,"wires":[["773cfc5e4133f509"]]},{"id":"3981162326c3d9b9","type":"change","z":"a9d91831.4826f8","name":"Turn on the dog fan","rules":[{"t":"set","p":"payload","pt":"msg","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":870,"y":480,"wires":[["65ff3f8bd393e7cc"]]},{"id":"dc1be9a9612d7eca","type":"api-call-service","z":"a9d91831.4826f8","name":"Dog fan off","server":"84a8d823.e15248","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.holiday_2"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","output_location":"","output_location_type":"none","x":1290,"y":760,"wires":[[]]},{"id":"65ff3f8bd393e7cc","type":"api-current-state","z":"a9d91831.4826f8","name":"Is dog fan already on? ","server":"84a8d823.e15248","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"switch.holiday_2","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","x":1120,"y":580,"wires":[[],["b834b25f50f91373"]]},{"id":"b834b25f50f91373","type":"api-call-service","z":"a9d91831.4826f8","name":"Dog Fan on","server":"84a8d823.e15248","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.holiday_2"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1290,"y":640,"wires":[[]]},{"id":"84a8d823.e15248","type":"server","name":"Home Assistant","version":2,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30}]

I use a switch node in some of my automations to determine if something was activated by a person vs an automation. With this there’s no need for a special button or helper. The user_id’s are in Settings - People - Users.

huh, that’s a neat idea, but does the automation pick it back up and control it, or does a user need to deactivate it again?