Presence (OPEN)

Hows everyone tracking that people are present in the home?

to make a start the idea i was going to use was mobile phones if they are connected to wifi people are home if no mobiles are connected nobodys home

got a few problems with that approatch atm my partners phone keeps dropping connection

what solutions is everyone using RFID WIFI BLUETOOTH NFC PIR SENSORS ?

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

1 Like

oh, i fully agree.
I understand the iPhone is quite notorious in this aspect but even my Android isnt reliable on this.

both android devices

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

1 Like

Thanks, currently experimenting withESP8266 (sorrry, I mean ESP32)

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 :slight_smile:

Hello!

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.

Best regards,
Davor

Im using presence detection with my android phones as described here

It is absolutly important that you install ā€œarpingā€, because you will only get reliable detection with that.
https://docs.openhab.org/addons/bindings/network/readme.html

It will be used automatically by the network binding, BUT you have to set the ā€œsuidā€ bit (chmod u+s /usr/sbin/arping)

Apologies, typo. I mean the ESP32, detecting BLE key

for now i seem to have solved this problem i changed the port the network binding was pinging

now the phone doesent disconnect from the wifi network when locked just drops for a moment every few hours

i changed the binding to ping port 5060 and to only consider this device offline after 5 pings are lost

1 Like

This is my Solution for Detecting Presence with Bluetooth :slight_smile:

and in OpenHAB is use the Design Pattern from @rlkoshak

3 Likes

My plan for the moment is to use the network binding to ping a mobile if this is on somebodys home if its off they have left thats part 1

im going to add a second type of sensor to backup these results maby a bluetooth tag attached to keys

and a door open/close sensor to improve more if this hasent changed nobodys left

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 :slight_smile:

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 ā€¦

Bluetooth GTagā€™s no Errors :slight_smile:

im running android here not getting into that debate :slight_smile:

like i say im thinking the solution is phone wifi & bluetooth tags paired with door sensor

1 Like

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.

1 Like

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.

Could you all send me links too the ble beacons that you are all using thanks

Please search the forum for existing threads before you open a new one.
You would have found this thread and the presentation linked to here.

1 Like