Be aware that context data menu doesn’t refresh on its own. you have to click reload icon to get current values
Regarding your flow I’m not sure how you distinguish all persons are at home (this second trigger state node from the first post).
I’m using GetEntities node for that. In switch node you can put number of members you expecting.
[{"id":"ae0f2f18.6cbb7","type":"ha-get-entities","z":"bcb4b1c6.803708","name":"How many persons in house","server":"6cdd0bc8.b8e434","version":0,"rules":[{"property":"entity_id","logic":"is","value":"person\\.*","valueType":"re"},{"property":"state","logic":"is","value":"home","valueType":"str"}],"output_type":"count","output_empty_results":false,"output_location_type":"msg","output_location":"payload","output_results_count":1,"x":480,"y":220,"wires":[["affb329d.8fa8f"]]},{"id":"affb329d.8fa8f","type":"switch","z":"bcb4b1c6.803708","name":"zero or more","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"0","vt":"str"},{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":710,"y":220,"wires":[["ee603327.68635","18bfb8bd.6da1c7"],["fcfa14ef.2feb28","18bfb8bd.6da1c7"]]},{"id":"d46b853a.df0c78","type":"server-state-changed","z":"bcb4b1c6.803708","name":"Some person state changed","server":"6cdd0bc8.b8e434","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"person\\.*","entityidfiltertype":"regex","outputinitially":true,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":"0","forType":"num","forUnits":"minutes","outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":200,"y":220,"wires":[["ae0f2f18.6cbb7"]]},{"id":"6cdd0bc8.b8e434","type":"server","name":"HA MaXyM","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30}]
The message with count should contain information about the person who triggered the event