Smart Presence
- Device Tracking: The app tracks devices by their IP address. You would need to set a static IP address for each device you want to track. This is necessary because if the device’s IP address changes (which can happen with DHCP), the app won’t be able to track it properly.
- Port Scanning: The app checks whether the specified devices are reachable on the network by attempting to connect to a specified port. Closed ports are often used for this purpose. When a device is connected to Wi-Fi, the port, although closed, will respond in a certain way (usually by refusing the connection), indicating the device is present. If there’s no response (like the device is off or disconnected from Wi-Fi), it’s assumed to be away.
It’s important to note that the reliability of this method can vary based on several factors, like network configuration, device settings (some devices may turn off Wi-Fi to save power), and the accuracy of the IP address configuration. Additionally, with the increasing use of random MAC addresses by smartphones for privacy, tracking based on IP might be less reliable unless fixed IP addresses are assigned to devices.
Link to live version app store.
Link to test version app store.
Link to the source.
Installing:
For adding a device, please follow these steps:
- Check the IP address of the smartphone. This can be done from the admin UI of the Wi-Fi router.
- Make a static reservation for the IP address. Also done from the admin UI of the Wi-Fi router.
- Add the device by entering a name, and the IP address of the smartphone. Check the ‘Is guest’ or ‘Is kid’ - checkboxes for guests or kids.
Ensure you do not use RANDOMIZED MAC when connecting your phone to your Wifi.(current defaults on Android phones)
Device: Smartphone
Triggers
- A household member arrived / left
- A kid (part of the household) arrived / left
- A specific user arrived / left
- A guest arrived / left
- Someone arrived / left
- The first household member arrived
- The first kid arrived
- The first guest arrived
- The first person arrived
- The last household member left
- The last kid left
- The last guest left
- The last person left
Conditions
- Household members home / No household members home
- Kids at home / Kids not at home
- Having guests / Not having guests
- Someone is home / Nobody is home
- A specific user is home / away
Acknowledgements:
- The original ‘Smart Presence’ app created by Terry Hendrix, developed then for some time by Bjørnar Almli. Thank you guys !
Feedback:
Please report issues at the issues section on Github.
If you like the app, you can donate here to keep my ChatGPT running
Release Notes:
available as Changelog on Smart Presence App for Homey | Homey
Recommended settings of devices :
'Away Delay': '90 seconds',
'Normal Mode Check Interval': '15000 ms',
'Normal Mode Timeout': '2 seconds',
'Stress Period': '60 seconds',
'Stress Mode Check Interval': '2500 ms',
'Stress Host Timeout': '2 seconds'