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
73.64k stars 30.78k forks source link

Operation Modes broken for DomesticHotWaterProduction (modbuslink:AtlanticDomesticHotWaterProductionMBLComponent) in Overkiz #84091

Open samourai64 opened 1 year ago

samourai64 commented 1 year ago

The problem

i have an atlantic heater water model Lineo with wifi cozytouch integrated. I installed the 2022.12.5 HA core but nothing seem's to work. I m correctly connected with login /password. The atlanctic app on android works fine. If i made some modification on the app, nothing on HA. If i make modifications on HA i have errors messages. The lineo is a model after 2021. It has 4 mode -> away mode, eco mode, manuel mode, and boost mode

Clic on "on" -> failure to call the service

What version of Home Assistant Core has the issue?

2022.12.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Overkiz

Link to integration documentation on our website

No response

Diagnostics information

config_entry-overkiz-a7788d6bf21a30e8aaaf5684228470ae.json-2.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logs of debugging on with clic son all mode

home-assistant_overkiz_2022-12-16T13-16-05.274Z.log

No response

Additional information

image It's when i clic on Eco mode

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

@homeassistant close

samourai64 commented 1 year ago

hello I installed th 2022.12.8 core HA, but i have the same problem

when i slect "on" ` [547641675392] 'on' [547641675392] 'high_demand'

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 200, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1745, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1782, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service await service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 678, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 943, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 715, in _handle_entity_call await result File "/usr/src/homeassistant/homeassistant/components/overkiz/water_heater_entities/domestic_hot_water_production.py", line 323, in async_set_operation_mode OverkizCommand.SET_DHW_MODE, self.overkiz_to_operation_mode[operation_mode] KeyError: 'on' `

When i select another event

`[547641675392] setDHWMode() : Invalid value for command parameter p1 : expected string value (autoMode, manualEcoActive, manualEcoInactive) but got eco (String)

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 200, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1745, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1782, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service await service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 678, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 943, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 715, in _handle_entity_call await result File "/usr/src/homeassistant/homeassistant/components/overkiz/water_heater_entities/domestic_hot_water_production.py", line 322, in async_set_operation_mode await self.executor.async_execute_command( File "/usr/src/homeassistant/homeassistant/components/overkiz/executor.py", line 91, in async_execute_command exec_id = await self.coordinator.client.execute_command( File "/usr/local/lib/python3.10/site-packages/backoff/_async.py", line 151, in retry ret = await target(*args, kwargs) File "/usr/local/lib/python3.10/site-packages/backoff/_async.py", line 151, in retry ret = await target(*args, *kwargs) File "/usr/local/lib/python3.10/site-packages/pyoverkiz/client.py", line 609, in execute_command response: str = await self.execute_commands(device_url, [command], label) File "/usr/local/lib/python3.10/site-packages/backoff/_async.py", line 151, in retry ret = await target(args, kwargs) File "/usr/local/lib/python3.10/site-packages/pyoverkiz/client.py", line 637, in execute_commands response: dict = await self.post("exec/apply", payload) File "/usr/local/lib/python3.10/site-packages/pyoverkiz/client.py", line 778, in post await self.check_response(response) File "/usr/local/lib/python3.10/site-packages/pyoverkiz/client.py", line 877, in check_response raise Exception(message if message else result) Exception: setDHWMode() : Invalid value for command parameter p1 : expected string value (autoMode, manualEcoActive, manualEcoInactive) but got eco (String) `

nyroDev commented 1 year ago

The fix didn't reach production yet.
This should be the case for 2013.1.0.

samourai64 commented 1 year ago

Hello. I update to the 2023.1.0 But i have quasi the same problem. In the liste i just have : Eco / Auto. But the possibilité oft he Lineo is : Away mode / Manu / Eco / Boost

Here is the log Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 200, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1755, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1792, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service await service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 678, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 958, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 715, in _handle_entity_call await result File "/usr/src/homeassistant/homeassistant/components/overkiz/water_heater_entities/domestic_hot_water_production.py", line 327, in async_set_operation_mode OverkizCommand.SET_DHW_MODE, self.operation_mode_to_overkiz[operation_mode] KeyError: 'auto'

