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

[Issue]: DHW operation modes not correct #298

Closed
riksmithuk opened this issue Sep 17, 2024 · 10 comments
Closed

[Issue]: DHW operation modes not correct #298

riksmithuk opened this issue Sep 17, 2024 · 10 comments

Comments

@riksmithuk
Copy link

riksmithuk commented Sep 17, 2024

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
Copy link
Owner

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

@jwillemsen
Copy link
Owner

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

@riksmithuk
Copy link
Author

riksmithuk commented Sep 27, 2024

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
Copy link
Owner

Strange

@jwillemsen jwillemsen reopened this Sep 27, 2024
jwillemsen added a commit that referenced this issue Sep 27, 2024
Water_heater supports on/off, fixed #298
@jwillemsen
Copy link
Owner

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

@jwillemsen jwillemsen reopened this Sep 27, 2024
@riksmithuk
Copy link
Author

riksmithuk commented Sep 27, 2024

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
Copy link
Owner

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

@riksmithuk
Copy link
Author

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

image

@jwillemsen
Copy link
Owner

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

@riksmithuk
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants