I have been less than impressed by phone-online-detection. Add to that I dont always bring my phone.
I do have pir sensors, which is quite ok as long as there is movement, but it also doesnt tell you who is home, so i recently started experimenting with BLE
if the mobiles stayed connected to the wifi i would be quite happy with this method for now tbh 99% of the time we always take our mobiles with us but if there is a better solution i would prob use that instead
im only just starting out at this so just getting something running is better than nothing
samsung galaxy a5 mine (Fine) as far as i can tell
samsung galaxy a5 2016 gf phone (Keeps going offline when its locked)
i will hopefully solve this problem or get a better idea i need to toubleshoot the phone see whats happening as its set the same as mine to always stay connected to wifi
What do you mean exactly by āexperimenting with ESP8266ā? Is it related to the presence issue? What is your idea behind? Maybe something I coul also use
Iām using phoneās WiFi for presence detection, and it works pretty reliably. How do you use it? Network binding pings? I guess there could be problems with that approach, if you canāt ping the device when asleep. Iām using Tasker to update OH items when phone connects or disconnects my WiFi network, and this status change isnāt triggered when you lock phone. Maybe you could try this approach and see if it works.
Look @ my Github Projekt ā¦ that is Bluetooth Tag ā¦ that works perfectly for my ā¦ installed on a Raspberry Zero Wā¦ if your Openhab is installed on a Raspberry ā¦ the copy the install script to /home/pi/ and than sudo bash install.sh answer the Questions ā¦ and it will work
Ping was no Option for me ā¦ because iPhones in my house ā¦ and it works not good ā¦ the Network Binding wakes most time the iPhone over Bonjour ā¦ but sometimes it not wakes up ā¦
I am using homekit automation and the homekit binding to set a switch/group to determine presence.
Works reliably aside from occasionally losing homekit/OH pairing. I prefer the geofence approach as opposed to detecting via network and I can also set a switch for when I am leaving work etc.
At the moment Iām using two buttons on my habpannel mounted on the wall
Arriving home
Leaving home
You just touch these as you leave at it works flawless Iām just after a decent approach to automate this function and to also know when and who is home I donāt need to know where they are or anything
I tried to using mobile phones, it just wasnāt reliable enough.
I have since used BLE iBeacons and a Raspi3 (that has BLE and Wi-Fi). The wife has one and I have one and so do my kids. The raspi3 has a python script (modified by me but not mine originally) to detect the iBeacon MAC address via BLE and passes this on vi Wi-Fi network to Openhab. Rules do the rest so I know āwhoā is home and how many are home (for heating setting security alarm etc) The iBeacon is a little bulky for the key ring but smaller ones battery time is in months whereas the one I use is 2 years with a 5 second ping time.