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

Not Sync state in HA when MELCloud app or remote is used #122489

Open robitsrl opened 3 months ago

robitsrl commented 3 months ago

The problem

Il i use the MELCloud app or the remote controller to set the ac homassistant do not update states. If I reload the integration state is correct. Could this be a bug, my system provlem or it’ a for design ?

What version of Home Assistant Core has the issue?

2024.7.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

Melcloud

Link to integration documentation on our website

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

Diagnostics information

No response

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 3 months ago

Hey there @erwindouna, mind taking a look at this issue as it has been labeled with an integration (melcloud) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `melcloud` 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 melcloud` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


melcloud documentation melcloud source (message by IssueLinks)

luispb commented 3 months ago

I'm experimenting the same behavior.

erwindouna commented 3 months ago

There's a known behaviour, after a recent update by Mitsubishi that it has a delay. This can vary from 1 to 5 minutes. Does it update after a certain time at all?

robitsrl commented 3 months ago

No, it does not update at all

robitsrl commented 3 months ago

It’s updating the state Today buy I think more the 5 minutes. Now I add a notify to let me know.. I can not wait in front of the app for so long time doing anything. I will update the post

robitsrl commented 3 months ago

Update in 8 minute

schmincke commented 3 months ago

I experience the same issue. Changes from remote / device to Melcloud app is 10-20 seconds - but no changes in HA.

SirDester commented 3 months ago

Same issue with updates from MelCloud app and remote from some days, reloading the integration imediately updates the state in HA

delli87 commented 3 months ago

Same problem.

titocadavez commented 2 months ago

Having the same problem. Not only sync from the remote but also if I turn Off AC on the MelCloud app it wont show as turned Off on Home Assistant.

SckyzO commented 2 months ago

Yes, we need to reload MELCloud integration to have the state. I created an automation to reload integration, but is not the solution :)

luispb commented 2 months ago

@SckyzO , could you please share what that automation looks like? I agree is not the solution but at least we have a workaround.

SckyzO commented 2 months ago

I Use this Automation :

alias: 🔄 Rechargement de l'intégration MELCloud
description: >-
  Recharger l'intégration MELCloud toutes les 5 minutes pour assurer la
  synchronisation de la climatisation.
trigger:
  - platform: time_pattern
    minutes: /5
action:
  - data:
      entry_id: <my_entry_id>
    action: homeassistant.reload_config_entry
mode: single

You can find your integration_entry_id in file :

more /config/.storage/core.config_entries

(I use SSH and Terminal addon to access to this file)

cjb1975 commented 2 months ago

Same issue for me...

AfonsoFGarcia commented 2 months ago

The polling interval was increased to 15 minutes in #109750 as it was causing #109728. You can see that this is still in place today (https://github.com/home-assistant/core/blob/dev/homeassistant/components/melcloud/__init__.py#L26).

Without updating the integration to lower it, the only solution is to execute an automation to get the status more frequently, which you'll be doing at the risk of triggering the API request limits on MELCloud, which will break the app as well once the limit is reached.

I Use this Automation :

alias: 🔄 Rechargement de l'intégration MELCloud
description: >-
  Recharger l'intégration MELCloud toutes les 5 minutes pour assurer la
  synchronisation de la climatisation.
trigger:
  - platform: time_pattern
    minutes: /5
action:
  - data:
      entry_id: <my_entry_id>
    action: homeassistant.reload_config_entry
mode: single

You can find your integration_entry_id in file :

more /config/.storage/core.config_entries

(I use SSH and Terminal addon to access to this file)

No need to reload, you can do this instead.

alias: Update A/C Status
description: ""
trigger:
  - platform: time_pattern
    minutes: /5
condition: []
action:
  - target:
      entity_id:
        - climate.<unit 1>
        - climate.<unit 2>
        - ...
    data: {}
    action: homeassistant.update_entity
mode: single