Error setting up plattform volkszaehler

Hi,

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'

same problem here…

i got the same problem, has anyone solved this problem ??

It seems the the problem still exists :slightly_frowning_face:

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'

Same Problem here:

Protokolldetails ( ERROR )

Logger: homeassistant.components.sensor
Source: components/volkszaehler/sensor.py:120
Integration: Sensor (documentation, issues)
First occurred: 15:43:10 (4 occurrences)
Last logged: 15:43:10

volkszaehler: Error on device update!

Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 324, in _async_add_entity await entity.async_device_update(warning=False) File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 474, in async_device_update await self.async_update() File “/usr/src/homeassistant/homeassistant/components/volkszaehler/sensor.py”, line 120, in async_update self._state = round(getattr(self.vz_api.api, self.type), 2) TypeError: type NoneType doesn’t define round method

If i use the ip adresse instead the hostname it works fine

 - platform: volkszaehler
    host: 192.168.0.1
    uuid: 'enter your uuid'
    monitored_conditions:
      - average
      - consumption
      - min
      - max

Hello,
I also tried to include “volkszaehler” into my home assistant configuration.
It does not work. My configuration is:

–><-----------------------

  • platform: volkszaehler
    name: ‘Haus 2.8.0 (Lieferung -A)’
    host: IP-address
    port: 8080
    uuid: ‘my UID’
    - average
    - consumption
    - min
    - max
    –><-----------------------

The error messages that I receive are:

–><-----------------------

Protokolldetails ( ERROR )

Logger: homeassistant.components.sensor
Source: components/volkszaehler/sensor.py:136
Integration: Sensor (documentation, issues)
First occurred: 16:48:09 (1 occurrences)
Last logged: 16:48:09

Error while setting up volkszaehler platform for sensor

Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 184, in _async_setup_platform await asyncio.shield(task) 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.8/site-packages/volkszaehler/init.py”, line 44, in get_data self.average = self.data[‘data’][‘average’] KeyError: ‘data’
–><-----------------------

Some ideas how to fix this issue?

Regards
Joerg

Any news on how to integrate volkszaehler into Home Assistant?
Someone working on this bug?