I can tell if I'm home by pinging my phone's (reserved) IP address with node-red-node-ping
[{"id":"65e0a49e109e70a6","type":"ping","z":"5de4802425738256","protocol":"IPv4","mode":"triggered","name":"Ping ","host":"192.168.1.51, 192.168.1.52","timer":"20","inputs":1,"x":410,"y":120,"wires":[["3c35d8f7b54dc61d"]]},{"id":"3c35d8f7b54dc61d","type":"switch","z":"5de4802425738256","name":"online?","property":"payload","propertyType":"msg","rules":[{"t":"istype","v":"number","vt":"number"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":560,"y":120,"wires":[["86b6ba68e32bf4d1"],["1af3826e1a9f7e88"]]},{"id":"86b6ba68e32bf4d1","type":"change","z":"5de4802425738256","name":"ONLINE","rules":[{"t":"set","p":"payload","pt":"msg","to":"topic & \" is online\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":100,"wires":[["3d6790d4d4e2d3b3"]]},{"id":"3d6790d4d4e2d3b3","type":"debug","z":"5de4802425738256","name":"Who's home?","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":900,"y":120,"wires":[]},{"id":"79c181405c6a63c2","type":"inject","z":"5de4802425738256","name":"GO","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":250,"y":120,"wires":[["65e0a49e109e70a6"]]},{"id":"1af3826e1a9f7e88","type":"change","z":"5de4802425738256","name":"OFFLINE","rules":[{"t":"set","p":"payload","pt":"msg","to":"topic & \" is offline\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":140,"wires":[["3d6790d4d4e2d3b3"]]}]