Home Assistant Community Add-on: Happy Bubbles

Just in case anyone has the same problem I had, and no devices were tracked anymore.
The new 1.8.2 presence server has a new config setting: RSSI minimum threshold, which is set to -90.
If your devices dont show up, try to set “RSSI minimum threshold” in the settings section to a higher value

Yeah!, graeat job

I have updated but it still shows 1.8.1 at the top of the web ui page. Not sure if that’s a bug or not

@matust, please post the debug logs from the add-on log.

@frenck let me know if you any thing else

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Hass.io Add-on: Happy Bubbles v0.4.0
 Presence detection server for Happy Bubbles Bluetooth beacon-based presence detection system.
 From: Community Hass.io Add-ons
 By: Franck Nijhof <[email protected]>
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
Log level is set to INFO
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] 02-updates.sh: executing... 
INFO: You are running the latest version of this add-on
[cont-init.d] 02-updates.sh: exited 0.
[cont-init.d] 10-requirements.sh: executing... 
[cont-init.d] 10-requirements.sh: exited 0.
[cont-init.d] 11-nginx.sh: executing... 
[cont-init.d] 11-nginx.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
 _   _    _    ____  ______   __  ____  _   _ ____  ____  _     _____ ____
| | | |  / \  |  _ \|  _ \ \ / / | __ )| | | | __ )| __ )| |   | ____/ ___|
| |_| | / _ \ | |_) | |_) \ V /  |  _ \| | | |  _ \|  _ \| |   |  _| \___ \
|  _  |/ ___ \|  __/|  __/ | |   | |_) | |_| | |_) | |_) | |___| |___ ___) |
|_| |_/_/   \_\_|   |_|    |_|   |____/ \___/|____/|____/|_____|_____|____/
 
CONNECTED TO MQTT
 
Visit http://0.0.0.0:3000 on your browser to see the web interface
 
detected a change!!! main.Beacon{Name:"happy-bubbles-beacon-1", Beacon_id:"e2c56db5dffb48d2b060d0f5a71096e0_0000_0000", Beacon_type:"ibeacon", Beacon_location:"", Last_seen:1529232795, Incoming_JSON:main.Incoming_json{Hostname:"ble_detector", MAC:"ff7dc5c230d3", RSSI:-58, Is_scan_response:"", Ttype:"", Data:"", Beacon_type:"ibeacon", UUID:"e2c56db5dffb48d2b060d0f5a71096e0", Major:"0000", Minor:"0000", TX_power:"c5", Namespace:"", Instance_id:"", HB_ButtonCounter:0, HB_Battery:0, HB_RandomNonce:"", HB_ButtonMode:""}, Distance:0, Previous_location:"", Previous_confident_location:"ble_detector", Location_confidence:8, beacon_metrics:[]main.beacon_metric{main.beacon_metric{location:"", distance:0, rssi:0, timestamp:0}, main.beacon_metric{location:"", distance:0, rssi:0, timestamp:0}, main.beacon_metric{location:"", distance:0, rssi:0, timestamp:0}, main.beacon_metric{location:"", distance:0, rssi:0, timestamp:0}, main.beacon_metric{location:"", distance:0, rssi:0, timestamp:0}, main.beacon_metric{location:"", distance:0, rssi:0, timestamp:0}, main.beacon_metric{location:"", distance:0, rssi:0, timestamp:0}, main.beacon_metric{location:"", distance:0, rssi:0, timestamp:0}, main.beacon_metric{location:"", distance:0, rssi:0, timestamp:0}, main.beacon_metric{location:"", distance:0, rssi:0, timestamp:0}, main.beacon_metric{location:"", distance:0, rssi:0, timestamp:0}, main.beacon_metric{location:"", distance:0, rssi:0, timestamp:0}, main.beacon_metric{location:"", distance:0, rssi:0, timestamp:0}, main.beacon_metric{location:"", distance:0, rssi:0, timestamp:0}, main.beacon_metric{location:"", distance:0, rssi:0, timestamp:0}, main.beacon_metric{location:"", distance:0, rssi:0, timestamp:0}, main.beacon_metric{location:"", distance:0, rssi:0, timestamp:0}, main.beacon_metric{location:"", distance:0, rssi:0, timestamp:0}, main.beacon_metric{location:"", distance:0, rssi:0, timestamp:0}, main.beacon_metric{location:"", distance:0, rssi:0, timestamp:0}, main.beacon_metric{location:"", distance:0, rssi:0, timestamp:0}, main.beacon_metric{location:"", distance:0, rssi:0, timestamp:0}, main.beacon_metric{location:"ble_detector", distance:0.7083182641128207, rssi:-57, timestamp:1529232787}, main.beacon_metric{location:"ble_detector", distance:0.842868491626227, rssi:-58, timestamp:1529232788}, main.beacon_metric{location:"ble_detector", distance:0.842868491626227, rssi:-58, timestamp:1529232789}, main.beacon_metric{location:"ble_detector", distance:0.842868491626227, rssi:-58, timestamp:1529232790}, main.beacon_metric{location:"ble_detector", distance:0.842868491626227, rssi:-58, timestamp:1529232791}, main.beacon_metric{location:"ble_detector", distance:0.842868491626227, rssi:-58, timestamp:1529232793}, main.beacon_metric{location:"ble_detector", distance:0.7083182641128207, rssi:-57, timestamp:1529232794}, main.beacon_metric{location:"ble_detector", distance:0.842868491626227, rssi:-58, timestamp:1529232795}}, HB_ButtonCounter:0, HB_Battery:0, HB_RandomNonce:"", HB_ButtonMode:""}
det

