-
Notifications
You must be signed in to change notification settings - Fork 18
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
RAS-3M18G3AVG-E Inverter / Restart Integration #201
Comments
The Problem is obviously that the Token is running out and it will be generate a new Token after restarting the Integration: Any Idea how I can assign a task to ha to generate that token eg all 30 minutes and put in "core.config_entries" file? thanks |
What is the expiry date of your sas token? You can check it with Also, duplicate of #197 |
same here.. my ends in 2124 |
|
This occurred at 3am - now I restarted the Integration again and everything works fine again. |
does something happen at 3am that would make integration to restart? also the logs from above looks like it happens more or less every 30 minutes. in the current version there should be some kind of randomness to prevent DoS like behavior. |
Can you please enable debug logs and post the log output when issue happens? To enable logs, please add this to your configuration.yaml logger:
default: warning
logs:
# log level toshiba-ac
toshiba_ac: debug
custom_components.toshiba_ac: debug |
Hi, I activated the debugging Modus and the outcome we can find here: |
do you have some kind of automation that reloads the integration regulary? |
Yes, but that did not help as a workaround and I deactivated it yesterday. |
in the logs its this on, right? |
Yes, it is on in the logs. It is weird nevertheless that a manual restart helps to activate the entities again but via an automation the integration didn't start up at all..... |
I have created #203 that may fix the issue. |
Thanks for merging the Repos. I did the update today and will stay tuned - activated debugging too in the case anything goes south again. That's the great thing with Open Source....:). If I would have the capabilities as developer, as you, I would contribute myself for sure. |
Hi. Just testet it and it seemed to working at least the entities are all there now - but now I get the message when e.g. starting cooling modus or something else: And the debug Log: Any Ideas are welcome |
Hello. I just flushed the pipeline yesterday and it worked. But, unfortunately, the original error with the sas token stays with the new version. After couple of hours the entities are not available any longer and I have to restart my toshiba integration to make it work again. |
Hi, error stays.... :(. I will attach the debug protocol again. Any Idea? |
Other user reported that it is working with the fix. I can see that there is something wrong with your setup as it shouldn't take that long to setup the integration:
The unloading you are doing is definitely hurting your setup, and I can see other integrations are also failing. Is your internet connection stable, many warnings are suggesting you have problem with connectivity? Also, there is nothing regarding the SAS token in the attached log. |
Hi,
I do have a weird issue with this integration. At least once a day I have to restart the Integration because it claims "invalid credentials". So this indicates an authentication error I think:).
Is disturbing and annoying a bit since I'm using automation to control and regulate my ac devices. As soon I restart the integration it's been working again.
Excerpt from the log book:
2024-08-31 12:31:11.957 ERROR (MainThread) [toshiba_ac.device] State reload failed: 2024-08-31 12:31:32.760 ERROR (MainThread) [toshiba_ac.device] State reload failed: 2024-08-31 13:01:11.530 ERROR (MainThread) [toshiba_ac.device] State reload failed: 2024-08-31 13:34:50.603 ERROR (MainThread) [toshiba_ac.device] State reload failed: File "/config/custom_components/toshiba_ac/climate.py", line 197, in async_set_hvac_mode await self._device.set_ac_status(ToshibaAcStatus.ON) File "/usr/local/lib/python3.12/site-packages/toshiba_ac/device/__init__.py", line 269, in set_ac_status File "/usr/local/lib/python3.12/site-packages/toshiba_ac/device/__init__.py", line 259, in send_state_to_ac File "/usr/local/lib/python3.12/site-packages/toshiba_ac/utils/amqp_api.py", line 100, in send_message 2024-08-31 16:01:28.193 ERROR (MainThread) [toshiba_ac.device] State reload failed: 2024-08-31 16:31:37.953 ERROR (MainThread) [toshiba_ac.device] State reload failed: File "/config/custom_components/toshiba_ac/climate.py", line 197, in async_set_hvac_mode await self._device.set_ac_status(ToshibaAcStatus.ON) File "/usr/local/lib/python3.12/site-packages/toshiba_ac/device/__init__.py", line 269, in set_ac_status File "/usr/local/lib/python3.12/site-packages/toshiba_ac/device/__init__.py", line 259, in send_state_to_ac File "/usr/local/lib/python3.12/site-packages/toshiba_ac/utils/amqp_api.py", line 100, in send_message 2024-08-31 16:44:34.929 ERROR (MainThread) [custom_components.toshiba_ac] Unload Toshiba integration 2024-08-31 16:44:35.377 WARNING (MainThread) [custom_components.toshiba_ac] Initial connection failed, trying to get new sas_token... 2024-08-31 17:01:17.277 ERROR (MainThread) [toshiba_ac.device] State reload failed: 2024-08-31 17:31:02.835 ERROR (MainThread) [toshiba_ac.device_manager] Fetching energy consumption failed:
Every hint is very welocme
thanks!
tux1980
The text was updated successfully, but these errors were encountered: