Replies: 5 comments
|
Hi @ericl780, what you're seeing is a known limitation worth explaining. The MELCloud API doesn't push state changes to us, so the integration has to poll for them. We deliberately keep that to once every 60 seconds to avoid hammering Mitsubishi's servers with requests. If the integration were too aggressive, they could rate-limit or block it entirely, which would affect all users. As part of that, before sending a command, the integration checks whether the device is already in the requested state and skips the API call if so. If HA's view is stale and it still thinks the unit is on because it hasn't polled since your iPhone change, it skips the command entirely. If you make a change in the MELCloud app, waiting around 60 seconds before trying to control the same thing from HA will let the poll fire first and sort it out. Fixing this properly would need real-time push updates from Mitsubishi's servers, which is a significant architectural change and not something on the near-term roadmap. Out of interest, is there a reason you use the MELCloud app rather than the HA companion app on your phone? Just curious whether there's a specific workflow we should think about. |
|
Today I'm migrating my Fibaro HC3 to HA, but all my heating/AC management is handled on the HC3, which controls HA via API. So I check whether everything is working properly by looking at the MELCloud app on my iPhone, and I readjust to run the tests. Of course, use of the MELCloud app will be dropped as soon as possible. Thanks very much for your reply. |
|
Hello, My HC3 QA (sorry comment in French, But I think you will understand -- Correspondance pièce -> entity_id climate de Home Assistant -- Mode utilisé pour un simple "on" (sans précision chaud/froid) -- Correspondance commande "humaine" -> mode HVAC de HA -- Correspondance puissance "humaine" -> fan_mode de HA function QuickApp:onInit() end -- Fonction interne : appel de service HA avec callback optionnel function QuickApp:_callService(service, payload, label, onDone) -- Commande principale : mode (on/off/chaud/froid/auto) + température
|
|
Hi @ericl780, thanks for the detailed report and the code — very helpful. The key clue is that the MELCloud app also stops responding. That rules out anything specific to the HA integration and points to something happening at the MELCloud server or device level that we can't see from our side. The integration has built-in protections to avoid overloading the MELCloud API — request pacing, rate limiting, and deduplication to skip redundant calls. These are designed to keep us in good standing with Mitsubishi's servers. Those protections are still active when HC3 drives HA via the REST API, but they can't reduce the call volume below what HC3 is generating. Each Once your migration is complete and HC3 is out of the picture, this will likely go away — HA's own automations would consolidate those into fewer calls and the volume stays well within normal limits. If you want to see exactly what the integration is sending during a freeze, enabling debug logging would show the API calls and timing from our side: logger:
logs:
custom_components.melcloudhome: debug |
|
I'm letting some time pass in order to check everything and get back to you with information if there's a problem. |
Uh oh!
There was an error while loading. Please reload this page.
First, thanks for your work on this — it works great. I just wanted to flag a problem: when I change a setting in MELCloud from my iPhone, Home Assistant doesn't sync, which breaks some of my scripts. For instance, if I turn the AC off from the iPhone and then try to restart it from HA, HA still thinks the unit is on and won't turn it on, since it never registered that I'd switched it off from the iPhone.
All reactions