jwillemsen / daikin_onecta

Home Assistant Integration for devices supported by the Daikin Onecta App
https://github.com/jwillemsen/daikin_onecta
GNU General Public License v3.0
294 stars 9 forks source link

[Issue]: DHW operation modes not correct #298

Closed riksmithuk closed 1 month ago

riksmithuk commented 1 month ago

Logger: homeassistant.components.websocket_api.http.connection Source: components/websocket_api/commands.py:820 integration: Home Assistant WebSocket API (documentation, issues) First occurred: 07:32:32 (1 occurrences) Last logged: 07:32:32

[547428415904] Operation mode "off" is not valid for water_heater.altherma. Valid operation modes are: off, heat_pump, performance

it did similarly when i used the service call of water_heater on

Workaround used: Service call "water heater mode change" - and manually typing in heat_pump or off worked


onecta component : Version: 4.1.14

Core 2024.9.2 Supervisor 2024.09.1 Operating System 13.1 Frontend 20240809.0

jwillemsen commented 1 month ago

Please enable the debug logging (see readme) and attach the log here. This looks as a wrong error coming from the HA core

jwillemsen commented 1 month ago

Closing, without logs I can't fix it, this looks a more generic HA issue

riksmithuk commented 1 month ago

HI @jwillemsen - you're right that it's an error from core.

When i call the service "turn on water heater"

action: water_heater.turn_on
target:
  entity_id: water_heater.altherma
data: {}

i get the following error.

Logger: homeassistant.components.websocket_api.http.connection Source: components/websocket_api/connection.py:307 integration: Home Assistant WebSocket API (documentation, issues) First occurred: 17:35:47 (1 occurrences) Last logged: 17:35:47

[547319039456] Error handling message: Entity water_heater.altherma does not support this service. (home_assistant_error) Rik from 82.4.46.70 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36)

broader context from logs

2024-09-27 17:35:47.825 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Running websocket_api script 2024-09-27 17:35:47.826 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Executing step call service 2024-09-27 17:35:47.828 ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Error for call_service at pos 1: Entity water_heater.altherma does not support this service. 2024-09-27 17:35:47.838 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547319039456] Error handling message: Entity water_heater.altherma does not support this service. (home_assistant_error) Rik from 82.4.46.70 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36) config_entry-daikin_onecta-03bdb309aebb1528bf00bffb2a9c561e (2).json

debug log attached

jwillemsen commented 1 month ago

Strange

jwillemsen commented 1 month ago

Can you retest with master, added ON_OFF to the water heater

riksmithuk commented 1 month ago

Can you retest with master, added ON_OFF to the water heater

i'm not sure what this means.

My work around mentioned above continues to work

this: The water_heat device is in this state

min_temp: -127
max_temp: 127
operation_list:
  - "off"
  - heat_pump
current_temperature: 42
temperature: 43
target_temp_high: null
target_temp_low: null
operation_mode: "off"
target_temp_step: 1
friendly_name: Altherma
supported_features: 2

then i call this action


data:
  operation_mode: heat_pump
target:
  entity_id: water_heater.altherma
action: water_heater.set_operation_mode

this would result in it being on (succesfully)

jwillemsen commented 1 month ago

Please download the master version using hacs, and try turn_on, that should work now

riksmithuk commented 1 month ago

can only find [v4.1.14] available via hacs. i have "redownloaded" it and restarted. no difference.

image

jwillemsen commented 1 month ago

In the past you could select a branch, will make a new release when I have some time for that

riksmithuk commented 1 month ago

ok. I found your code update on line 100 of custom_components/daikin_onecta/water_heater.py I manually updated my version locally, and YES it now works. I have tested on / off actions. Thank you