[Solved] Presence detection via UniFi WiFi

Tags: #<Tag:0x00007efecc672e98> #<Tag:0x00007efecc672da8> #<Tag:0x00007efecc672c90>

Hello,

I wrote a small MQTT publisher for association / disassociation events from a UniFi controller. This can be used for presence detection in OpenHAB. Examples are included.

There is a (configurable) 3 minute dampener built in to handle phones turning off their WiFi occasionally. This setup works very well for iPhones, have not tested Android.

1 Like

Hi Peter,
sounds interesting to me. Can you give some more details about your script how to install and setup, please. I have 2 Ubiquiti APs controlled by Unifi Controller on RPi3, OH2 Unifi Binding works very well. Thank you in advance.
Wojtek

Hi,
Will this work with MQTT 2.4 binding?
Can you give an example of things and items files?