Ring Alarm Arm/Disarm scenarios

I have Ring Alarm integration in Home Assistant. I would like to completely automate Ring Alarm based on a couple of different scenarios.

First attempt was During a certain time frame and everyone is home and the door is locked, Arm Ring Home! It works but in the morning if you open the wrong door, like I have many times to let the dog out, you set the alarm off.

[{"id":"58724230.ada42c","type":"api-call-service","z":"680d480d.930de8","name":"Ring Arm-Home","server":"58638182.29a9f","version":1,"debugenabled":false,"service_domain":"alarm_control_panel","service":"alarm_arm_home","entityId":"alarm_control_panel.ring_alarm","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1020,"y":280,"wires":[[]]},{"id":"ea21a3df.552fc","type":"delay","z":"680d480d.930de8","name":"","pauseType":"delay","timeout":"60","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":800,"y":300,"wires":[["58724230.ada42c","1a5a54fd.75752b"]]},{"id":"1a5a54fd.75752b","type":"api-call-service","z":"680d480d.930de8","name":"Ring Disarm","server":"58638182.29a9f","version":1,"debugenabled":false,"service_domain":"alarm_control_panel","service":"alarm_disarm","entityId":"alarm_control_panel.ring_alarm","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1010,"y":340,"wires":[[]]},{"id":"4094816f.8741f","type":"and-gate","z":"680d480d.930de8","name":"Everyone's Home?","rules":[{"t":"eq","v":"Home","vt":"str","propertyType":"msg","property":"payload","topic":"person.danny"},{"t":"eq","v":"Home","vt":"str","propertyType":"msg","property":"payload","topic":"person.julie"},{"t":"eq","v":"Home","vt":"str","propertyType":"msg","property":"payload","topic":"person.dylan"},{"t":"eq","v":"Home","vt":"str","propertyType":"msg","property":"payload","topic":"person.rylee"}],"outputTopic":"","gateType":"and","emitOnlyIfTrue":false,"x":330,"y":325,"wires":[["cb0f4d29.c5853"]]},{"id":"8f628d89.c21b8","type":"server-state-changed","z":"680d480d.930de8","name":"Dan Home?","server":"27b00b79.473e94","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"person.danny","entityidfiltertype":"substring","outputinitially":true,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":false,"for":"","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":90,"y":240,"wires":[["4094816f.8741f"]]},{"id":"38fbab21.c6d1f4","type":"server-state-changed","z":"680d480d.930de8","name":"Julie Home?","server":"27b00b79.473e94","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"person.julie","entityidfiltertype":"substring","outputinitially":true,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":false,"x":90,"y":300,"wires":[["4094816f.8741f"]]},{"id":"fb87ab62.f8c8d8","type":"server-state-changed","z":"680d480d.930de8","name":"Dylan Home?","server":"58638182.29a9f","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"person.dylan","entityidfiltertype":"substring","outputinitially":true,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":false,"x":90,"y":360,"wires":[["4094816f.8741f"]]},{"id":"85edaa8d.9da8e8","type":"server-state-changed","z":"680d480d.930de8","name":"Rylee Home?","server":"27b00b79.473e94","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"person.rylee","entityidfiltertype":"substring","outputinitially":true,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":false,"x":90,"y":420,"wires":[["4094816f.8741f"]]},{"id":"8d975ff2.4ce34","type":"api-current-state","z":"680d480d.930de8","name":"Backdoor Locked?","server":"58638182.29a9f","version":1,"outputs":2,"halt_if":"open","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"binary_sensor.wyzesense_777b4d8e","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":590,"y":320,"wires":[["ea21a3df.552fc"],[]]},{"id":"cb0f4d29.c5853","type":"time-range-switch","z":"680d480d.930de8","name":"","lat":"","lon":"","startTime":"22:00","endTime":"07:00","startOffset":0,"endOffset":0,"x":370,"y":420,"wires":[["8d975ff2.4ce34"],[]]},{"id":"58638182.29a9f","type":"server","z":"","name":"Hassio","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true},{"id":"27b00b79.473e94","type":"server","z":"","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]

Tried adding some additional features to it. I used 2 Wyze contact sensors to monitor the status of the door lock position so if either door was unlocked it would disarm ring. That seems to work also but Not sure how I can tie it all together and make it a little cleaner using something based on time, person zones and lock statues.

The two locks below are not working at the moment, not sure whats they can both be in the same state but the next block will never go true. What I am looking for there really is, Is anyone home> Are both doors locked> if true, Arm Ring Home. If someones zone changes to Home, disarm ring so they can come in without setting off the alarm.

[{"id":"976dbbc.f341b48","type":"server-state-changed","z":"680d480d.930de8","name":"Sliding Glass Locked?","server":"27b00b79.473e94","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.wyzesense_777b5a88","entityidfiltertype":"substring","outputinitially":true,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":"","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":160,"y":900,"wires":[["693f9ffd.75ff3"]]},{"id":"9e2690a8.3ac52","type":"server-state-changed","z":"680d480d.930de8","name":"Back Door Locked?","server":"27b00b79.473e94","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.wyzesense_777b4d8e","entityidfiltertype":"substring","outputinitially":true,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":"","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":150,"y":960,"wires":[["693f9ffd.75ff3"]]},{"id":"693f9ffd.75ff3","type":"and-gate","z":"680d480d.930de8","name":"Both Doors Locked?","rules":[{"t":"eq","v":"On","vt":"str","propertyType":"msg","property":"payload","topic":""},{"t":"eq","v":"On","vt":"str","propertyType":"msg","property":"payload","topic":""}],"outputTopic":"","gateType":"and","emitOnlyIfTrue":true,"x":460,"y":940,"wires":[["5a4a8a7d.0f8194"]]},{"id":"8bac6ce0.5651a","type":"api-call-service","z":"680d480d.930de8","name":"Ring Arm-Home","server":"58638182.29a9f","version":1,"debugenabled":false,"service_domain":"alarm_control_panel","service":"alarm_arm_home","entityId":"alarm_control_panel.ring_alarm","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1140,"y":880,"wires":[[]]},{"id":"feb47c30.f784e","type":"api-call-service","z":"680d480d.930de8","name":"Ring Disarm","server":"58638182.29a9f","version":1,"debugenabled":false,"service_domain":"alarm_control_panel","service":"alarm_disarm","entityId":"alarm_control_panel.ring_alarm","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1130,"y":980,"wires":[[]]},{"id":"5a4a8a7d.0f8194","type":"switch","z":"680d480d.930de8","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":890,"y":940,"wires":[["8bac6ce0.5651a"],["feb47c30.f784e"]]},{"id":"27b00b79.473e94","type":"server","z":"","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true},{"id":"58638182.29a9f","type":"server","z":"","name":"Hassio","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]

HI and welcome to the forum.

It is good to see you posted a screen shot and the code the right way.

But one thing: Not every one has Home Assistant installed. So by doing that, you are limiting the people who can help you.

Alas it needs a bit of work on your part, but I'd suggest:
Replace the home assistant nodes on the left with inject nodes that send what the other nodes.

The one in the middle: Tricky. But replace it with a debug node.
Then below that node add inject nodes that send what the previous node sends.

Then the two on the right: again, replace with debug nodes, and explain what is expected in the nodes to action what.

Thanks for the suggestions, I'll give that a try and see what I get and go from there.