Plugwise Anna configuration failed

Hello,
i am a noob but try using and learning HA.
In my integrations i had the Plugwise Anna thermostat detected and tryed to configere it.
But it false and gives me the following error:

2022-10-12 11:34:12.392 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Smile for plugwise
File “/usr/src/homeassistant/homeassistant/components/plugwise/init.py”, line 13, in async_setup_entry
File “/usr/src/homeassistant/homeassistant/components/plugwise/gateway.py”, line 59, in async_setup_entry_gw
File “/usr/local/lib/python3.10/site-packages/plugwise/smile.py”, line 142, in get_all_devices
File “/usr/local/lib/python3.10/site-packages/plugwise/smile.py”, line 80, in _all_device_data
File “/usr/local/lib/python3.10/site-packages/plugwise/smile.py”, line 226, in _get_device_data
File “/usr/local/lib/python3.10/site-packages/plugwise/helper.py”, line 908, in _get_appliance_data
2022-10-12 11:36:49.572 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Smile for plugwise
File “/usr/src/homeassistant/homeassistant/components/plugwise/init.py”, line 13, in async_setup_entry
File “/usr/src/homeassistant/homeassistant/components/plugwise/gateway.py”, line 59, in async_setup_entry_gw
File “/usr/local/lib/python3.10/site-packages/plugwise/smile.py”, line 142, in get_all_devices
File “/usr/local/lib/python3.10/site-packages/plugwise/smile.py”, line 80, in _all_device_data
File “/usr/local/lib/python3.10/site-packages/plugwise/smile.py”, line 226, in _get_device_data
File “/usr/local/lib/python3.10/site-packages/plugwise/helper.py”, line 908, in _get_appliance_data

I could not find a topic or tutorial on errors. Maybe someone here can help me.
Thanks in advance

Hello, I’m one of the Plugwise integration code owners.

There is not enough information in the log-lines you show above to be able to pinpoint the error.
Are there any more messages shown in the LOGBOEK, related to the Plugwise integration?

Hello,

This is what i could find.

Logger: homeassistant.config_entries
Source: components/plugwise/gateway.py:59
First occurred: 11:15:13 AM (1 occurrences)
Last logged: 11:15:13 AM

Error setting up entry Smile for plugwise
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 365, in async_setup
result = await component.async_setup_entry(hass, self)
File “/usr/src/homeassistant/homeassistant/components/plugwise/init.py”, line 13, in async_setup_entry
return await async_setup_entry_gw(hass, entry)
File “/usr/src/homeassistant/homeassistant/components/plugwise/gateway.py”, line 59, in async_setup_entry_gw
api.get_all_devices()
File “/usr/local/lib/python3.10/site-packages/plugwise/smile.py”, line 142, in get_all_devices
self._all_device_data()
File “/usr/local/lib/python3.10/site-packages/plugwise/smile.py”, line 80, in _all_device_data
data = self._get_device_data(device_id)
File “/usr/local/lib/python3.10/site-packages/plugwise/smile.py”, line 226, in _get_device_data
device_data = self._get_appliance_data(dev_id)
File “/usr/local/lib/python3.10/site-packages/plugwise/helper.py”, line 908, in _get_appliance_data
self._lortherm_cooling_active = data[“modulation_level”] == 100
KeyError: ‘modulation_level’

I don’t know if this helps?
image

Bert

Yes, this helps. This is a known bug: Plugwise Smile integration stopped working · Issue #79708 · home-assistant/core · GitHub
I had provided a fix for that bug but the fix is not yet added to a release.

In the meantime, I’m adding more fixes and features to the Plugwise integration during the coming week.
So they might skip the above bugfix and wait for me to finish the ongoing stuff.
So I’m expect this bug to be fixed in HA Core 2022.11.0

Ah, oké.
Thank you for your work and your reply.
I will wait until you fixed it.

Have a nice Day,
Bert

If you want, you can use the Plugwise-beta custom_component instead of the Core Plugwise integration.
They are fully compatible. And the beta-version is further ahead in functionality and bugfixes. See here: GitHub - plugwise/plugwise-beta: Custom-component / development version of the Plugwise Home Assistant platform

1 Like

thank you.
As i said i am an absoluut beginner, but my college knows a lot.
i will ask him to help me to intergrate the beta.