There may be a third option, but that depends on the use case. In my case, I only use the presence to unlock the house when I arrive. It doesn't matter whether my iPhone drops from the Wifi when I'm home or away. It only matters for those 15-20 seconds when I arrive.
That may help to define if the "not present" really is an issue.
My desire in using this sensor was to assure that my arrival home was transmitted to HE as quickly s possible so that Home Mode runs. I have Life 360 and an Iris V1 fob but I still find the door locked when I turn the knob. I set the timeout for 15 minutes and created a rule that refreshes it every minute but still find that my Mode is set to Away once or twice every hour. Any other ideas? It would be nice to use this sensor.
That way it stays within the driver code and you don't need a separate RM rule. Although I see you are also refreshing a thermostat which this will not do.
Would like to set a 30 second refresh and would like to do it in the driver code. I tried replacing the line with:
schedule("*/30 * * * * ? *", refresh)
schedule("0/30 * * * * ? *", refresh)
Either way my logs still show a 1 minute refresh. I simply hit save in the driver to make the changes and I also tried rebooting the hub. Should changes made to the driver automatically change the behaviour of the device or do you have to reinstall the device?
Thanks for any help on how to change the device driver to a 30 second poll and then have the device run the modified driver.
Just wanted to say thanks for this, it works on both Pixel XL and Pixel XL2 running android 9. Using this as a backup for presence in case the android app does not catch it.
Just installed this to use with my Android Galaxy S7 and it seems to be working fine.
Thanks a bunch.
One minor thing though, the box named 'Timeout Minutes' is actually the number of failed pings before changing the state to 'Not Present'. Confused me a bit, at first.
Thanks again. This looks like the solution I've been looking for.
Jim
Well, I can see why that would be a little confusing... However, the driver checks every 1 minute. So, I am guessing the author felt that the number of counts equals number of minutes. Most users prefer to think in units of time.
thanks for the app. This works great with Moto G5, G6, X4 and Pixel 1. We dont do fruit so i had to modify the code. Mine properly shows in the apps as "Wifi presence sensor"
Hi, I can see my S8+ & my wifes S6 in devices. When I go into RM I can't see either of them,. Can anyone advise what I haven't done to make them visible please
Hi, Sorry for not replying earlier, I've been away. Yes I have selected the iPhone Wifi Driver as the driver. What 'Event Trigger' should it be located within?? I'm pretty sure I've looked in them all?
They are both in the 'Devices' list, & both are showing 'Present' as we are both home.