I have configured homeassistant to save my energy sensor’s data to influxDB. I followed all the guides I found in this forum and seems my configuration is correct, but I cannot found any data saved on InfluxDB. Can anyone help me?
Here there is my configuration.yaml:
I have checked the identation (I’m not able to copy that here) and influxdb i’m sure its working because i use it on OpenHAB (that i would like to replace with Home assistant if I can make InfluxDB to work).
Thanks in advance.
I don’t know what can be the problem because following the guides seems all correct.
I forgot to tell that I have installed Home Assistant and InfluxDB on Arch Linux aarch64 on an Odroid-C2
x
Connected to http://localhost:8086 version 1.6.3
InfluxDB shell version: 1.6.3
> use home_assistant
Using database home_assistant
> show measurements
name: measurements
name
----
%
V
binary_sensor.bedroom_motion_sensor
binary_sensor.lounge_motion_sensor
binary_sensor.motion_sensor_10
binary_sensor.motion_sensor_12
binary_sensor.motion_sensor_13_1
binary_sensor.mysensors_gateway_motion_sensor
binary_sensor.window_sensor_20
binary_sensor.window_sensor_21_1
binary_sensor.window_sensor_21_2
binary_sensor.window_sensor_22
binary_sensor.window_sensor_23_1
light.bedroom_ceiling_light
light.kitchen_ceiling_light
light.lamp_stand
light.office_ceiling_light
light.table_lamp
sensor.command_temperature_296
sensor.command_temperature_329
sensor.command_temperature_5460
sensor.command_valvestate_296
sensor.command_valvestate_329
sensor.command_valvestate_5460
sensor.open_files
switch.computer_peripherals
switch.tv
°C
Does either the HA log or influxdb log show any errors?
And I notice the difference in your configuration from mine is the override_measurement and tags parameters, that I don’t use. They look fine according to the documentation, but it might be worth taking them out to test.
I removed all the config entries from influxdb except host, username and password, in this way, as it is described in config, it should store all the data in influxdb.
I also checked /etc/influxdb/influxdb.conf and the only thing different from default is:
[http]
# Determines whether HTTP endpoint is enabled.
enabled = true
# The bind address used by the HTTP service.
bind-address = ":8086"
# Determines whether user authentication is enabled over HTTP/HTTPS.
auth-enabled = true
I don’t know moreover where to look to have more information about this problem to find what’s going wrong… I mean in the logs it shows nothing so I don’t know what to do.
Sorry if I respond only today but I decided to make some tests to have something else for understand the problem.
I tried to update home-assistant to the last version and to remove the autentication on influxdb but i cannot write any data on that… I checked in the directory in which influxdb saves data and there is nothing regarding home_assistant database, so i think the problem is on influxdb side… I will try to reinstall influxdb and see if it will work!
Thaks a lot for helping!
I post an update regarding my situation.
I checked Influxdb installation and everithing is ok, I think the problem is on Home Assistant side.
I try to explain better my configuration: I have a sensor that push on MQTT broker every 7 seconds and data is saved correctly on recorder component.
My idea is to save also this data on Influxdb and to have a Retention Policy and a Continous Query to save instead that all this data an average every 5 minutes.
What make me think of an Home Assistant problem is that on Influxdb log there is no request about writing data from Home Assistant, while OpenHAB continues to write correctly.
The only thing that is written in log is:
All I can say is that my configuration is working perfectly on my machine from MQTT sensors.
The MQTT sensors have the force_update parameter set, to send data to Influxdb for every reading, rather than just on status changes, but that should only make a difference if you data never changes.
I uninstalled both influxdb and home assistant and now (without any password/extra configuration) using just influxdb: on configuration.yaml seems to work… Maybe was an incorrect configuration somewhere but i’ll never know it!
Anyway thanks a lot for your help!
Hello, i have installed the influxdb on a separate raspberry with raspbian buster and Im experiencing the same issue. Hass.io connects to the database and sends data to influxdb but not all the data.
Some entities (sensors) are absent and I don’t know how to make it work.
As a counter measure i’ve installed mariadb/mysql to the same raspberry and made hass.io use that mysql database instead its internal db and miraculously all my entities are there! And i mean all of them.
Unfortunately i find it very difficult to make graphs in grafana with mariadb whereas with influx is a piece of cake. Hass.io sends to both databases but only mariadb has all the entities.
Hi all, is there a way to access to influxdb data in it is installed as addon on Hassio running within a VM on Proxmox on an Intel Nuc? I can access from ssh but I think the environment is limited, any help appreciated.
Just an update…
Turns out Influxdb sends all data to the remote raspberry
You just have to look for it using the right strings.
For example I couldn’t find the temperature readings from the sensors using the entity id…
First i had to search for “oC” celcius entries and then the entity.
Hello, I am having the same issues as noted above, i.e. no data coming into the influx environment. Here is the code from my config.yaml file - what am I doing wrong?
I had the same issue, while adding the homeassistant user in InfluxDB, by default it does not have any permissions. When adding ALL permissions for this user, the problem is fixed, and data is being written in the InfluxDB.