[APP][PRO] Smart Presence

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 :fast_forward: app store.
Link to test version app store.
Link to the source.

Installing:

For adding a device, please follow these steps:

  1. Check the IP address of the smartphone. This can be done from the admin UI of the Wi-Fi router.
  2. Make a static reservation for the IP address. Also done from the admin UI of the Wi-Fi router.
  3. 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 ! :tophat:

Feedback:

Please report issues at the issues section on Github.

If you like the app, you can donate here to keep my ChatGPT running :wink: :robot:

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'
21 Likes

Love this! Do you have a download link? Btw the link to github leads to a 404 page

I’m waiting for the previous developer to transfer the app to my account, and then I will release a new version for you to test.

6 Likes

Hey @balmli, pleased that you are taking over the development of the app!

I use non-purpose Smart Presence to detect the general readiness of IP devices on the network with a Fritzbox. So analogous to the ubiquity function. Works very well.

Just as a hint for you that there is more potential in the app that can be expanded in the future :wink:

Very well ! Just put all your improvement suggestions here :slight_smile:

And don’t forget your PayPal donation link! :+1:t4:

1 Like

Wow, this was fast :clap: now I’m just waiting for the download link :+1:

Now version 0.6.0 is ready for testing:

Please test :slight_smile:

  • That upgrading from 0.5.0 / 0.5.1 goes well
  • That the flows work as expected
  • That it works on your devices. I’ve only tested on iPhone.
8 Likes

Downloaded and it works on Android, thanks

2 Likes

Testing :slightly_smiling_face:

1 Like

Working here, on my Android phone.

Thanks!

1 Like

Tested on some devices like TV, printer and android. It works fine :+1::pray:

1 Like

dear Balmli, thanks for quickly customizing the app. maybe you still have some time to adjust a few more apps haha. keep up the good work

1 Like

I am using the app for a while now with good results, but since the update to 0.6.2 today it seems that my phone is not being noticed anymore on connecting to WiFi.

The flows I use work fine with the test button but when connecting/disconnecting from WiFi nothing happens anymore. My flows aren’t changed in any way and my IP address is still fixed and correct defined in the app config.

Is there something wrong with the update or do I need to reconfigure something? Please help, because I use smart presences for controlling my lighting every evening! Now it just stays dark :slight_smile:

Hi,

Have you checked the default Away delay in adv. settings?

It’s 900 seconds / 15 minutes.

If you still have problems, please press the «Create diagnostics report» - button from App-settings, and I might see what’s wrong

Thanks for the quick reply!

And yes, delay is 900s (unchanged after update of the app).
I will try to remove and add the flows and see if that makes a difference. If not I will send a diagnostic report to you.

Greets,

Bart

Same here. Not detecting my phone anymore since the update to 0.6.2. Rebooted Homey w/o succes. Is there a fix for this?

Hi all, thanks for reporting!

Yes, there’s a bug in 0.6.2 for existing users. Install v. 0.6.3 please, just released to test.

Or you can wait for Athom to approve it.

2 Likes

Thanks! v 0.6.3 is OK!

1 Like

Hey all,
could someone please share a flow for leaving home (A household member left)?
Which variable I have to use in the „And…“ section?

Thanks in advance!