This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Presence not working, again!
Homeyuser
Member
And again, after a restart of homey, I have problems with the presence control.
Sometimes it's my iphone7, and sometimes my wife's iphone5.
It becomes very annoying. Presence control is the most important thing for home
automation (C.V. temperature down, turn off all lights, when leaving the house).
Hopefully this issue has been resolved in the new app.
Comments
presence is not reliable at all
smart présence is also not doing the trick since new smartphones disconnect from WiFi because of energie use reduction
In this topic there is a solution for android users:
https://forum.athom.com/discussion/4303/presence-not-reliable#latest
But here presence with android really sucks. So for Android i Use Tasker and in that way it works verry good.
So for me presence is verry reliable.
but i think that that presence should work just as good for any phone out of the box...and that, they just cann't make it happen:-(
I use the alarm as a precent thing, when alarm in ON noone is home, when OFF someone is home. Simple.
Good battery, homey stable detecting two iPhones! Stable for couple of months!
Presence detection in the stable app on Android sometimes does not work properly due to the fact that Android disables the wifi signal once your phone is locked.
One of our users successfully got it working using the following steps:
Could you try this and see if this solves the issue?
I gave up the Homey presence function a long while ago.. even all the other solutions like "better presence".
Since I made that choice Homey never missed a flow started after presence change (radius).
The odd thing about it is that the Homey app is granted permission to use the 'location' of the phone, and the phone is spot on about it's location. But the Homey apparatus s not aware of that location. Why not?
And yes I have tried reinstalling/logging out/removing phones and then adding them again/rebooting and all sorts of things. But you know, that hit and miss kind of see what sticks is not genuine troubleshooting. And so what else to expect than that it didn't work or did not work reliably or not a 'long' periode of time.
And yes I have seen good reliable working presence detection in action. Tado has an excellent one for instance.
@Bram Has it any use reporting this issue of failing presence detection? I mean, if there are no resources available to give a follow up on it then we can skip this. So if yes, where and how would you like that?
Best regards, Herbert
All the best,
Herbert
Setup an home-assistant instance
Setup owntracks on both phones (iOS and Android) and HASS
Added a ping switch for both phones in HASS
Added the automation mentioned here:
https://community.home-assistant.io/t/presence-detection-with-multiple-devices-multiple-trackers/4335
The only exception is the ping switch, iOS has a tendency to let the wifi go to sleep hence ping can be unreliable,
however if ping is accepted the phone *must* be at home, so the ping test is added to the "home" automation.
To communicate with the other systems i have setup a MQTT server (which is already included in HASS) Homey just uses the MQTT client and flicks the "home/not home" (better logic) switch based on MQTT.
Beauty of this is that the geofences are maintained in HASS and i'm able to re-use these in Homey
As far as accuracy, I think its about 95-98% correct, occasionally the owntracks get's stuck on a nearby geofence,
but the ping switch will sort that until the next update.
I tried this on my s7 and my girlfriens s8 but both are not working properly. Sometimes it works but then not.
Strange thing is that it sometimes work on the s8 (homey gives a message) but flows are not triggered.
I leave it for now and wait for the homey update.
In the meantime i try the hue geofencing for lightning.
last time Ike I’m going to explain...
just sinple use own tracks via https... no extra servers, no ping bla bla. Every mobile phone sleeps after 1-3 minutes, so ping is a not so good solution.
since I installed owntracks on our iPhones (no dead battery compared to other tracking apps) I think I got a 99% perfect solution.
Just my last 2 cents
so i will test your solution. i think the reason why many people don't want own tracks is the fear that another company has your routing profil....
owntracks is anonymous, or better said, you don’t have to login or register. Please let me know if I can help if you have trouble to get it working.
If you search in this forum you wil get some info albeit somewhat fragmented.
In short:
Install the app in homey: https://apps.athom.com/app/nl.scanno.owntracks and add a user. That user gets an userid.
Install the owntracks app in android: https://play.google.com/store/apps/details?id=org.owntracks.android&hl=nl
Add some 'regions' and check the 'share' and in preferences/connection/mode private http and as host: https://<cloudid>.homey.athom.com/api/app/nl.scanno.owntracks/events/?token=<tokenid from user>
I have had a number of crashes of the owntracks android app (the above one that everybody is referring to). That app is no longer maintained it says and it is referring to yet another app. (martijn, the owntracks enthusiast is using iphones so he dodges that bullet)
But hey, if it fits your needs then great. But would I recommend it to my mother, no. <span></span>
I dont use any mosquito or other brokers. I'm using the https variant and that works pretty good as well.
@RuudvB if you follow the steps in the post from 2mv, you should get it working. otherwise give me an heads-up and I will try to help you.
Even then it requires an IP or DNS setting..????
It is totally unclear to me what should be entered...
I why should I even want this MQTT? Just HTTP should be sufficient??
In that box you find a button "Wijzig gebruikers", after clicking that you have a empty box with a + button at the right.
Fill in your name and push the plus button.
Ok, finally I have a user; what is this?
host: https://<cloudid>.homey.athom.com/api/app/nl.scanno.owntracks/events/?token=<tokenid from user>
Again, I feel really stupid..