Hello E1cid,
That my friend is simple and brilliant, thank you very much! It solves the random disconnecting issue as well as retaining the 'instant on' function that's desired when the device initially connects and you want the lights to come on right away! I'm also not a fan of relying on timers for "smart automation", that's not the best practice.
I had seen the RBE node but obviously did not linger on it long enough haha!
It does however (well, MY situation at least) have one flaw that is still an issue but the inherent design is at the root of it. While your solution is great and it IS what I'm looking for, there is still the midnight scenario when the lights are already OFF and the phone disconnects and reconnects which turns the lights on in the middle of the night. I've solved this by another bit of automation I had in place: When by bedroom door is closed (when we are sleeping) the bathroom light is turned off. If the bedroom door is opened for a bio-break, the bathroom lights turn on at 10% brightness as to not burn your retinas out when your half-zombied. I've simply halted the code if the bedroom door is closed. Here's the code if it helps anyone else out.
Thanks again, you were a great help!
[{"id":"193d36ed.bfa9d9","type":"tab","label":"Flow 3","disabled":false,"info":""},{"id":"4b248457.5fe50c","type":"trigger","z":"193d36ed.bfa9d9","name":"","op1":"","op2":"","op1type":"nul","op2type":"payl","duration":"5","extend":true,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":610,"y":388,"wires":[["e1570bd1.795b48"]]},{"id":"e1570bd1.795b48","type":"rbe","z":"193d36ed.bfa9d9","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":790,"y":348,"wires":[["a65d8983.7eb7b8"]]},{"id":"6de9878f.c6d088","type":"debug","z":"193d36ed.bfa9d9","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1490,"y":260,"wires":[]},{"id":"a7c6f857.489d98","type":"server-state-changed","z":"193d36ed.bfa9d9","name":"S10 connects to Room assistant","server":"474016b8.573908","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.adam_s_galaxy_s10_room_presence","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"DenPi4","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":190,"y":348,"wires":[["e8159790.0272a8"],[]]},{"id":"69601347.34b32c","type":"server-state-changed","z":"193d36ed.bfa9d9","name":"S10 not_home for 5 minutes","server":"474016b8.573908","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.adam_s_galaxy_s10_room_presence","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"not_home","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"5","forType":"num","forUnits":"seconds","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":200,"y":428,"wires":[["ccfb0089.a9b18"],[]]},{"id":"eaf2381.04b08c8","type":"api-current-state","z":"193d36ed.bfa9d9","name":"","server":"474016b8.573908","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"binary_sensor.test_door","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":1190,"y":328,"wires":[["de9f3eec.fce23","6de9878f.c6d088"],[]]},{"id":"a65d8983.7eb7b8","type":"switch","z":"193d36ed.bfa9d9","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"DenPi4","vt":"str"},{"t":"eq","v":"not_home","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":930,"y":348,"wires":[["eaf2381.04b08c8","6b5bd634.b62e48"],["e31bc4e5.4c9798"]]},{"id":"de9f3eec.fce23","type":"api-call-service","z":"193d36ed.bfa9d9","name":"Light On","server":"474016b8.573908","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.hall_switch","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1480,"y":300,"wires":[[]]},{"id":"265a68be.0b6c98","type":"api-call-service","z":"193d36ed.bfa9d9","name":"Bathroom Light Off","server":"474016b8.573908","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.mj_dimmer_1","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1510,"y":420,"wires":[[]]},{"id":"aece8aac.687298","type":"api-call-service","z":"193d36ed.bfa9d9","name":"Hall Light Off","server":"474016b8.573908","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.hall_switch","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1490,"y":380,"wires":[[]]},{"id":"8b9ca806.848038","type":"inject","z":"193d36ed.bfa9d9","name":"Inject (for testing)","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"DenPi4","payloadType":"str","x":240,"y":288,"wires":[["e1570bd1.795b48","e8159790.0272a8"]]},{"id":"fad783bf.108fb","type":"inject","z":"193d36ed.bfa9d9","name":"Inject (for testing)","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"not_home","payloadType":"str","x":240,"y":488,"wires":[["ccfb0089.a9b18"]]},{"id":"6b5bd634.b62e48","type":"debug","z":"193d36ed.bfa9d9","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1110,"y":268,"wires":[]},{"id":"e31bc4e5.4c9798","type":"api-current-state","z":"193d36ed.bfa9d9","name":"","server":"474016b8.573908","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"binary_sensor.test_door","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":1190,"y":388,"wires":[["aece8aac.687298","265a68be.0b6c98"],[]]},{"id":"ccfb0089.a9b18","type":"switch","z":"193d36ed.bfa9d9","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"not_home","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":430,"y":448,"wires":[["4b248457.5fe50c"]]},{"id":"e8159790.0272a8","type":"switch","z":"193d36ed.bfa9d9","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"DenPi4","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":430,"y":348,"wires":[["4b248457.5fe50c"]]},{"id":"2eb39595.54f7aa","type":"comment","z":"193d36ed.bfa9d9","name":"Bedroom door closed sensor","info":"","x":1160,"y":360,"wires":[]},{"id":"4d79f895.310e38","type":"comment","z":"193d36ed.bfa9d9","name":"","info":"The Switches are simply to revert the payloads back to my HA naming convention for my ease of troubleshooting","x":440,"y":480,"wires":[]},{"id":"f12488d6.b81568","type":"comment","z":"193d36ed.bfa9d9","name":"","info":"The Switches are simply to revert the payloads back to my HA naming convention for my ease of troubleshooting","x":440,"y":380,"wires":[]},{"id":"f9a77a72.43b178","type":"comment","z":"193d36ed.bfa9d9","name":"","info":"The Switches are simply to revert the payloads back to my HA naming convention for my ease of troubleshooting","x":940,"y":380,"wires":[]},{"id":"474016b8.573908","type":"server","name":"Home Assistant","addon":true}]