core: Plugwise Smile integration stopped working

The problem

I discovered after updating to 2022.10.0 on hassos (RaspberryPi 3B) that our thermostat integration stopped working. Even after removing the integration, restarting HA, repeatedly trying to set up again, I keep getting an error:

Logger: homeassistant.config_entries Source: components/plugwise/gateway.py:59 First occurred: 10:43:24 (1 occurrences) Last logged: 10:43:24 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'

What version of Home Assistant Core has the issue?

2022.10.0

What was the last working version of Home Assistant Core?

2022.9.7

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Plugwise

Link to integration documentation on our website

https://www.home-assistant.io/integrations/plugwise

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

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'


### Additional information

_No response_

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (7 by maintainers)

Commits related to this issue

Most upvoted comments

@AussiSG This issue has been closed and handled, could you pleas open an new issue instead? Thanks! 👍

I have the same issue, my cv ketel is also an Intergas.

Can provide more information if needed.