Hi,
after upgrading to 0.34.0 I’m getting InfluxDB related error messages like:
16-12-04 11:53:53 homeassistant.components.influxdb: Error saving event "[{'tags': {'domain': 'sensor', 'entity_id': 'fibaro_system_fgms001_motion_sensor_temperature_8_1'}, 'measurement': '<C2><B0>C', 'time': datetime.datetime(2016, 12, 4, 10, 53, 53, 126923, tzinfo=<UTC>), 'fields': {'node_id': 8.0, 'value': 18.8, 'friendly_name': 'Fib Temperature'}}]" to InfluxDB
Traceback (most recent call last):
File "/usr/src/app/homeassistant/components/influxdb.py", line 132, in influx_event_listener
influx.write_points(json_body)
File "/usr/local/lib/python3.5/site-packages/influxdb/client.py", line 402, in write_points
tags=tags)
File "/usr/local/lib/python3.5/site-packages/influxdb/client.py", line 447, in _write_points
expected_response_code=204
File "/usr/local/lib/python3.5/site-packages/influxdb/client.py", line 289, in write
headers=headers
File "/usr/local/lib/python3.5/site-packages/influxdb/client.py", line 259, in request
raise InfluxDBClientError(response.content, response.status_code)
influxdb.exceptions.InfluxDBClientError: 400: {"error":"field type conflict: input field \"node_id\" on measurement \"<C2><B0>C\" is type float64, already exists as type integer"}
I also get this for the luminance sensor.
To me it looks like the attribute data types changed from Integer to Float64.
Before I drop my existing measurement data - is it supposed to be like this and is it going to stay that way?
Or is this a bug that needs to be fixed?
EDIT: sorry, after having another look at the error message, I think it’s not the sensor value that changed but the node_id
attribute seems to have changed from 8
to 8.0
.
A floating point node_id doesn’t make much sense to me - looks like a bug, doesn’t it?
Sebastian