I am experimenting with Home Assistant exporting sensor data to influxdb and visible in Grafana. The sensor data is not coming into influxdb like I would have hoped. Here is my influxdb config
host: !secret influx_host
username: !secret influx_user
password: !secret influx_password
include:
entities:
- sensor.logans_room_sensor_temperature
- sensor.logans_room_temperature_raw
The sensor.logans_room_sensor_temperature is the zwave sensor which comes from a ZSE40 4-in-1.
The sensor.logans_room_temperature_raw is a template sensor which I defined as follows.
logans_room_temperature_raw:
friendly_name: Logans Room Temerature
device_class: temperature
value_template: >-
{{states.sensor.logans_room_sensor_temperature.state}}
And here is what the measurements in influxdb look like
> show measurements
name: measurements
name
----
sensor.logans_room_temperature_raw
°F
As you can see the template sensor I created comes in with the correct sensor name. However the sensor from the zwave device comes in with the measurement called °F.
The data that comes in from the zwave device looks like the following
2020-12-14 05:37:17.665 Info, Node006, Received SensorMultiLevel report from node 6, instance 1, Temperature: value=68.26F
Have I done the correct thing here with the template sensor just to get the data into influxdb? Or am I missing something obvious to get the sensor.logans_room_sensor_temperature value into influxdb? The docs indicate it should use the entityId as the measurement name so I am not sure what is going on here.
HA version: 0.118.4
InfluxDB Version: 1.8.0
Thanks for the help