Closed winkler-winsen closed 3 weeks ago
I see the same error on my installation
Same error on new Version core-2023.7.1 (Container)
2023-07-10 14:29:05.577 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up volkszaehler platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 353, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/volkszaehler/sensor.py", line 105, in async_setup_platform
await vz_api.async_update()
File "/usr/src/homeassistant/homeassistant/components/volkszaehler/sensor.py", line 159, in async_update
await self.api.get_data()
File "/usr/local/lib/python3.11/site-packages/volkszaehler/__init__.py", line 68, in get_data
self.average = self.data["data"]["average"]
~~~~~~~~~^^^^^^^^
KeyError: 'data'
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Same error on new Version core-2023.10.1 (Container)
2023-10-10 23:43:08.834 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up volkszaehler platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 359, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/volkszaehler/sensor.py", line 105, in async_setup_platform
await vz_api.async_update()
File "/usr/src/homeassistant/homeassistant/components/volkszaehler/sensor.py", line 159, in async_update
await self.api.get_data()
File "/usr/local/lib/python3.11/site-packages/volkszaehler/__init__.py", line 68, in get_data
self.average = self.data["data"]["average"]
~~~~~~~~~^^^^^^^^
KeyError: 'data'
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Still not working on 2024.1.2
2024-01-07 05:19:45.300 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up volkszaehler platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/volkszaehler/sensor.py", line 105, in async_setup_platform
await vz_api.async_update()
File "/usr/src/homeassistant/homeassistant/components/volkszaehler/sensor.py", line 159, in async_update
await self.api.get_data()
File "/usr/local/lib/python3.11/site-packages/volkszaehler/__init__.py", line 68, in get_data
self.average = self.data["data"]["average"]
~~~~~~~~~^^^^^^^^
KeyError: 'data'
Just installed Sensor, connecting to latest 2022-06-10-raspi-complete image. Perfect. Config as described:
uuid = Channel-uuid
I have the same "issue". But it's more like a configuraton issue I guess.
In my vzlogger.conf
I have channels
- { "aggmode": "none" }
so my data looks like this:
{
"version": "0.8.3",
"generator": "vzlogger",
"data": [
{
"uuid": "...",
"last": 1713168179862,
"interval": -1,
"protocol": "sml",
"tuples": [
[
1713168179862,
197.68390000000002
]
]
}
]
}
No average, no min, no max. But the integration seems to only support those.
Could you maybe add "last" to "monitored_conditions"? I want to write the raw data without aggregation to influxdb via vzlogger so I dont want to change the aggmode
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The problem
volkszaehler.org integration not working properly
My volkszaehler (vz) works well on Raspi and later as Docker container. vzlogger collects data and transmits to middleware. Middleware is working and useable at http://192.168.178.46:8080. 192.168.178.46 is Docker host for Home Assistant (HA) and volkszaehler (vz). Vz middleware http://192.168.178.46:8080 is reachable from inside other Docker containers. Tested with
curl
.my tries:
/config
. Same errorconfig/configuration.yaml
vz build from source
HA docker-compose.yaml
(
PATH_TO_YOUR_CONFIG
ist properly set and working)HA /config/configuration.yaml
my tries in /config/configuration.yaml
uuid:
is double checked!host:
withlocalhost
, hostname and IPmonitored_conditions:
with and withoutmonitored_conditions:
with sample config from integration page- average - consumption - min - max
monitored_conditions:
with sample config from integration page without- average
What version of Home Assistant Core has the issue?
core-2023.6.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
volkszaehler
Link to integration documentation on our website
https://www.home-assistant.io/integrations/volkszaehler
Diagnostics information
home-assistant.log
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response