Sorry about this, I rushed the feature and this was a bad result.

I’ve just released a new 1.8.3 version which addresses this and lets you choose from the web UI whether to enforce an RSSI minimum threshold or not.
It also lets you see all your added beacons on your home screen, regardless if they’ve been seen recently or not.

@frenck I created a pull request for your add-on repo for the new version

@matust showing a stale version in the web UI might be a cache issue. Refresh while holding the shift or crtl button to refresh everything and it should update to your current version.

:tada: Release v0.4.1

Full Changelog

Changed

This worked, cheers

1 Like

:tada: Release v1.0.0

Full Changelog

Changed

  • Upgrades base image to v2.0.1
  • Upgrades nginx to 1.14.0-r0
  • Updates project badges to production ready

:tada: Release v1.1.0

Now supports the use of your Home Assistant secrets file! So you can now use !secret mqtt_password as your password and the add-on will fetch the actual password from your secrets file.

Full Changelog

Added

  • Adds support for using secrets

Fixed

  • Fixes Markdownlint warnings

Changed

  • Enables SSL by default
  • Upgrades hadolint to latest
  • Upgrades base image to v2.1.1
  • Updates README and links

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

Add-on doesn’t work anymore since yesterday. Doesn’t auto start on boot, web ui hassio.local:5555 is offline. I suspect it has something to do with the v1.1.0 update. I had it on auto-update. Didn’t change anything to my HA config or setup recently. Any ideas?

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Hass.io Add-on: Happy Bubbles v1.1.0
 Presence detection server for Happy Bubbles Bluetooth beacon-based presence detection system.
 From: Community Hass.io Add-ons
 By: Franck Nijhof <[email protected]>
-----------------------------------------------------------
 armhf / Resin OS 2.3.0+rev1 / HA 0.73.2 / SU 125 / stable
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
Log level is set to INFO
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] 02-updates.sh: executing... 
INFO: You are running the latest version of this add-on
[cont-init.d] 02-updates.sh: exited 0.
[cont-init.d] 10-requirements.sh: executing... 
FATAL: The configured certfile is not found
[cont-init.d] 10-requirements.sh: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing... 
-----------------------------------------------------------
s6-maximumtime: warning: unable to wait for child process: Operation timed out
 v1.1.0 / armhf / Resin OS 2.3.0+rev1[cont-finish.d] 99-message.sh: exited 99.
[cont-finish.d] done.
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.

Upgraded to HA 0.76, no difference. Also tried removing and reinstalling the add-on.

Do you have SSL set to true in the addon config?
If so, does your config also point to a working certfile?

Wonderful! That’s it. Not sure if this setting was pushed by the update, haven’t changed it. In any case, this is fixed now, by changing it to ‘false’. Thanks a lot.

No worries, always check the changelogs:

:tada: Release v1.1.1

Full Changelog

Changed

  • Upgrades base image to v2.1.2

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

How you do guys use the sensors on HASS? I’m usng the add-on and I’ve tried setting up a room sensor as such:

sensor:
  - platform: mqtt_room
    state_topic: 'happy-bubbles/presence/ha/happy-bubbles-ble'
    device_id: '36e7e92ee4b35d_0000_0001[redacted]'
    name: "Patrik ibeacon_v1"
    timeout: 5
    away_timeout: 60

When I subscribe to the channel above, this is what I get:

{  
   "id":"36e7e92ee4b35d_0000_0001[redacted]",
   "name":"Patrik",
   "distance":0.004230491648658655
}

And finally, this is what Home Assistant shows me:

Given the config and json output, shouldn’t I expect to see a distance here?

:tada: Release v1.2.0

Full Changelog

Changed

  • Upgrades unzip to 6.0-r4
  • Upgrades nginx to 1.14.0-r1
  • Upgrades base image to v2.3.0
  • Adds Hassio API security role

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

Just installed one of these. I can go in config and put my WiFi ssid, password and MQTT configuration
It does connect, but the only message it publish is this below (the status topic)

{“rssi”:-49, “heap_free”:28056}

and re publish every 60 second. LED turns red, and nothing is shown in happy bubbles server.

Any clue?

I am having the exact same issue, how did you solve?

The mqtt topic I put when in config is living-hb