Ruuvitag integration to homeassistant (hass.io)


#1

Hi,

Short intro: hass is home automation software for raspberry pi. It has a lot of functionality with bunch of stuff but ruuvitag reading was not implemented so I decided to do it myself.

Just got reading values from two weather station ruuvi beacons working.
Screenshot from hass ui (fought with sensors, that is why measurement data history is pretty patchy)

If someone has idea how things could be handled smarter than having one copy of python file per beacon and/or value that needs to be read I would be grateful.

Link to github:


#2

Finally figured out how stuff should work.

Updated python script yesterday. Now there are 3 modes:

  • Batch - just put list of ruuvitag MACs and measurements from each are returned separated by :
  • Measurements from single ruuvitag, values are separated by :
  • Single measurement of single ruuvitag, define temp/pressure/humidity and only single value is returned

Added also configuration help to github for homeassistant. You need to get all the data with single command line execution in order to keep homeassistant environment happy. So you’ll add one sensor that includes all of the values and create a template which separates all the value to separate sensors.

ruuvipic
Don’t mind the readings, they are accurate only after 15:00 today when all started finally working well.

Disclaimer: there might be issues with homeassistant web ui. Probably full reboot of raspberry due to power outage might have something to do with it. Or then not. Don’t know.