-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using only Geofencing & iBeacons #31
Comments
I agree, this may reduce some of the errors we are experiencing with users not being released from occupancy. |
I solved it by forking this plugin to a new and similar plugin that use geofence or iBeacon only. not considering any connection to wifi. |
Just a side note. I don't know if only using beacons or geolocation is a good thing to do. In my experience all beacon apps are not that reliable that you can just depend on that (maybe due to apple and ist beacon implementation). I pretty often don't get an event if I leave my home or arrive there. So the ping in the Network is definetly a good addon tu use ;-) |
i use IFTTT app for geo location function and the Maker channel to send the HTTP request. |
Will be fixed with pull request "Major Rework #35". You can set the new configuration parameter "pingInterval" to -1 if you dont want to use the ping. But again, it is a good fallback in case you iPhone turns off due to low battery or the webhook is just not being called, maybe due to missing network connection. |
I'm not sure if I understand how it will work. Also in that case, what happen if I enter the house without WiFi turned on on my device and it's been more than 15 minutes since the webhook received "status=true"? will it show I'm not at home again? One last case i'm interested to know how it work is when I use "pinginterval: -1" like you said, what happen with the threshold? will it still calculate the last time I logged? cause the ping is off so it shouldn't change the status of the sensor until it gets a webhook, right? Basically what would be perfect to happen is if it would save the last data received and react accordingly. for example: that way I think it would be more accurate and create a fallback if the wifi is off. Let me know your thoughts, Thanks. |
The last ping time is stored, thats right. But isTargetActive will return false as the threshold already exceeded and you cannot be pinged.
If you come home and have your Wifi turned off and you won't turn it on within the threashold you will be marked as Away. If this is a common case, you should deactivate the ping mechanism (see below).
Using the Option "pinginterval: -1" will completly turn of the ping. That means, that only Webhooks will Trigger state changes.
This could be a good Addition to handle the wifi off case. Actually I have not thought about turning Wifi of :-)) I write it on my list and hope @PeteLawrence merges my outstanding merge regest. |
Just as an aside, I wanted something to detect presence more passively, even when someone wasn't connected to the network. I also wanted things to happen more quickly than 15-20 mins, and with fewer false positives. This would cope with occasional visitors. This is a tricky combination of requirements. So I started using a combination of nmap scanning for MAC addresses to capture wifi clients, and an ESP8266 unit in promiscuous mode to sniff packets from every wifi client in the area, with RSSI for proximity. It turns out that using a combination of these two methods, I can detect everyone I need to detect - me, my wife, my son occasionally back from university, my younger son who's here a few times a week, our house sitter, friends who come to stay... and nobody is left sitting in the dark with the heating off wondering what kind of an automation nightmare they've walked into. My heating isn't turned on by pets (thanks, Nest). Everyone's happy. |
what you describe sounds really good... though I have no idea how to accomplish that, or even how to begin connecting that to my homekit. |
@nitaybz Now, webhooks are never outdated. A ping only triggers a change if at least one time a successful ping was done after a webhook was called. This should solve the "wifi not activated" scenario. |
man... you rock! I think 'people' plugin just became a very powerful tool. I can tell you that it's working perfectly with IFTTT app geolocation feature and now I can really tel who is at home and react accordingly. |
@benzman81 I think there is some kind of problem there since lastSuccessfulPing_(user) shows that both me and my wife were detect on the wifi but it didn't seem to trigger a change and I see No One as triggered. UPDATE: on second restart it did update our status. seems to work now. |
@nitaybz I double check the code just to make sure there isn't a bug. |
@nitaybz should work now, there was an issue that prevented a state change if a webhook was never called. This must have been the issue as the key changed that saved the webhook state. |
@benzman81 I also noticed a problem today when I left the house and the webhook was not received due to IFTTT app problem, the problem is that your plugin did not change the state when I logged out from the WiFi (after threshold of 15 min) though It was connected before leaving the house and a successful ping was noted , something prevented it from triggering a change. |
@nitaybz sounds pretty much like it will fix this, too. |
This should now be fixed in v0.5, thanks to @benzman81. |
Hi,
I wanted to know if it's possible to use only geofencing and iBeacons to change the status of the sensor.
since my wife is not always connected to wifi, it's quite hard to automate actions for her or for "anyOne/noOne".
If i'll use some location or beacon app on her phone I will be able to automate everything for her more accurately.
anyway, I feel like it would be more accurate if only the arrival and departure will be monitored.
Think about it...
Thanks.
The text was updated successfully, but these errors were encountered: