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.86k forks source link

Atlantic Cozytouch (via Overkiz) away mode does not work #83326

Closed Step-han closed 1 year ago

Step-han commented 1 year ago

The problem

I've connected the Cozytouch bridge with HomeAssisant via the Atlantic Cozytouch (via Overkiz) core integration.

image

Under configuration, the 'DHWP Actuator Boost mode duration' works good. If I set it to 1 the Atlantic Explorer v4 actived the boost mode for 1 day.

image

But the 'DHWP Actuator Away mode duration' does not work. If I set it to 1 it goes back to 0 automatic. The Atlantic Explorer v4 does nothing. Stays on the same configuration.

image

What I want to make is on cold days <5°C that HA sets the device to away and warm it up with boost mode on a pre-programmaed time. Its costs less kWh to warm the water with boostmode then the hole day with the heatpump.

What version of Home Assistant Core has the issue?

core-2022.11.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

Atlantic Cozytouch (via Overkiz)

Link to integration documentation on our website

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

Diagnostics information

overkiz-23eef778e6267a005f41e9e8eeb6cd97-DHWP Actuator-dcf1ee7aecf77504c102cd392c075fcb.json.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @imicknl, @vlebourl, @tetienne, 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)

iMicknl commented 1 year ago

Is there any error in your log after you execute the commands?

Step-han commented 1 year ago

In /config/logs nothing to see about Cozytouch / Overkiz.

Only thing I sometimes see is the image from the opening post.

image

MassimoL06 commented 1 year ago

Hello, I am facing same situation with my Atlantic Lineo Water heater. image In the core log file, there is not information raised when I trigger the function. I am not able to retrieve the diagnostic file, looks like it is not accessible: https://homeassistant:8123/api/diagnostics/config_entry/19023ee303b0dc7a757625e74e4d77a1/device/1b21436884631c82b4cd3fe4f92d5af2 I have extracted the json file describing my device and I see a lot of possible commands like 'setAbsenceMode', 'setAbsenceEndDate', 'setAbsenceStartDate', ... I would like to stop my water heater when my house power consumption is becoming high. Thanks for your support.

iMicknl commented 1 year ago

@nyroDev you aren't yet in our contributors file, so you didn't get tagged. Is this something where you have an idea?

@MassimoL06, @Step-han best would be to execute the commands via the official app (and keep some time in between, so we can clearly see the difference. Then download your device diagnostics and drag them in a comment here.

@MassimoL06 your diagnostics file above I cannot download. Were you able to download the JSON? If you get an error, please check your log.

nyroDev commented 1 year ago

The Home Assistant version from @Step-han is 2022.11.2.
The changes regarding DHWP will be live with 2022.12. @Step-han : this means you'll have more option pretty soon for your device, like setting a preset.

The Boost mode duration we're talking about is provided via number.py

In my understanding, calling setAwayModeDuration should also add calls for many elements.
See here

@iMicknl : Is it possible to forward the number.py API to the corresponding entity to a new private function in climate entity in order to centralise that?
(this could be the case for many other elements too I guess)

Step-han commented 1 year ago

@nyroDev great to hear, if the docker version of HA 2022.12 is available i'll test it out!

@iMicknl here are the diagnostics. What I saw in the logs is that away modus changes to 'always' and not to a number. Maybe is that the problem?

image

Here are the files; Cozytouch: overkiz-23eef778e6267a005f41e9e8eeb6cd97-Cozytouch-6419f38560b867d44a4a635cd1a894f3.json.txt

DHWP Actuator: overkiz-23eef778e6267a005f41e9e8eeb6cd97-DHWP Actuator-dcf1ee7aecf77504c102cd392c075fcb.json.txt

iMicknl commented 1 year ago

@iMicknl : Is it possible to forward the number.py API to the corresponding entity to a new private function in climate entity in order to centralise that?

I don't think it is a good idea to have them coupled. Number/Sensor/BinarySensor/Select entities are not scoped to a specific devices, but more to a specific command and/or state.

Let's see if the new Water Heater entity will already partially add the functionality they need, and if we can fix the number entity in the future.

Step-han commented 1 year ago

Running 2022.12.0 now.

Getting a climate card:

image

All the modes above don't work either. Getting error messages:

image

Away mode still doesnt work.

nyroDev commented 1 year ago

@Step-han Does the other preset works correctly for you?

nyroDev commented 1 year ago

@Step-han Could you also try the temperature change?

Step-han commented 1 year ago

@nyroDev what do you mean with presets?

From the climate only the 'prestatie' preset works. It activates 'boost' mode.

image

The other presets here don't work.

Temp change works!

From those 3: image

Only boost mode works, freeze and away don't work.

MassimoL06 commented 1 year ago

Hello again, here is my diagnostic file: overkiz-19023ee303b0dc7a757625e74e4d77a1-DHWP Actuator-1b21436884631c82b4cd3fe4f92d5af2.json (1).txt

When I try to change the mode, I see a message on the bottom left. image

And Tin the log file I have this: Logger: homeassistant.components.websocket_api.http.connection Source: components/overkiz/water_heater_entities/domestic_hot_water_production.py:331 Integration: Home Assistant WebSocket API (documentation, issues) First occurred: 3:01:41 PM (5 occurrences) Last logged: 3:13:16 PM

[140622210250928] 'off' [140622210250928] 'on' [140621667735568] 'on' 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 331, in async_set_operation_mode OverkizCommand.SET_DHW_MODE, self.overkiz_to_operation_mode[operation_mode] KeyError: 'off'

nyroDev commented 1 year ago

@MassimoL06 you're issue isn't fixed yet.
The issue was original for the away mode, you're problem is a little bit different.
You can open a new issue with the content of your last message, it'll simplify explaination when the fix will be ready.

Step-han commented 1 year ago

Away mode still doesn't work. Running 2022.12.4.

If I set it to away fysical on the unit, then I can set numbers:

image

But it doesn't do anything on the DHWP.

If I set it to normal fysical on the unit, then I cannot do anything with the slider:

image

If you need something more.. let me know!

Step-han commented 1 year ago

@nyroDev sorry, forgot to tag u.

Step-han commented 1 year ago

Because its -6 celsius here I've set fysical the DHWP on away modes. In HA it change to:

image

Step-han commented 1 year ago

@nyroDev @iMicknl

Do I need to make a new issue? Since this one is closed but not fixed.