Home Assistant: Logging to a central server

As the Raspberry Pi is relatively cheap, you might think: Why not having multiple Home Assistant installations running in my house? This gives you some advantages:

  • You might monitor temperature and humidity in different rooms.
  • If one instance fails, the other can still do the same job.

However, even with multiple HA instances, it might make sense to have the sensor data logged to a central instance. This makes data analytics much easier.

I use InfluxDB to store the sensor data. With our latest patch that will be included in Home Assistant 0.25, it is now possible to distinguish between the data from the different HA instances.

The logging configuration on the two HA instances would then look like this:

influxdb:
  host: 192.168.1.199
  tags:
    instance: living_room
influxdb:
  host: 192.168.1.199
  tags:
    instance: balcony

Leave a Reply

Your email address will not be published. Required fields are marked *