home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.26k stars 29.85k forks source link

Atlantic Zone Control 2.0 (cozytouch) KeyError: 'externalSetpoint' #83635

Closed eekamouze closed 1 year ago

eekamouze commented 1 year ago

The problem

Since version 2022.12.0 with Overkiz integration embedded to core I cannot control my heating anymore (nor heat water). I get this error displayed on the UI for any action: Échec d'appel du service climate/set_hvac_mode. 'externalSetpoint'.

Climate entities are created and it seems to recover data properly (temp /mode...) but I can't set anything.

What version of Home Assistant Core has the issue?

2022.12.1

What was the last working version of Home Assistant Core?

2022.11.5

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Overkiz

Link to integration documentation on our website

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

Diagnostics information

config_entry-overkiz-26d37ac67d162d7807c351323922fa32.json(2).txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant
Source: components/overkiz/climate_entities/atlantic_pass_apc_heating_zone.py:145
First occurred: 11:25:38 (25 occurrences)
Last logged: 11:38:51

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 168, in _handle_refresh_interval
    await self._async_refresh(log_failures=True, scheduled=True)
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 316, in _async_refresh
    self.async_update_listeners()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 121, in async_update_listeners
    update_callback()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 381, in _handle_coordinator_update
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 545, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 585, in _async_write_ha_state
    attr.update(self.state_attributes or {})
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 338, in state_attributes
    data[ATTR_PRESET_MODE] = self.preset_mode
  File "/usr/src/homeassistant/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_heating_zone.py", line 145, in preset_mode
    return OVERKIZ_TO_PROFILE_MODES[
KeyError: 'externalSetpoint'

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @imicknl, @vlebourl, @tetienne, @nyrodev, mind taking a look at this issue as it has been labeled with an integration (overkiz) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `overkiz` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Change the title of the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign overkiz` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


overkiz documentation overkiz source (message by IssueLinks)

nyroDev commented 1 year ago

@eekamouze Do you know what is externalSetpoint for your point view? Or saying in other words: You did have a setting on your device the current preset mode to "externalSetpoint". Which button/menu/action did you do on your physical device or with a vendor app to have this mode set on?

It will help me understand how we should handle it in Home assistant.