Ruuvitag integration to homeassistant (hass.io)

Forgot to post here. Currently I am using ruuvi friends sensor from https://github.com/ruuvi-friends/ruuvi-hass.io

Edit: that approach has at least almost all possible sensors from ruuvitag covered and uses bleson which is worlds apart from previous approaches with its reliability.

I have python venv installation and installed dependencies manually.

Snips from my installation notes, newest one on top:

  • Add groups

  • Add rest of the sensors into configuration

  • Edit configuration and test if it works
    -> config error because of missing dependencies
    -> hope for the best and restart hass
    -> works god dammit on first try!

  • Git clone ruuvi hassio https://github.com/ruuvi-friends/ruuvi-hass.io -> Symlink to correct folder (ln -s ./ruuvi-hass.io/custom_components ./ in conf folder -> Fight with git -> settle so that syncing the symlink only works

  • Install bleson https://github.com/TheCellule/python-bleson -> Permissionerror (expected) -> Add bleson group [useless] -> Put homeassistant user there [useless] -> Which python3 [in venv] -> /srv/homeassistant/bin/python3 -> readlink -f /srv/homeassistant/bin/python3 -> /usr/bin/python3.8 -> sudo setcap cap_net_raw,cap_net_admin+eip add_path_here -> Aaand it works!

  • Install automatic start systemd stuff

  • Install python virtual environment homeassistant
    with dedicated homeassistant username etc…

  • Set specific fixed ip for nuc to router dhcp server

  • Install Ubuntu LTS Server to new old nuc