MQTT Home Presence

Presence detection platform using bluetooth devices, re-use an old Smarphone as a presence detection manager, when detecting a allowed device, it will communicate it through MQTT then with HomeAssistant you can do the presence automation.

Prerequisites

MQTT Broker
Home Assistant
Old Smarphone Android

Setup
1 Open App
2 Menu Wizard configuration
3 Room settings (Don't forget to click save to save the changes)
4 Add Allowed Devices, add the devices of each member of your family or friends
5 Configure MQTT client, set up the MQTT client, check the connection to your MQTT broker ((Don't forget to click save to save the changes)
6 Click Done
7 Now you can press play and a background service will run, every minute
or the time you configure in options, it will make a discovery of the devices around it, if it matches one with the list of allowed devices it will send it with MQTT

Integration with Home Assistant
For integration into Home Assistant is done using an mqtt sensor, see example

configuration.yaml

sensor:
- platform: mqtt
state_topic: 'andrews_home/first_floor/FF:00:11:22:36:11'
value_template: '{{ value_json.confidence }}'
unit_of_measurement: '%'
name: 'Andrew First Floor'

The mac address of the bluetooth device is sent as part of the topic mqtt

How the confidence value is obtained?
Confidence value ranges from 0 to 1.0
If a device is found it increases by 0.5
If a allowed device is not visible the range of bluetooth detection, it is decreased by 0.33
Read more
Collapse
Loading…

What's New

Fixed issues
Added: Settings screen
Improvement: custom delay each bluetooth discovery
Read more
Collapse

Additional Information

Eligible for Family Library
Eligible if bought after 7/2/2016. Learn More
Updated
April 24, 2020
Size
2.1M
Installs
50+
Current Version
0.9
Requires Android
5.0 and up
Content Rating
Everyone
Permissions
Offered By
Webserveis
©2020 GoogleSite Terms of ServicePrivacyDevelopersAbout Google|Location: United StatesLanguage: English (United States)
By purchasing this item, you are transacting with Google Payments and agreeing to the Google Payments Terms of Service and Privacy Notice.