ha-mila icon indicating copy to clipboard operation
ha-mila copied to clipboard

Issues after Update to OS 10.3

Open srosen opened this issue 1 year ago • 5 comments

Hi, I updated Home Assistant to the latest version: 2023.6.3 (OS 10.3). When I did this, the Mila Integration seemed to have broken. I have tried clearing out the integration and I pulled the latest version from the repo and it still gives this error.

Thank you for your help. IMG_0014 IMG_0015

srosen avatar Jul 03 '23 20:07 srosen

I'm getting the same error showing on the Mila integration. My home assistant logs show an "Invalid Query" error:

Config entry '[email protected]' for mila integration not ready yet: Error communicating with API: Invalid query; Retrying in background

omar-merhebi avatar Aug 01 '23 02:08 omar-merhebi

@srosen any chance one or more of your rooms are configured as a Music Studio (Mila's new room type as of update 1.13)? I think this might the cause of the issue.

omar-merhebi avatar Aug 19 '23 21:08 omar-merhebi

I have the same issue. No music studio :-)

blue-hound avatar Sep 03 '23 16:09 blue-hound

After trying you your gist and trying to access api.milacares.com/mms, it appears the response to the get_devices_info() call is a 502 Bad Gateway. If I paste that URL into a browser I get the same error.

This is probably not a Home Assistant issue but a change in the API or just network errors on their end.

blue-hound avatar Sep 03 '23 17:09 blue-hound

This is probably not a Home Assistant issue but a change in the API or just network errors on their end.

Interesting, because when I tried accessing the API using the milacares-sdk, which is what the HA integration uses, i was getting that error and it was specifically saying that the Music Studio room does not exist in the sdk's schema. After patching the sdk, it seemed to work fine when using just the sdk in a python script.

The integration hasn't been updated to use the new version of the sdk though I believe.

omar-merhebi avatar Sep 03 '23 17:09 omar-merhebi