jeatheak / Mitsubishi-WF-RAC-Integration

WF-RAC homeassistant integration
MIT License
101 stars 19 forks source link

Can't connect with airco anymore #31

Closed Legendhidde closed 1 year ago

Legendhidde commented 1 year ago

Hi there, I'm completely new to everything so I don't know what I should do. Suddenly one of my aircons using this integration just gave me "Unavailable" on a random day. When I try to add it again it gives me this error message:

HTTPConnectionPool(host='192.168.50.18', port=51443): Max retries exceeded with url: /beaver/command/getDeviceInfo (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f503dc30cd0>: Failed to establish a new connection: [Errno 111] Connection refused'))

I am using version 0.2.

Legendhidde commented 1 year ago

Can't seem to add a bug label, apologies

Legendhidde commented 1 year ago

home-assistant_mitsubishi-wf-rac_2022-12-17T10-48-43.872Z.log Here is one of the log files.

Legendhidde commented 1 year ago

Forgot to mention that I’m already on 0.2.0, so the fix had no effect.

Legendhidde commented 1 year ago

Ah I’ve read the other issues and realised I’m not alone with this and that you don’t have a lot of time to look into it. Apologies, I’d love to help where possible because it’s getting impossible to trust my automations. Could try contacting someone from Mitsubishi to ask what the error message means.

Legendhidde commented 1 year ago

Even a reset hasn’t fixed this issue, like it has for other people. I even set the airco to only be controlled locally, hoping that this would fix it. Is this also what other people have set? I did have it set to out-of-house control, might try completely deleting the app once.

Legendhidde commented 1 year ago

It seems to always happen when trying to update the airco values.

Error: something went wrong updating the airco [Airco Office] values Error: something went wrong updating the airco [Airco Living Room] values Could not send airco data

Maybe the update calls need a time out too?

jeatheak commented 1 year ago

Ah I’ve read the other issues and realised I’m not alone with this and that you don’t have a lot of time to look into it. Apologies, I’d love to help where possible because it’s getting impossible to trust my automations. Could try contacting someone from Mitsubishi to ask what the error message means.

Hi, apologies for my late reply, but contacting Mitsubishi will not help and be a good option because we reverse engineered the app and use the api in a way we "think" is a good practice. Furthermore is the error message generated by the code from library used.

jeatheak commented 1 year ago

Even a reset hasn’t fixed this issue, like it has for other people. I even set the airco to only be controlled locally, hoping that this would fix it. Is this also what other people have set? I did have it set to out-of-house control, might try completely deleting the app once.

It should also work in not local mode. there is no difference in that connection there.

jeatheak commented 1 year ago

It seems to always happen when trying to update the airco values.

Error: something went wrong updating the airco [Airco Office] values Error: something went wrong updating the airco [Airco Living Room] values Could not send airco data

Maybe the update calls need a time out too?

It looks like the connection to the airco failed. what do you see in the app if you go to the airco->settings->users (at the bottom) I think. I cannot connect to the app at the moment because I'm not at home.

Legendhidde commented 1 year ago

It seems to always happen when trying to update the airco values. Error: something went wrong updating the airco [Airco Office] values Error: something went wrong updating the airco [Airco Living Room] values Could not send airco data Maybe the update calls need a time out too?

It looks like the connection to the airco failed. what do you see in the app if you go to the airco->settings->users (at the bottom) I think. I cannot connect to the app at the moment because I'm not at home.

Should I check that setting during one of the connection problems? Right now it’s all working again and it says “Number of Smartphones: 2” but I don’t quite know how to reduce that number. In home assistant it shows as having “2 accounts”

During one of the errno 111 sessions I don’t seem to be able to connect via the Mitsubishi app either, it doesn’t show any information for the affected unit.

No worries about the late reply by the way, I’m already very grateful you can help me.

jeatheak commented 1 year ago

No you it is not necessary to reduce that number. The maximum connected "smart phones" are 4 so if it would display 4 than that could explain the error. but that is not the case.

But the airco's are connected at the moment?

You can try to update to the "main" branch version instead of 2.0.0. I added some small fixes on that one. (press the dots in the right upper corner in hacs->redownload->select main from dropdown->download restart home assistant.

Legendhidde commented 1 year ago

The airco’s are indeed connected right now, I’ve updated to the main branch and restarted, I’ll keep you updated on whether I see an error, happens once or twice a day.

Legendhidde commented 1 year ago

After switching to the main branch, so far so good! Running 8 hours so far without any more issues, empty log files 👍 Will keep you updated if anything pops up

Legendhidde commented 1 year ago

Shouldn’t have jinxed it, error happened once more

Did you connect yours with WPS? I would like to very accurately follow the setup steps of people for whom the integration works.

Do you have any automations or anything with the aircon?

Legendhidde commented 1 year ago

Turned off “Polling for updates” in the integration settings for both units on top of switching to the main branch and I haven’t had this error in 2 days now.

Legendhidde commented 1 year ago

A week later, polling for updates off and running main branch and it’s been flawless. No problems anymore.