thanks @Hopperpop and @zenofmud
I have now included my code below for the bit of flow i am stuck with, the downstream stuff from here is all working fine.
What the flow is doing is getting 4 sensor states, then writing them as global variables as i wish to use them in other flows. I then have two call service nodes that either toggle on or off a boolean helper i have (house secure or not).
This is just part of the larger flow, i have more sensors so just need to check if all in one state or not, in hindsight my variables should probably read secure or not secure rather than open/closed or locked/unlocked as that would make it easier to check if all read secure or not i presume. Hope this helps to explain what i am trying to achieve.
@Hopperpop, imported your flow but struggling a bit to see how i incorporate this, (much more likely to be my understanding than your offer of help!!!)
thanks
[{"id":"15a46d249b8c7845","type":"server-state-changed","z":"58532bd4fd04eec0","name":"End of day routine trigger","server":"2620ec24.eeb984","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_boolean.goodnight_sequence","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","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,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":170,"y":1200,"wires":[["c6548a0f79a191e5","7819f11e5ed0ded2","87da763460c72a93","96ad7fe03be679a7"],[]]},{"id":"c6548a0f79a191e5","type":"api-current-state","z":"58532bd4fd04eec0","name":"Front door lock state","server":"2620ec24.eeb984","version":2,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"lock.front_door_smart_lock","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":520,"y":1120,"wires":[["1089538f45866cf5"]]},{"id":"7819f11e5ed0ded2","type":"api-current-state","z":"58532bd4fd04eec0","name":"Gym back door left open state","server":"2620ec24.eeb984","version":2,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"binary_sensor.gym_back_left_door_sensor","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":550,"y":1180,"wires":[["9d41272a3989f58e"]]},{"id":"87da763460c72a93","type":"api-current-state","z":"58532bd4fd04eec0","name":"Gym back door right lock state","server":"2620ec24.eeb984","version":2,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"binary_sensor.gym_back_right_door_sensor","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":550,"y":1240,"wires":[["d0fdd5ba9e85d44c"]]},{"id":"96ad7fe03be679a7","type":"api-current-state","z":"58532bd4fd04eec0","name":"Jarvis lock state","server":"2620ec24.eeb984","version":2,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"lock.jarvis_door_lock","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":500,"y":1300,"wires":[["4cddb02641d7ae59"]]},{"id":"d8da9c5af9713c69","type":"inject","z":"58532bd4fd04eec0","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":190,"y":1120,"wires":[["c6548a0f79a191e5","7819f11e5ed0ded2","87da763460c72a93","96ad7fe03be679a7"]]},{"id":"1089538f45866cf5","type":"function","z":"58532bd4fd04eec0","name":"Write Front door lock variable to global.front_door_lock_status","func":"if (msg.payload == \"locked\") {\n global.set(\"front_door_lock_status\",\"locked\")\n} else { \n global.set(\"front_door_lock_status\",\"unlocked\")\n}\nreturn msg; \n\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":970,"y":1120,"wires":[[]]},{"id":"9d41272a3989f58e","type":"function","z":"58532bd4fd04eec0","name":"Write gym back door left open variable to global.front_door_lock_status","func":"if (msg.payload == \"off\") {\n global.set(\"gym_back_door_left_open_status\",\"closed\")\n} else { \n global.set(\"gym_back_door_left_open_status\",\"open\")\n}\nreturn msg; \n\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":990,"y":1180,"wires":[[]]},{"id":"d0fdd5ba9e85d44c","type":"function","z":"58532bd4fd04eec0","name":"Write gym back door right open variable to global.front_door_lock_status","func":"if (msg.payload == \"off\") {\n global.set(\"gym_back_door_right_open_status\",\"closed\")\n} else { \n global.set(\"gym_back_door_right_open_status\",\"open\")\n}\nreturn msg; \n\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1000,"y":1240,"wires":[[]]},{"id":"4cddb02641d7ae59","type":"function","z":"58532bd4fd04eec0","name":"Write jarvis door lock variable to global.jarvis_lock_status","func":"if (msg.payload == \"locked\") {\n global.set(\"jarvis_door_lock_status\",\"locked\")\n} else { \n global.set(\"jarvis_door_lock_status\",\"unlocked\")\n}\nreturn msg; \n\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":950,"y":1300,"wires":[[]]},{"id":"b3f9b41e4ffb43a8","type":"api-call-service","z":"58532bd4fd04eec0","name":"Set house secure boolean to On","server":"2620ec24.eeb984","version":3,"debugenabled":false,"service_domain":"homeassistant","service":"turn_on","entityId":"input_boolean.house_secure","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1490,"y":1160,"wires":[[]]},{"id":"e8d8937005ba7f3a","type":"api-call-service","z":"58532bd4fd04eec0","name":"Set house secure boolean to Off","server":"2620ec24.eeb984","version":3,"debugenabled":false,"service_domain":"homeassistant","service":"turn_on","entityId":"input_boolean.house_secure","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1490,"y":1240,"wires":[[]]},{"id":"2620ec24.eeb984","type":"server","name":"Home Assistant","version":1,"legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]