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
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
This is my Solution for Detecting Presence with Bluetooth
and in OpenHAB is use the Design Pattern from @rlkoshak
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
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
im running android here not getting into that debate
like i say im thinking the solution is phone wifi & bluetooth tags paired with door sensor
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.
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.
thanks
Running OH quite a while, detection is based on WIFI and IFTTTā¦which runs mostly ok.
Since a couple of days I am looking into BLE detection but I am lost what to buy.
I wonder if some can give me a hand for specific device, that is supported by OH and uses BLE and WIFI. The idea is to place it into a wall outlet to ensure it is always running.
Any hints? Thanks for your effort
Well what to buy is easy, any BT beacon does. The problem is how to query BT from OH
(itās easy with WiFi, thereās bindings to track devices on IP or MAC level, but no such thing exists for BT).
BT binding is experimental, using onboard BT on RPis easily interferes with anything to run on serial devices.
I suggest looking at FIND. Runs on Android, and uses both, WiFi and BT, to triangulate its position. There is a tutorial on integrating FIND with OH, but note thatās still based on old FIND v2. BT support requires FIND v3 (works as well with OH but there is no tutorial yet).
Maybe I made myself unclear or I am completely wrong. I am not looking for software / app, I am more into the hardware thing. I try to round up quickly:
We do have a couple of Apple and Android phone, Bluetooth always enabled.
Isnāt there a way to buy a wall outlet based beacon, that will detect the phone(s) and fires a switch in OH in order to switch on presense?
In fact it does not matter who will enter the room or the house, I just want to have a third way (beside WIFI and IFTTT) that comes into place in order to detect presense.
Youāre completely wrong then. A BT beacon is a simple, essentially passive device to only announce its ID. It does not provide any function other than that. If you want to use it to detect proximity, you need to run a program somewhere on the mobile device to detect itās moving into sending range of that beacon (i.e. itās not running on the beacon). In other words: on your phone(s).
Alternatively, you could take the beacon for a walk (to be the moving part) and run the detection program on your (fixed location) server. But for that see my previous posting, BT and servers donāt really work well with each other.
IC
Thanks so much for clarification.