Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Home Assistant Community Plugwise Anna unavailable after updating to 2022.3 #68621

Closed
johanb7 opened this issue Mar 24, 2022 · 6 comments · Fixed by #68908
Closed

Home Assistant Community Plugwise Anna unavailable after updating to 2022.3 #68621

johanb7 opened this issue Mar 24, 2022 · 6 comments · Fixed by #68908
Assignees

Comments

@johanb7
Copy link

johanb7 commented Mar 24, 2022

The problem

after updating to 2022.3 the Plugwise anna became unavailable, I’ve tried readding the plugin but that doesn’t seem to work.
I’m able to read the temperature etc, but the entity climate.anna is unavailable
it’s connected to a On-Off device
Error:

    Logger: homeassistant.components.climate
    Source: components/plugwise/climate.py:114
    Integration: Climate ([documentation](https://www.home-assistant.io/integrations/climate), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+climate%22))
    First occurred: 11:42:30 AM (2 occurrences)
    Last logged: 11:42:30 AM

        Error adding entities for domain climate with platform plugwise
        Error while setting up plugwise platform for climate

    Traceback (most recent call last):
    File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 382, in async_add_entities await asyncio.gather(*tasks) File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 614, in _async_add_entity await entity.add_to_platform_finish()
    File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 800, in add_to_platform_finish await self.async_added_to_hass()
    File “/usr/src/homeassistant/homeassistant/components/plugwise/entity.py”, line 77, in async_added_to_hass self._handle_coordinator_update() File “/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py”, line 325, in _handle_coordinator_update self.async_write_ha_state()
    File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 553, in async_write_ha_state self._async_write_ha_state() File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 592, in _async_write_ha_state attr.update(self.state_attributes or {})
    File “/usr/src/homeassistant/homeassistant/components/climate/init.py”, line 298, in state_attributes if self.hvac_action:
    File “/usr/src/homeassistant/homeassistant/components/plugwise/climate.py”, line 114, in hvac_action heater_central_data = self.coordinator.data.devices[ KeyError: None
2022-03-24 12:48:55 DEBUG (MainThread) [custom_components.plugwise] Plugwise Anna updated
2022-03-24 12:48:55 DEBUG (MainThread) [custom_components.plugwise] Data: PlugwiseData(gateway={'smile_name': 'Anna', 'gateway_id': '0000aaaa0000aaaa0000aaaa0000aa00', 'heater_id': None, 'cooling_present': False, 'notifications': {}}, devices={'0000aaaa0000aaaa0000aaaa0000aa00': {'class': 'gateway', 'fw': '1.8.0', 'hw': None, 'mac_address': None, 'location': '0000aaaa0000aaaa0000aaaa0000aa00', 'vendor': 'Plugwise B.V.', 'model': 'Anna', 'name': 'Anna', 'binary_sensors': {'plugwise_notification': False}}, '6cb56f958b45412eb2fa4b1c9aac9e6c': {'class': 'thermostat', 'fw': '2017-03-13T11:54:58+01:00', 'hw': '6539-1301-5002', 'location': '0000aaaa0000aaaa0000aaaa0000aa00', 'mac_address': None, 'model': 'Anna', 'name': 'Anna', 'vendor': 'Plugwise', 'lower_bound': 4.0, 'upper_bound': 30.0, 'resolution': 0.1, 'preset_modes': ['away', 'vacation', 'no_frost', 'asleep', 'home'], 'active_preset': None, 'presets': {'away': [17.0, 0], 'vacation': [15.0, 0], 'no_frost': [10.0, 0], 'asleep': [15.0, 0], 'home': [20.0, 0]}, 'available_schedules': ['Thermostat schedule'], 'selected_schedule': 'None', 'last_used': 'Thermostat schedule', 'mode': 'heat', 'sensors': {'temperature': 20.3, 'setpoint': 19.5, 'illuminance': 76.8}}})
2022-03-24 12:48:55 DEBUG (MainThread) [custom_components.plugwise] Finished fetching Anna data in 2.761 seconds (success: True

What version of Home Assistant Core has the issue?

2022.3.X

What was the last working version of Home Assistant Core?

2022.2.X

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

Plugwise

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@probot-home-assistant
Copy link

climate documentation
climate source
(message by IssueLinks)

@probot-home-assistant
Copy link

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (climate) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)

@johanb7
Copy link
Author

johanb7 commented Mar 24, 2022

Appliances.txt

@probot-home-assistant
Copy link

plugwise documentation
plugwise source
(message by IssueLinks)

@probot-home-assistant
Copy link

Hey there @CoMPaTech, @bouwew, @brefra, @frenck, mind taking a look at this issue as it has been labeled with an integration (plugwise) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)

@bouwew
Copy link
Contributor

bouwew commented Mar 24, 2022

Looks like there is a bug related to the legacy Anna xml-data.
This will be fixed in plugwise v0.17.1

@github-actions github-actions bot locked and limited conversation to collaborators Apr 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants