Presence sensor booleans

Hello,
I am a total newbie and just started using home assistant and node red. I am trying to get some booleans going were if at least one person home the home boolean is toggled on, and if no one is home toggle off the home boolean. I want to use the home boolean for future home automation. most of it seems to be working except for the home toggle turning back on after it is off, also is this the best way or am I making way more work then it needs to be. Any help or suggestions is greatly appreciated.

[{"id":"bddbed6b.c9ee5","type":"tab","label":"Home status","disabled":false,"info":""},{"id":"9deccbc5.1d0fa8","type":"server-state-changed","z":"bddbed6b.c9ee5","name":"J Home","server":"45bd2b8d.85fc14","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"device_tracker.life360_jason","entityidfiltertype":"substring","outputinitially":true,"state_type":"str","haltifstate":"home","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":false,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":50,"y":20,"wires":[["3089eeba.142b32"],["6c85e76e.b48018"]]},{"id":"3089eeba.142b32","type":"api-call-service","z":"bddbed6b.c9ee5","name":"Jason Home","server":"45bd2b8d.85fc14","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_on","entityId":"input_boolean.jasonhome","data":"","dataType":"jsonata","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":270,"y":20,"wires":[["edfb39d.5c357c8"]]},{"id":"6c85e76e.b48018","type":"api-call-service","z":"bddbed6b.c9ee5","name":"Jason away","server":"45bd2b8d.85fc14","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_off","entityId":"input_boolean.jasonhome","data":"","dataType":"jsonata","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":270,"y":60,"wires":[["60a4ac7b.151054","72f85e95.694c3","ff307fda.d9d78"]]},{"id":"ee71257c.02a378","type":"api-current-state","z":"bddbed6b.c9ee5","name":"check Jason home","server":"45bd2b8d.85fc14","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is_not","override_topic":false,"entity_id":"input_boolean.jasonhome","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":750,"y":60,"wires":[[],[]]},{"id":"edfb39d.5c357c8","type":"api-call-service","z":"bddbed6b.c9ee5","name":"Anyone home?","server":"45bd2b8d.85fc14","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_on","entityId":"input_boolean.home","data":"","dataType":"jsonata","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":760,"y":360,"wires":[["2694d02b.9351d"]]},{"id":"bf186808.a44bb8","type":"server-state-changed","z":"bddbed6b.c9ee5","name":"Kate Home","server":"45bd2b8d.85fc14","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"device_tracker.life360_kate","entityidfiltertype":"substring","outputinitially":true,"state_type":"str","haltifstate":"home","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":false,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":60,"y":380,"wires":[["f02e7e93.97dc7"],["105c46bf.c492b9"]]},{"id":"f02e7e93.97dc7","type":"api-call-service","z":"bddbed6b.c9ee5","name":"Katelynn Home","server":"45bd2b8d.85fc14","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_on","entityId":"input_boolean.katelynnhome","data":"","dataType":"jsonata","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":260,"y":360,"wires":[["edfb39d.5c357c8"]]},{"id":"105c46bf.c492b9","type":"api-call-service","z":"bddbed6b.c9ee5","name":"Katelynn away","server":"45bd2b8d.85fc14","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_off","entityId":"input_boolean.katelynnhome","data":"","dataType":"jsonata","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":260,"y":440,"wires":[["72f85e95.694c3","60a4ac7b.151054","ee71257c.02a378"]]},{"id":"f0b9f621.a6c268","type":"server-state-changed","z":"bddbed6b.c9ee5","name":"B Home","server":"45bd2b8d.85fc14","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"device_tracker.life360_brenden","entityidfiltertype":"substring","outputinitially":true,"state_type":"str","haltifstate":"home","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":false,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":60,"y":200,"wires":[["26083c6.08259c4"],["80443f6.b29aac"]]},{"id":"26083c6.08259c4","type":"api-call-service","z":"bddbed6b.c9ee5","name":"Brenden Home","server":"45bd2b8d.85fc14","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_on","entityId":"input_boolean.brendenhome","data":"","dataType":"jsonata","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":280,"y":180,"wires":[["edfb39d.5c357c8"]]},{"id":"80443f6.b29aac","type":"api-call-service","z":"bddbed6b.c9ee5","name":"Brenden away","server":"45bd2b8d.85fc14","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_off","entityId":"input_boolean.brendenhome","data":"","dataType":"jsonata","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":280,"y":260,"wires":[["ff307fda.d9d78","60a4ac7b.151054","ee71257c.02a378"]]},{"id":"6e8cd3fb.72250c","type":"server-state-changed","z":"bddbed6b.c9ee5","name":"Kim Home","server":"45bd2b8d.85fc14","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"device_tracker.life360_kim","entityidfiltertype":"substring","outputinitially":true,"state_type":"str","haltifstate":"home","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":false,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":60,"y":120,"wires":[["9092b0cc.3c9eb"],["9cf8ccc6.30a8e"]]},{"id":"9092b0cc.3c9eb","type":"api-call-service","z":"bddbed6b.c9ee5","name":"Kim Home","server":"45bd2b8d.85fc14","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_on","entityId":"input_boolean.kimhome","data":"","dataType":"jsonata","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":270,"y":100,"wires":[["edfb39d.5c357c8"]]},{"id":"9cf8ccc6.30a8e","type":"api-call-service","z":"bddbed6b.c9ee5","name":"Kim away","server":"45bd2b8d.85fc14","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_off","entityId":"input_boolean.kimhome","data":"","dataType":"jsonata","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":260,"y":140,"wires":[["ee71257c.02a378","72f85e95.694c3","ff307fda.d9d78"]]},{"id":"60a4ac7b.151054","type":"api-current-state","z":"bddbed6b.c9ee5","name":"check Kim home","server":"45bd2b8d.85fc14","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is_not","override_topic":false,"entity_id":"input_boolean.kimhome","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":740,"y":120,"wires":[["f5bf7829.24bc88"],[]]},{"id":"72f85e95.694c3","type":"api-current-state","z":"bddbed6b.c9ee5","name":"check Brenden home","server":"45bd2b8d.85fc14","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is_not","override_topic":false,"entity_id":"input_boolean.brendenhome","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":760,"y":180,"wires":[["f5bf7829.24bc88"],[]]},{"id":"ff307fda.d9d78","type":"api-current-state","z":"bddbed6b.c9ee5","name":"check Katelynn home","server":"45bd2b8d.85fc14","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is_not","override_topic":false,"entity_id":"input_boolean.katelynnhome","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":760,"y":240,"wires":[[],[]]},{"id":"f5bf7829.24bc88","type":"api-call-service","z":"bddbed6b.c9ee5","name":"No one home","server":"45bd2b8d.85fc14","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_off","entityId":"input_boolean.home","data":"","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":970,"y":140,"wires":[[]]},{"id":"7b2401be.d68b4","type":"switch","z":"bddbed6b.c9ee5","name":"Turn on outside lights","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":1260,"y":140,"wires":[["5ad10d80.5a2114"]]},{"id":"5ad10d80.5a2114","type":"trigger-state","z":"bddbed6b.c9ee5","name":"lights","server":"45bd2b8d.85fc14","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityid":"light.garage_outside_lights,","entityidfiltertype":"substring","debugenabled":false,"constraints":[{"targetType":"this_entity","targetValue":"","propertyType":"current_state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"","propertyValue":"new_state.state"}],"outputs":2,"customoutputs":[],"outputinitially":false,"state_type":"str","x":1450,"y":140,"wires":[[],[]]},{"id":"2694d02b.9351d","type":"debug","z":"bddbed6b.c9ee5","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1000,"y":360,"wires":[]},{"id":"32a1abef.8bea94","type":"poll-state","z":"bddbed6b.c9ee5","name":"Check J home","server":"45bd2b8d.85fc14","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"updateinterval":"1","updateIntervalUnits":"seconds","outputinitially":false,"outputonchanged":true,"entity_id":"input_boolean.jasonhome","state_type":"str","halt_if":"on","halt_if_type":"str","halt_if_compare":"is_not","outputs":2,"x":950,"y":40,"wires":[["f5bf7829.24bc88"],[]]},{"id":"ac0dcf02.e6f04","type":"poll-state","z":"bddbed6b.c9ee5","name":"Check Katelynn home","server":"45bd2b8d.85fc14","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"updateinterval":"1","updateIntervalUnits":"seconds","outputinitially":true,"outputonchanged":true,"entity_id":"input_boolean.jasonhome","state_type":"str","halt_if":"on","halt_if_type":"str","halt_if_compare":"is_not","outputs":2,"x":780,"y":300,"wires":[["f5bf7829.24bc88"],[]]},{"id":"45bd2b8d.85fc14","type":"server","name":"Home Assistant","addon":true}]

You probably want to take a look at groups.

https://www.home-assistant.io/integrations/group/

Here’s a solution using NR without groups.

[{"id":"97859566.4db668","type":"trigger-state","z":"bddbed6b.c9ee5","name":"","server":"","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityid":"device_tracker.life360_jason,device_tracker.life360_kim,device_tracker.life360_brenden,device_tracker.life360_kate","entityidfiltertype":"substring","debugenabled":false,"constraints":[{"targetType":"entity_id","targetValue":"device_tracker.life360_jason","propertyType":"current_state","comparatorType":"is_not","comparatorValueDatatype":"str","comparatorValue":"home","propertyValue":"new_state.state"},{"targetType":"entity_id","targetValue":"device_tracker.life360_kim","propertyType":"current_state","comparatorType":"is_not","comparatorValueDatatype":"str","comparatorValue":"home","propertyValue":"new_state.state"},{"targetType":"entity_id","targetValue":"device_tracker.life360_brenden","propertyType":"current_state","comparatorType":"is_not","comparatorValueDatatype":"str","comparatorValue":"home","propertyValue":"new_state.state"},{"targetType":"entity_id","targetValue":"device_tracker.life360_kate","propertyType":"current_state","comparatorType":"is_not","comparatorValueDatatype":"str","comparatorValue":"home","propertyValue":"new_state.state"}],"outputs":2,"customoutputs":[],"outputinitially":false,"state_type":"str","x":462,"y":576,"wires":[["2d5fa90.a47cc58"],["794e82e0.5d700c"]]},{"id":"794e82e0.5d700c","type":"api-call-service","z":"bddbed6b.c9ee5","name":"Someone is home","server":"","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_on","entityId":"input_boolean.home","data":"","dataType":"jsonata","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":1034,"y":624,"wires":[[]]},{"id":"2d5fa90.a47cc58","type":"api-call-service","z":"bddbed6b.c9ee5","name":"No one home","server":"","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_off","entityId":"input_boolean.home","data":"","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1024,"y":576,"wires":[[]]}]

https://nodered.org/docs/user-guide/editor/workspace/import-export

Thank you, looks like that works, I will also take a look at groups. Thank you so much, I have been learning a ton.