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.32k stars 30.63k forks source link

Add support for HitachiAirToWaterMainComponent (modbus:YutakiMainComponent) in Overkiz #98939

Open StefffM opened 1 year ago

StefffM commented 1 year ago

The problem

Hi, I made 2 implementations with Overkiz: 1 bridge with Tahoma Switch that works very well 1 bridge with Hi Kumo.

I have a Yutaki Hitachi's Air-to-Water Heat Pumps

With the bridge with Hi Kumo, 3 devices are found : Hi Box , MODBUS (690124/1#10) Electric energy consumption , ModbusGeneric and 6 entities :

MODBUS (690124/1#10) Electric energy consumption MODBUS (690124/1#10) Electric power consumption MODBUS (690124/1#4) MODBUS (690124/1#9) Electric energy consumption MODBUS (690124/1#9) Electric power consumption Start identify : ID button.modbusgeneric_start_identify

I can not have information except only the electrical consumption

There is a lot of information reported in the Json file but there is only information on the power consumption that goes back, everything else does not go back in Home Assistant

In the HomeAssistant logs I have errors log

Could you take a look for ? I’m available for tests. Thanks Stéphane

What version of Home Assistant Core has the issue?

core-2023.8.3

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

Hi Kumo wiith Yutaki Hitachi's Air-to-Water Heat Pumps

Link to integration documentation on our website

No response

Diagnostics information

2023-08-24 08:59:07.468 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 229, in _handle_refresh_interval
    await self._async_refresh(log_failures=True, scheduled=True)
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 374, in _async_refresh
    self.async_update_listeners()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 164, in async_update_listeners
    update_callback()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 431, in _handle_coordinator_update
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 746, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 810, in _async_write_ha_state
    attr.update(self.state_attributes or {})
                ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/water_heater/__init__.py", line 221, in state_attributes
    self.current_temperature,
    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/overkiz/water_heater_entities/hitachi_dhw.py", line 51, in current_temperature
    return current_temperature.value_as_float

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, @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` Renames 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)

StefffM commented 1 year ago

I add the diagnostic file overkiz-a34a944e3b5ec07d07ff64ae3c6ae4de-Hi Box-bd955e2ce2ad495e907ef9b6cfc7868c.json.txt

Sean277 commented 1 year ago

I'm in the same situation as SteffM.

iMicknl commented 1 year ago

@Sean277 please add your diagnostics as well.

@StefffM what options do you have in the Hi Kumo app? You have a lot of devices in your diagnostics that are not supported yet, so I am trying to figure out which ones we need to add (in the future).

StefffM commented 1 year ago

Hi @iMicknl , We have 3 distinct elements in the application:

I took some screenshots:

First access :

Circuit 1 :

ECS :

Heating programming

I hope that these elements will help you

StefffM commented 1 year ago

Hi @iMicknl , If you want me to make API requests don’t hesitate to ask me. I did some tests with Postman and I can access the Hitachi cloud. BR

StefffM commented 1 year ago

Hi @iMicknl , I managed to recover and APIs for the ECS part : To STOP ECS

POST https://ha117-1.overkiz.com/enduser-mobile-web/enduserAPI/exec/apply
{
    "actions": [{
        "deviceURL": "modbus://0820-7734-4877/690124/1#4",
        "commands": [{
            "name": "setControlDHW",
            "parameters": ["stop"]
        }]
    }]
}

To start ECS or upgrade temperature :

{
    "actions": [{
        "deviceURL": "modbus://0820-7734-4877/690124/1#4",
        "commands": [{
            "name": "globalControlDHW",
            "parameters": ["run", "standard", 45.0]
        }]
    }]
}

I have not been further for the moment but I guess I can activate other options that are not available on the Hi Kumo app like AntiLegionella I will do tests on the heating part before the weekend I will try to complete with the other elements.

iMicknl commented 12 months ago

@StefffM this is already helpful. You could gather these commands via your diagnostics as well. They include your execution history.

  1. If your device already shows up in Home Assistant, go to your integrations page and select Overkiz, your hub and the device. Press the 3 dots and select "Download diagnostics. Otherwise, go to your integrations page and select Overkiz. Next to your hub, click the 3 dots and select "Download diagnostics".

  2. Attach your diagnostics (JSON file) to this issue by uploading the file in a new comment (drag and drop supported).

StefffM commented 12 months ago

overkiz-a34a944e3b5ec07d07ff64ae3c6ae4de-ModbusGeneric-c1d44d443d3c1617851f1e0d04977a8c.json.txt overkiz-a34a944e3b5ec07d07ff64ae3c6ae4de-None-59598ec8d7f82a08655407fcce26b043.json.txt overkiz-a34a944e3b5ec07d07ff64ae3c6ae4de-Hi Box-bd955e2ce2ad495e907ef9b6cfc7868c.json.txt

StefffM commented 12 months ago

@iMicknl Here are the files and here are the commands for the heating part

The new commands for the heating part : Start first water heat pump with the temperature set manually

POST https://ha117-1.overkiz.com/enduser-mobile-web/enduserAPI/exec/apply

{
    "actions": [{
        "deviceURL": "modbus://0820-7734-4877/690124/1#2",
        "commands": [{
            "name": "globalControl",
            "parameters": ["manu", "heat", 20]
        }, {
            "name": "setAutoManuMode",
            "parameters": ["manu"]
        }, {
            "name": "setHolidayMode",
            "parameters": ["off"]
        }]
    }]
}

Response : EventID Check events POST https://ha117-1.overkiz.com/enduser-mobile-web/enduserAPI/events/"%EventID"/fetch

Stop first water heat pump with the temperature set manually

{
    "actions": [{
        "deviceURL": "modbus://0820-7734-4877/690124/1#2",
        "commands": [{
            "name": "globalControl",
            "parameters": ["off", "heat", 20]
        }, {
            "name": "setAutoManuMode",
            "parameters": ["manu"]
        }, {
            "name": "setHolidayMode",
            "parameters": ["off"]
        }]
    }]
}

Daily programming : GET https://ha117-1.overkiz.com/enduser-mobile-web/enduserAPI/triggers Update : PUT https://ha117-1.overkiz.com/enduser-mobile-web/enduserAPI/triggers trigger.json

Mode water heat pump with the temperature => daily programming POST https://ha117-1.overkiz.com/enduser-mobile-web/enduserAPI/exec/apply

    "actions": [{
        "deviceURL": "modbus://0820-7734-4877/690124/1#2",
        "commands": [{
            "name": "globalControl",
            "parameters": ["auto", "heat", 18]
        }, {
            "name": "setAutoManuMode",
            "parameters": ["auto"]
        }, {
            "name": "setHolidayMode",
            "parameters": ["off"]
        }]
    }]
}
ziconick commented 11 months ago

I'm in the same situation.

SeeDborg commented 11 months ago

+1, same problem for me here :(

issue-triage-workflows[bot] commented 8 months 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.

SeeDborg commented 8 months ago

Problem still exists.

iMicknl commented 8 months ago

@SeeDborg you mentioned this is working in ha-tahoma. Are all features supported in ha-tahoma via HitachiAirToWaterHeatingZone?

SeeDborg commented 8 months ago

In HA-Tahoma, I have access to the temperature and I can set it, yes.

StefffM commented 7 months ago

@iMicknl : I see no improvement at my level. Nothing works. I find it a shame given the time I took to put the information back that the ticket is closed without even taking the time to share the progress. In the state nothing works I have only the overall electricity consumption as much to say that it is useless to me.

iMicknl commented 7 months ago

@StefffM for my understanding, which issue has been closed? Please note that there are 40 open issues for the Overkiz integration. Many of them have been created earlier than your issue.

Thanks for providing detailed context in this issue, but note that this is not a guarantee that we will be able to fix this directly. My time is very limited at the moment, and now we don't have many contributors to the Overkiz integration.

iMicknl commented 7 months ago

@SeeDborg @ziconick can you please add your diagnostics as well. To make sure it is about the same device.

@StefffM have you tested ha-tahoma? This should have support for your device already, but is using different commands than the ones you shared above.

sdudulon2 commented 5 months ago

Hi, I have exactly the main problem. I ca add that i am migrating from Jeedom where the same integration is working fine. Here is the link of the plugin i am using in Jeedom if it can help : https://github.com/SuperToma/hitachi-hi-kumo/tree/develop If you need more info, please ask. thanks

sdudulon2 commented 2 months ago

hi, still no news on this issue ?

Wind06 commented 1 month ago

Hello there,

is there a chance to have this fixed one day ? I installed the Tahoma integration, the issue that I am facing is that I do have 2 circuits and ECS. but only one circuit is available the second appears to be " Not Available" ? I don't understand way only one is available and not the second one ?

Capture d’écran 2024-10-02 à 18 31 21

Capture d’écran 2024-10-02 à 18 41 37

Thanks

SeeDborg commented 3 days ago

Please please please fix this, I'm desperate :(

Wind06 commented 2 days ago

I guess that nobody is interested to help, that's a shame. Since last May no news or updates, too bad.

SeeDborg commented 2 days ago

Well I installed the old version of the plugin... But I'm afraid it will be deleted one of these days, and then I'll have no solution 👎

Wind06 commented 2 days ago

@SeeDborg , do you mean that an old version is working ?

SeeDborg commented 1 day ago

I can have my temperature and set it up, with the old Overkiz integration in HACS.

Wind06 commented 22 hours ago

by the way which version, so I can give a try ... thanks

SeeDborg commented 18 hours ago

The name is "Overkiz (by Somfy) - Custom component". Latest version.

SeeDborg commented 18 hours ago

It's this one : https://github.com/iMicknl/ha-tahoma

Wind06 commented 8 hours ago

thanks I will give a try