All values are completely fine in Lovelace. The upper values also come by knx and are correct in Influx.
Since I have the new values there a new nodes in Influx
âLâ and â°Câ
Below L there is entity_id - 1 and below that there is garten_regen_menge but it has no values when I try showing them.
Under °C there is entity_id - 1 and below that there is garten_haustuer_thermmeter this has also no values and the other temerature sensor is missing completely. And the sensors for the brightness are missing completely.
What am I doing wrong?
Hi
did you check which series and which measurements were created in the influx database? Perhaps it is putting them somewhere where you didnât expect them?
Assuming you have access for example with the cli influx client, run
show measurements
and
show series
when I was storing data into influx for visualization with Grafana, I didnât like that by default the measurements were created based on the unit. There is a config to override the measurements
influxdb:
host: 127.0.0.1
port: 8086
# hidden config ....
default_measurement: state
include:
#my includes based on wildcards
entity_globs:
- sensor.*_db
component_config:
sensor.temperature1
override_measurement: temperature
component_config_glob:
sensor.*humidity*:
override_measurement: humidity
sensor.*temperature*:
override_measurement: temperature
Another important point is that data is only stored to influx when the state in HA changes, for entities like lights you might not see a change for hours and thus no new entry is made in influx.
My workaround was to create a template sensor with an attribute changing every 5 minutes, forcing updates in influx. For example
thatâs based on configurations I used with HA last year, not sure if they are still valid, I meanwhile stopped storing into influx, had stored many gigabytes and never really looked at the historic values
the values I wish to see are changed many times a day.
But now I hae another problem: none of the nodes seems to have values.
In the past at least these nodes worked, but now I always âyour query returned no valuesâ.
If I remove the where clause I get one value from 01/01/1970 01:00:00. Iâm very sure that I havenât had Homeassistant on this day.
Hi
which version of influx are you using? There seem to be significant differences in configuration between 1.x and 2.x
I only had 1.x running
Anything in the logs? Either in HA logs or InfluxDB-Logs?
in HA it might be worth to switch on some logging for the influxdb integration
Iâm not sure about the correct setting for the logger, only found an older posting where is is done in configuration.yaml with
Cannot connect to InfluxDB due to âHTTPConnectionPool(host=âsmart-homer-server.fritz.boxâ, port=80): Max retries exceeded with url: /:8086/write?db=homeassistant (Caused by NewConnectionError(â<urllib3.connection.HTTPConnection object at 0x7f803b6920>: Failed to establish a new connection: [Errno 111] Connection refusedâ))â. Please check that the provided connection details (host, port, etc.) are correct and that your InfluxDB server is running and accessible. Retrying in 60 seconds.
The message occured 2068 times.
I thought I configured it correctly, but I check it out again.
Iâve found the error in the config. Now I get values for the light in the corridor. And I have one value for the temperature of one sensor. The other sensor isnât showing.
Iâve added
component_config_glob:
sensor.*thermometer*:
override_measurement: temperature
In my config. Now I get a node named temperature in Influx and there is a value for the one sensor recognized by influx.