Happy-Bubbles: not updating status in HA

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”.

The documentation for HA’s room presence detector: https://home-assistant.io/components/sensor.mqtt_room/ only has a variable for away_timeout so you can set that to some seconds.

But I agree that would would be best is to support some command being sent that can make that room sensor/beacon be ‘away’ without a timeout, and that the Happy Bubbles Presence server can sent to HA. I could add support for such a message in the Presence server easily, but I don’t think HA accepts such status updates yet. Does anyone know if such a feature will be added?



i am not an expert at all but shouldn’t be enough you send from Happy Bubbles Presence server a location named “away” or “not_home” instead of “Living Room” for example?

1 Like