I have a Happy-bubbles and 4 NUT ibeacons. The iBeacons are visible in the presense server and their status is updated correctly.
I have this to the HA config:
- platform: mqtt_room
device_id: cc6458a8b1da
name: 'Juul'
state_topic: 'happy-bubbles/presence/ha'
After a restart of HA the status of the sensor is updated correctly but when then iBeacon is “away” the status in HA is not updated, it remains “present”
I see these MQTT messages:
happy-bubbles/presence/ha/Thuis {"id":"cc6458a8b1da","name":"Juul","distance":81.25}
happy-bubbles/presence Juul is most likely in Thuis with average distance 81.250000
happy-bubbles/ble/Thuis/raw/cc6458a8b1da {"hostname": "Thuis","mac": "cc6458a8b1da","data": "04096e75740201060303031809160a18cc6458a8b1da"}
Where is the error in my config ?
Some more info:
When the Happy-Bubbles sees the iBeacon I see these MQTT messages:
happy-bubbles/presence Juul is most likely in Thuis with average distance 88.000000
happy-bubbles/presence/ha/Thuis {"id":"cc6458a8b1da","name":"Juul","distance":88}
And in the HA logging this:
2017-09-13 20:53:47 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.juul, old_state=<state sensor.juul=Thuis; friendly_name=Juul, distance=90.0 @ 2017-09-13T20:48:23.434423+02:00>, new_state=<state sensor.juul=Thuis; friendly_name=Juul, distance=89.5 @ 2017-09-13T20:48:23.434423+02:00>>
When I remove the battery from the iBeacon, the Happy Bubbles server reports:
happy-bubbles/presence Juul is most likely in with average distance 0.000000
What I need in HA is an “away” status. Is that even possible ? It looks like Happy Bubbles is not reporting “away”.