plugwise / python-plugwise

Plugwise python module for Smiles (Anna, Adam, P1) and Stretch

Home Page:https://pypi.org/project/plugwise

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG]:

ruute66 opened this issue · comments

Describe the bug.

After upgrade HA version 2022.11.1 or 2011.11.2 the Plugwise integration stopt working, and this error: Failed to set up

Log message:

Logger: homeassistant.config_entries
Source: components/plugwise/gateway.py:59
First occurred: 19:38:24 (1 occurrences)
Last logged: 19:38:24

Error setting up entry Adam 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 160, in get_all_devices
self._all_device_data()
File "/usr/local/lib/python3.10/site-packages/plugwise/smile.py", line 114, in _all_device_data
self.update_for_cooling(self.gw_devices[device_id])
File "/usr/local/lib/python3.10/site-packages/plugwise/smile.py", line 80, in update_for_cooling
max_setpoint = self._sched_setpoints[1]
IndexError: list index out of range

Expected behavior

no errors and working integration

What version of Home Assistant Core has the issue?

Home Assistant 2022.11.2 Supervisor 2022.10.2 Operating System 9.3 Frontend 20221108.0 - latest

What type of installation are you running?

Home Assistant OS

How and which version of the integration do you have installed?

Home Assistant Core

What kind of Plugwise device is having issues?

Smile: Adam (including Lisa, Tom, Floor)

What firmware version is your Plugwise product at?

3.6.7

Home Assistant Logging (optional)

No response

Diagnostics information

No response

Additional information

No response

Can you please share the diagnostics info of the Plugwise integration?

Ok, thanks!

Two questions:

  1. From the data I can see that there is cooling capability, is that correct?
  2. I see you have a Thermostat schedule, is that one maybe empty?

Thanks!

So, the schedule, when you look at it in the Plugwise App, is empty?
Strange, there was a bugfix in 2022.11.2 just for that situation. Strange that is doesn't work.

You can help me by sending me some raw xml-data from your system: can you please capture the xml-data present at http://<adam_ip>/core/domain_objects?
Please do this via right-click -> Save as -> .xml

Please send the resulting file to my email: bouwe at westerdijk point info (change this into a real email address).

@ruute66 I can reproduce your problem with the library-code that's in HA Core at the moment.
I also see that the problem is gone with the code that will be in the coming library-update.

The plugwise library (its code is in this github) is updated. This library is used by the HA Core Plugwise integration and by the Plugwise-beta custom_component https://github.com/plugwise/plugwise-beta

Should be fixed in HA Core 2022.12.0.