We were discussing some reliable ways to help with presence. CORE uses Uptime Kuma for monitoring things and it fits the bill perfectly. Set up a monitor for your cell phones and run it through node red to go with presence.
The minimum ping is 20 seconds.
It is VERY important that you don’t have more than one https node. Connect subsequent devices to it or it tends to break things. Filter from there.
Open Uptime Kuma on the CORE desktop.
If it does not open - enable it using putty
sudo oll-uptime-kuma --enable
It’s an easy to understand interface.
Presence can be possible in this way on CORE if you’re looking for a second verification.
Open Uptime Kuma on CORE Desktop
Go to settings in the upper right corner.
Click Notifications
Set up notification
(See Screenshot)
The test will fail at this point. Don’t worry about that.
Click Save
Next go to the main screen and click Add new monitor in the upper left hand corner.
Set up the ping to your phone. Use your IP address.
Go to node red and import this flow. You can adjust for your use case
Hostname is the device IP you’re monitoring. 1 per device.
[{"id":"e5eea344c20c87aa","type":"http in","z":"7ea61b2d.ccb734","name":"uptime kuma","url":"/webhook/uptime-kuma","method":"post","upload":false,"swaggerDoc":"","x":150,"y":200,"wires":[["0763fe5659fce5ec","12e505fd45c94bfb","bea96740494af949"]]},{"id":"0763fe5659fce5ec","type":"debug","z":"7ea61b2d.ccb734","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":430,"y":200,"wires":[]},{"id":"12e505fd45c94bfb","type":"http response","z":"7ea61b2d.ccb734","name":"","statusCode":"200","headers":{},"x":420,"y":160,"wires":[]},{"id":"f9809cfedf8fb309","type":"switch","z":"7ea61b2d.ccb734","name":"Up/Down?","property":"payload.heartbeat.status","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"},{"t":"eq","v":"1","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":370,"y":360,"wires":[["974e3a6b3d9b4d5a"],["9b391ef52bd3fab9"]]},{"id":"ee79225bc8ec2528","type":"switch","z":"7ea61b2d.ccb734","name":"Hostname?","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"192.168.9.37","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":350,"y":300,"wires":[["f9809cfedf8fb309"]]},{"id":"974e3a6b3d9b4d5a","type":"change","z":"7ea61b2d.ccb734","name":"Down","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":340,"wires":[["04146cfcaefc7e17"]]},{"id":"9b391ef52bd3fab9","type":"change","z":"7ea61b2d.ccb734","name":"Up","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":380,"wires":[["04146cfcaefc7e17"]]},{"id":"04146cfcaefc7e17","type":"debug","z":"7ea61b2d.ccb734","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":730,"y":360,"wires":[]},{"id":"bea96740494af949","type":"change","z":"7ea61b2d.ccb734","name":"Hostname as topic","rules":[{"t":"set","p":"topic","pt":"msg","to":"payload.monitor.hostname","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":250,"y":260,"wires":[["ee79225bc8ec2528"]]}]