Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Integration to be compatible after Firmware Update to 4.x #72

Closed
h4de5 opened this issue Jul 18, 2022 · 34 comments · Fixed by #75
Closed

Update Integration to be compatible after Firmware Update to 4.x #72

h4de5 opened this issue Jul 18, 2022 · 34 comments · Fixed by #75
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@h4de5
Copy link
Owner

h4de5 commented Jul 18, 2022

there have been several issues on that topic: #68 #69 #71 - to easier manage the discussion and a possible solution I will close those issues in favor of this one.

Toshiba announced a major change in their app and possibly also their backend

screenshot taken from version 3.2 of toshiba home AC

They claim that the end date of the "legacy" version (<=3.2) will no longer work after 14th of July. At least for my device (RAS-18PKVSG-E) this is not the case - I did not do the firmware nor the app update, and it keeps working - at least for now.

I have had a look at the new version of the app (see: #68 (comment)) and currently I am not able to reverse engineer it. Unless I can find a way to do this, or there is an update of the underlying python package (https://github.com/KaSroka/Toshiba-AC-control) which is used to communicate with the server behind the AC unit, we may be out of luck.

This means if you have done the firmware update, you may no longer be able to control your AC unit via Home-Assistant. And I cannot do much about it. Some users claim, that a HA restart combined with a cold start of the AC unit, re-enables access, but this may depend on the AC unit itself.

If you are affected by that issue, you can simple hit the subscribe button on the right to stay informed. Please leave the comments only for possible solutions.

Best regards

@h4de5 h4de5 added the documentation Improvements or additions to documentation label Jul 18, 2022
@h4de5 h4de5 self-assigned this Jul 18, 2022
This was referenced Jul 18, 2022
@h4de5 h4de5 pinned this issue Jul 18, 2022
@tomitomas
Copy link

on my side I just had a new issue :
Fatal error : Cannot connect to host toshibamobileservice.azurewebsites.net:443 ssl:default [Name or service not known]

so it looks like a lot of changes have been performed by Toshiba ... :(

@glowaa
Copy link

glowaa commented Jul 18, 2022

The hostname toshibamobileservice.azurewebsites.net has no longer DNS record.

Cannot connect to host toshibamobileservice.azurewebsites.net:443 ssl:default [Name does not resolve]

After I manualy set IP 20.86.215.67 to toshibamobileservice.azurewebsites.net is another error.

Cannot connect to host toshibamobileservice.azurewebsites.net:443 ssl:True [SSLCertVerificationError: (1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'toshibamobileservice.azurewebsites.net'. (_ssl.c:997)")]

@h4de5
Copy link
Owner Author

h4de5 commented Jul 18, 2022

on my side I just had a new issue : Fatal error : Cannot connect to host toshibamobileservice.azurewebsites.net:443 ssl:default [Name or service not known]

so it looks like a lot of changes have been performed by Toshiba ... :(

great.. in this case, the integration is definitely broken now - I just tested mine again and it does no longer work as well. last connection was done today at midnight.

tested it again, (this time !!!while beeing online!!!) and it still works somehow. both the old app and my HA integration.

@tomitomas
Copy link

The hostname toshibamobileservice.azurewebsites.net has no longer DNS record.

I'm not sure you can check the DNS.
Azure Cloud is used here, so I don't think a DNS entry is created for each project, and the redirection is done internaly by Azure

@glowaa
Copy link

glowaa commented Jul 18, 2022

I have snnifed new DNS name address - mobileapi.toshibahomeaccontrols.com but I dont know where it replace in toshiba_ac files.

@tomitomas
Copy link

https://mobileapi.toshibahomeaccontrols.com

I just gave a try, and it looks like it's working for me !

@glowaa
Copy link

glowaa commented Jul 18, 2022

where You change this URL?

@tomitomas
Copy link

I'm using it by my side, not within HA

@dario-brombal
Copy link

I have 4 Haori units, everything updated (adapter fw 2.0, app version 3.4) and still working in HA (for now...).

If not able to disassemble the code you may try sniffing packets; probably you should put something between the app and their servers to decode messages (something like a Man-in-the-middle attack, self certifying your "evil" gateway, and replying request to toshiba servers)...

just my 2 cents

Dario

@h4de5
Copy link
Owner Author

h4de5 commented Jul 18, 2022

@stehuz
Copy link

stehuz commented Jul 18, 2022

I'm afraid this will not help, AFAIK previously it seems to be based on iot hub but now it's based on azure mobile apps. I did ssl interception to see traffic if you are interested I can export it, but what I saw there are only POSTs send to that URL where I've been not so able to understand mechanism as request body contains "request" as well as "respone" and real response is only acknowledgement. I tried to click all options in my environment I have only one Estia heat pump. But for example I dont know how data are colected for power consumption as I didn't capture any activity if I clicked on it. It seams to me I'm missing something anyway

@KaSroka
Copy link
Contributor

KaSroka commented Jul 18, 2022

@h4de5 it was more than that. For merit B features there seems to be a new value of 1 reported but there is nothing about it in disassembled sources of the 3.4.0 APK (I've managed to unpack it using this on blob file and then modified for python3 version of this to unpack dll, after those steps you can proceed with ILSpy as normal) It should be fixed in v0.3.0

h4de5 added a commit that referenced this issue Jul 19, 2022
@h4de5
Copy link
Owner Author

h4de5 commented Jul 19, 2022

see latest beta release: https://github.com/h4de5/home-assistant-toshiba_ac/releases

@gmarongiu71
Copy link

gmarongiu71 commented Jul 19, 2022

Today I can't login, try also with new version 2022.7.0
Sorhai edge fw 4.0

@zjonesz
Copy link

zjonesz commented Jul 19, 2022

see latest beta release: https://github.com/h4de5/home-assistant-toshiba_ac/releases

Getting error
" This integration does not support configuration via the UI. If you followed this link from the Home Assistant website, make sure you run the latest version of Home Assistant."

@tetienne
Copy link
Contributor

see latest beta release: https://github.com/h4de5/home-assistant-toshiba_ac/releases

Hi @h4de5 you didn't include the latest version of the lib on this release.

@glowaa
Copy link

glowaa commented Jul 19, 2022

I removed old version and make clean install 2022.7.0-beta with HACS
Error with old URL still occur.
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host toshibamobileservice.azurewebsites.net:443 ssl:default [Name does not resolve]

@h4de5
Copy link
Owner Author

h4de5 commented Jul 19, 2022

see latest beta release: https://github.com/h4de5/home-assistant-toshiba_ac/releases

Getting error " This integration does not support configuration via the UI. If you followed this link from the Home Assistant website, make sure you run the latest version of Home Assistant."

i have seen this report before, not sure if it was you. there should be a normal UI configuration available:
image
image

see latest beta release: https://github.com/h4de5/home-assistant-toshiba_ac/releases

Hi @h4de5 you didn't include the latest version of the lib on this release.

I just checked - the manifest says: "requirements": ["toshiba-ac==0.3.0"] which is referring to the python package: https://pypi.org/project/toshiba-ac

and there the new url is also included: BASE_URL = "https://mobileapi.toshibahomeaccontrols.com"

@KaSroka
Copy link
Contributor

KaSroka commented Jul 19, 2022

@h4de5 but the 2022.7.0-beta is released from master which does not have manifest changes. Also my lib was restructured a bit so some alignment is probably needed.

@tetienne
Copy link
Contributor

@KaSroka Thx for your quick fix. It works perfectly with HA: #75

@tetienne
Copy link
Contributor

If you want to try my fix, download the zip, extract the toshiba_ac folder and move it to your custom_components folder.

@Michael0yodi
Copy link

If you want to try my fix, download the zip, extract the toshiba_ac folder and move it to your custom_components folder.

Works great!

@gmarongiu71
Copy link

If you want to try my fix, download the zip, extract the toshiba_ac folder and move it to your custom_components folder.

For me now work... thanks

@glowaa
Copy link

glowaa commented Jul 19, 2022

If you want to try my fix, download the zip, extract the toshiba_ac folder and move it to your custom_components folder.

Its working, thanks.

@crolaser
Copy link

work like charm .thanks

@h4de5
Copy link
Owner Author

h4de5 commented Jul 19, 2022

@h4de5 but the 2022.7.0-beta is released from master which does not have manifest changes. Also my lib was restructured a bit so some alignment is probably needed.

i see. only the release file zip uses correct branch. but not the source. does this mean the HACS integration always uses the source.tar.gz?

i need to have another look on the release stuff tomorrow.

@tetienne
Copy link
Contributor

tetienne commented Jul 19, 2022

@h4de5 See https://hacs.xyz/docs/publish/start#versions You can remove the version field.

See my suggestion to clean your release process: #76

@h4de5 h4de5 closed this as completed in #75 Jul 19, 2022
@h4de5 h4de5 reopened this Jul 19, 2022
@h4de5
Copy link
Owner Author

h4de5 commented Jul 19, 2022

There is a new release including the updates fom @tetienne and @KaSroka.
I leave the issue open for now, until some positive feedback :)

@dario-brombal
Copy link

Here everything is back working with 2022.7.1. This morning wasn't.

The only thing I noticed Is AC telling "inactive" while it's working when temperature Is as set point, not working like this before

@h4de5
Copy link
Owner Author

h4de5 commented Jul 19, 2022

Here everything is back working with 2022.7.1. This morning wasn't.

The only thing I noticed Is AC telling "inactive" while it's working when temperature Is as set point, not working like this before

thats right. this is something that was not release before. I tested some stuff, it should return idle state, so you can check in automations for this. as the AC unit does not go into idle mode, this does not reflect reality. Ill create a new issue for this.

@wltng
Copy link

wltng commented Jul 20, 2022

Thanks all for fixing this issue so quickly!
I just ordered a second toshiba AC unit and was afraid I wouldn't be able to control it with HA.
It all seems fine now (RAS-B13J2KVSG, Kazumi)!

@h4de5
Copy link
Owner Author

h4de5 commented Jul 24, 2022

after a HA restart my old installation stopped working as well. so i upgraded everything and it seems to be all good now. thanks for all your support

@h4de5 h4de5 closed this as completed Jul 24, 2022
@h4de5 h4de5 mentioned this issue Jul 24, 2022
@peterblom23
Copy link

Amazing guys!!!! Daily user of the integration you created! Where can I buy you a beer?

@h4de5 h4de5 changed the title Integration no longer compatible after Firmware Update to 4.x Update Integration to be compatible after Firmware Update to 4.x Jul 24, 2022
@h4de5
Copy link
Owner Author

h4de5 commented Jul 24, 2022

Amazing guys!!!! Daily user of the integration you created! Where can I buy you a beer?

I have forward all thank you notes to those guys: @KaSroka and @tetienne
(I merely clicked on merge ;) )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.