I hope somebody can help me set up the volkszähler component. I have a working volkszähler smart meter running and i would like to get the Data into Home Assistant. My current config loos like this:
- platform: volkszaehler
uuid: 'b18cc1f0-fd33-11e8-b4ee-13ef43f117a8'
name: 'vz lieferung'
host: 192.168.39.32
port: 8080
monitored_conditions:
- average
- consumption
- platform: volkszaehler
uuid: '85cf3f80-fd33-11e8-87ce-b1fa1027efad'
name: 'vz verbrauch'
host: 192.168.39.32
port: 8080
monitored_conditions:
- average
- consumption
- min
- max
And this is the error from the logs:
I would really appreciate your help!
Log Details (ERROR)
Tue Dec 11 2018 15:54:52 GMT+0100 (Mitteleuropäische Normalzeit)
Error while setting up platform volkszaehler
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
return fut.result()
File "/usr/src/app/homeassistant/components/sensor/volkszaehler.py", line 65, in async_setup_platform
await vz_api.async_update()
File "/usr/src/app/homeassistant/components/sensor/volkszaehler.py", line 134, in async_update
await self.api.get_data()
File "/usr/local/lib/python3.6/site-packages/volkszaehler/__init__.py", line 44, in get_data
self.average = self.data['data']['average']
KeyError: 'data'
Error while setting up volkszaehler platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 179, 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/src/homeassistant/homeassistant/components/volkszaehler/sensor.py", line 68, in async_setup_platform
await vz_api.async_update()
File "/usr/src/homeassistant/homeassistant/components/volkszaehler/sensor.py", line 136, in async_update
await self.api.get_data()
File "/usr/local/lib/python3.7/site-packages/volkszaehler/__init__.py", line 44, in get_data
self.average = self.data['data']['average']
KeyError: 'data'