@daxm wrote:
I’m trying to set up a influxdb sensor, but no matter how I do the configuration, I get this error in home assistant:
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 150, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File “/usr/local/lib/python3.7/asyncio/tasks.py”, line 442, in wait_for
return fut.result()
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/influxdb/sensor.py”, line 85, in setup_platform
sensor = InfluxSensor(hass, influx_conf, query)
File “/usr/src/homeassistant/homeassistant/components/influxdb/sensor.py”, line 124, in init
influx.query(“SHOW SERIES LIMIT 1;”)
File “/usr/local/lib/python3.7/site-packages/influxdb/client.py”, line 456, in query
data = response.json()
File “/usr/local/lib/python3.7/site-packages/requests/models.py”, line 897, in json
return complexjson.loads(self.text, **kwargs)
File “/usr/local/lib/python3.7/site-packages/simplejson/init.py”, line 518, in loads
return _default_decoder.decode(s)
File “/usr/local/lib/python3.7/site-packages/simplejson/decoder.py”, line 370, in decode
obj, end = self.raw_decode(s)
File “/usr/local/lib/python3.7/site-packages/simplejson/decoder.py”, line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)The config is:
- platform: influxdb host: 192.168.2.56 port: 443 ssl: true verify_ssl: false username: dario password: !secret influxdb_password_2 queries: - name: power usage it systems unit_of_measurement: W value_template: '{{ value | round(1) }}' group_function: last where: '"host" = ''srv-ubn-services-1''' measurement: '"ups"' field: ups_load_perc database: telegraf_data
Any idea what I’m doing wrong?
Posts: 1
Participants: 1