Ping, Zanzito, Bluetooth, iOS app, smartthings presence via mqtt. All wrapped into Bayesian sensors.
Highly recommend not relying on one or even 2 presence detection methods.
Ping, Zanzito, Bluetooth, iOS app, smartthings presence via mqtt. All wrapped into Bayesian sensors.
Highly recommend not relying on one or even 2 presence detection methods.
Smartthings pretense via mqtt?
Are you using that little arrival sensor thing or ā¦?
I migrated everything from smartthings over to hassio, but decided to keep the presence detection via phone. It was very reliable for me, so I have it send updates to hass via mqtt bridge. if smartthings goes down, it doesnāt matter because I have the Bayesian sensor set up
Interesting. I have a st hub just sitting there. Maybe Iāll add that, you just use the smartthings mqtt bridge from the docs?
Yep, itās kind of involved. If you have experience using the smartthings ide then it shouldnāt be too much trouble. Can also use the smartthings hub as a zigbee/zwave hub.
yea Ive had it setup in the past it wasnāt bad. just seems like a lot of overhead. Ill test it out tho thanks for the idea
Hey @tremebundo
Did you end up doing anything with those BT trackers from GB?
I found them useless in real life, as these are being disconnected automatically after some time not paired with phone/app.
Did you manage to transform it in something useful along with the happybubbles detector?
Thanks in advance.
As I said earlier in this thread, not every tracker is valid for this task. The ones I use are always transmiting.
Hello.
That means that you didnāt use those from Gearbest you provided the link to?
Thanks again.
Yes. I am using three of them right now. I do not know why yours have that behaviour. I never paired them with the app.
May be that is the reason? Or the manufacturer has changed the firmware?
Sorry to ear that.
Using these with happybubbles, is that it?
Thanks again.
Yes, only with that.
If I buy the happybubbles, Iāll give it a try anyway.
Thanks a lot for your feedback.
***For some reason I cant format more than 1 section so I just did it all.
Thought I would report back, I found a solution I feel is 100% now. Ive been using it for about a week and its been great.
I am using a few sensors combined to track home/away. I picked up the happy bubbles (awesome product!) and I am using that with two beacons, unifi, and zanzito. All tied into a Bayeson sensor (i probably spelt that wrong, I cant even say it).
Ill break down what Im doing:
Zanzito and Unifi Device Trackers:
device_tracker:
- platform: mqtt_json
devices:
my_cell: zanzito/my_cell/location
name: Dustin Zanzito
new_device_defaults:
track_new_devices: False
hide_if_away: False
- platform: unifi
host: 10.1.1.5
username: xx
password: xx
verify_ssl: false
consider_home: 60
new_device_defaults:
track_new_devices: False
hide_if_away: False
Then I have an MQTT broker setup with happy bubbles and the happy bubbles presence server pointing at that:
mqtt:
broker: 10.1.1.117
port: 8883
username: xx
password: xx
I have two beacons. I use one that I bought from the Happy Bubbles fella and I have a tile. The tile is way to strong, I like the one I got from HB, I was able to turn down the strengh to get better accuracy. So I put the tile in my car, works perfect! That tile is seen almost at the end of my driveway.
My Happy Bubbles sensors:
- platform: mqtt_room
device_id: xx
name: "Infiniti Q50"
state_topic: 'happy-bubbles/presence/ha'
timeout: 3
away_timeout: 45
- platform: mqtt_room
device_id: "xx
name: "Dustin"
state_topic: 'happy-bubbles/presence/ha'
timeout: 3
away_timeout: 45
I created a couple more sensors that I use strickly for the bayenson sensor:
- platform: template
sensors:
homeblue:
value_template: >-
{% if states.sensor.dustin.state == 'Office' %}
home
{% elif states.sensor.dustin.state == 'Bedroom' %}
home
{% elif states.sensor.dustin.state == 'Basement' %}
home
{% elif states.sensor.dustin.state == 'Living Room' %}
home
{% else %}
not_home
{% endif %}
friendly_name: Home Blue
- platform: template
sensors:
q50:
value_template: >-
{% if states.sensor.infiniti_q50.state == 'Office' %}
home
{% elif states.sensor.infiniti_q50.state == 'Bedroom' %}
home
{% elif states.sensor.infiniti_q50.state == 'Basement' %}
home
{% elif states.sensor.infiniti_q50.state == 'Living Room' %}
home
{% else %}
not_home
{% endif %}
friendly_name: 'Infiniti Q50'
My Bayenson binary sensor:
- platform: bayesian
prior: 0.7
name: 'Dustin Presence'
probability_threshold: 0.9
observations:
- entity_id: 'device_tracker.my_cell'
prob_given_true: 0.7
prob_given_false: 0.3
platform: 'state'
to_state: 'home'
- entity_id: 'sensor.homeblue'
prob_given_true: 0.7
prob_given_false: 0.3
platform: 'state'
to_state: 'home'
- entity_id: 'device_tracker.dustinss9'
prob_given_true: 0.8
prob_given_false: 0.3
platform: 'state'
to_state: 'home'
- entity_id: 'sensor.q50'
prob_given_true: 0.7
prob_given_false: 0.3
platform: 'state'
to_state: 'home'
and a couple more sensors for display of probably percentage:
- platform: template
sensors:
home_probability:
value_template: >-
{% if states.binary_sensor.dustin_presence.state == 'on' %}
home
{% elif states.binary_sensor.dustin_presence.state == 'off' %}
not_home
{% else %}
'n/a'
{% endif %}
friendly_name: Home Probability
- platform: template
sensors:
home_probability_percentage:
value_template: '{{ states.binary_sensor.dustin_presence.attributes.probability }}'
friendly_name: 'Home Probability'
unit_of_measurement: '%'
And my arrive home automation:
- alias: Arrive Home
trigger:
platform: state
to: 'on'
entity_id: binary_sensor.dustin_presence
action:
- service: cover.open_cover
entity_id: cover.garage_door_opener
- service: homeassistant.turn_on
entity_id: light.living_room
- service: homeassistant.turn_on
entity_id: light.kitchen
- service: homeassistant.turn_on
entity_id: light.strips
- service: climate.set_hold_mode
entity_id: climate.ecobee
data:
hold_mode: 'home'
- service: script.phone_notify
data:
message: "Welcome Home Dustin"
- delay: 00:01:30
- service: script.say_sonos
data_template:
volume: '0.4'
where: 'living_room, media_player.basement, media_player.bedroom'
what: " Welcome Back Dustin. "
- service: cover.close_cover
entity_id: cover.garage_door_opener
I think thats it. Hoipefully this helps someone.
Also I cant not mention the guy that helped point out zanzito. that is a sweet app as well. I ran it side by side with owntracks a couple days on my s9+, i looked at battery usage after a few hours durning the day and owntracks averaged using 5 times more battery than zanzito and wasnt even close to being as good.
Sorry for the delay. Life has gotten in the way. Iāve eliminated Owntracks and have been very happy with locations and battery from Zanzito. It looks by your posts that your having good luck, too.
We use Life360 which works for Android or apple phone and ties in with IFTTT. It has two handy triggers, last person leaves area, or first person enters. I combine it with the ifttt webhooks service to toggle an input_boolean. Which you can then use as a trigger in HA.