`Logger: homeassistant.components.websocket_api.http.connection Source: components/overkiz/executor.py:91 Integration: Home Assistant WebSocket API (documentation, issues) First occurred: 09:40:33 (1 occurrences) Last logged: 09:40:33

[547733491904] setDHWMode() : Invalid value for command parameter p1 : expected string value (autoMode, manualEcoActive, manualEcoInactive) but got auto (String) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 200, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1755, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1792, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service await service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 678, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 958, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 715, in _handle_entity_call await result File "/usr/src/homeassistant/homeassistant/components/overkiz/water_heater_entities/domestic_hot_water_production.py", line 326, in async_set_operation_mode await self.executor.async_execute_command( File "/usr/src/homeassistant/homeassistant/components/overkiz/executor.py", line 91, in async_execute_command exec_id = await self.coordinator.client.execute_command( File "/usr/local/lib/python3.10/site-packages/backoff/_async.py", line 151, in retry ret = await target(*args, kwargs) File "/usr/local/lib/python3.10/site-packages/backoff/_async.py", line 151, in retry ret = await target(*args, *kwargs) File "/usr/local/lib/python3.10/site-packages/pyoverkiz/client.py", line 609, in execute_command response: str = await self.execute_commands(device_url, [command], label) File "/usr/local/lib/python3.10/site-packages/backoff/_async.py", line 151, in retry ret = await target(args, kwargs) File "/usr/local/lib/python3.10/site-packages/pyoverkiz/client.py", line 637, in execute_commands response: dict = await self.post("exec/apply", payload) File "/usr/local/lib/python3.10/site-packages/pyoverkiz/client.py", line 778, in post await self.check_response(response) File "/usr/local/lib/python3.10/site-packages/pyoverkiz/client.py", line 877, in check_response raise Exception(message if message else result) Exception: setDHWMode() : Invalid value for command parameter p1 : expected string value (autoMode, manualEcoActive, manualEcoInactive) but got auto (String) `

Thank's for your help

samourai64 commented 1 year ago

Hello The 2023.1.1 change nothing Problem is the same. The only devices that works are the water temperature , the electricity consumption the number of shower and the expected number of shower

The select list of opération doesn't work and are not good

Thank's for the help

samourai64 commented 1 year ago

No solution for this problem? Thank's

nyroDev commented 1 year ago

@samourai64 your diagnostic do include an execution_history which is very helpful. It could be really great if you could :

  1. Do different action on the official android app (boost, eco, manual, etc...) by letting 1 or 2 minutes between each action
  2. List everything you're doing in correct order
  3. Wait a few more minutes after the last action and post your diagnostic and the list of what you did

Bonus point if you could also post screenshot for your mobile app for every action too.

it will help me understand what Overkiz/Atlantic is expecting for every action for your device.

samourai64 commented 1 year ago

1er screen. I m not in my house. The away mode in engaged screen_1

I clic on "Je suis de retour" -> 2 eme screen screen_2

samourai64 commented 1 year ago

I clic on " Eau chaude" -> 3 emme screen screen_3

I clic on "Eco+". The app explain the mode and start the mode -> 4 screen screen_4

samourai64 commented 1 year ago

I clic on Boost -> 5 and 6 screen screen_5 screen_6

samourai64 commented 1 year ago

Return to Manu mode, clic on the "60% d'eau chaude" -> 7 screen screen_7

samourai64 commented 1 year ago

Clic on "Absence -> 8 Screen and 9 screen_8 screen_9

samourai64 commented 1 year ago

I make a overkiz screen. It seem's to see the action but the On/OFF or Clic on Eco or Manu givre the same error. On HA overkiz the Lineo is always on " Desactivé" overkiz

samourai64 commented 1 year ago

if you need another screen oninformation.... Ask me

Thank's for your help

nyroDev commented 1 year ago

@samourai64 Your diagnostic file will be helpful, in order to understand what action was done through overkiz. I don't know how many times the execution history stay there, so you might need to redo all actions you've done...

samourai64 commented 1 year ago

ok. i m waiting your asks... thank's

nyroDev commented 1 year ago

@samourai64 go to Parameters > Devices and service. (Paramètres > Appareils et services) Then, on the overkiz integration, click on ... menu and choose "Download the logs" (Télécharger les journaux). Please add the file downloaded here please.
The history seem to be kept for a long time, so you don't need to redo all your actions.

samourai64 commented 1 year ago

Here are the last log. Before send you i clic on the Eco and Auto that send a msg error on HA. For information, My Hot wWater is on at this moment with the android app, but Overkiz see it desactivate config_entry-overkiz-a7788d6bf21a30e8aaaf5684228470ae.json.txt

issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

iMicknl commented 1 year ago

Still an issue (as reported on Discord). No ETA when it will be fixed.

mib1185 commented 2 months ago

is this still valid?