-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
2023.9.21-Alpha-Core-Preview some issue with HA API #142
Comments
HA Cloud and the log entries have nothing to do with the Luxtronik integration. |
I don't know, but it happend. I was try 2x, Always after Luxtronik update. Also with older ver. 2023.9.11. I just ask NabuCasa support, I'll let you know. |
@BenPru please can you look on my log file. I was deleted the Luxtronik integration, last Core update ans all working fine. So I was download againg Luxtronik via HACS and when I connect the HUB the cloud is gone. It's realy something with Luxtronik, after this error is cloud menu off, when I deleted Luxtronik HUB and restart is all good. In the LOG you can see when I add the HUB. On the first line can see the Error Luxtronik int. I was also attach the full log. "Home Assistant Core |
You get only template errors. Please read the release notes. Some keys have changed. |
hi, I was try meke on my second machine rpi, make clean HA instalation with just Luxtronik and the problem is the same with cloud. |
I had a similar issue which caused the nabu Casa cloud to malfunction: home-assistant/core#100564 I disabled the integration for a while since I assumed it was something unique to my setup. Nabu Casa cloud seems to be stable for now, but my Netatmo integration fails to load when Luxtronik2 is enabled. This is consistent with my earlier experience. Could we keep this issue open to see if there are more users with the same problem and if we have something in common which is could cause this issue? |
On clean instalation with only Luxtronik, without connected cloud I see the internal HA weather forecast Meteorologisk institutt can't connect. |
I have a WZSV 62 K3M which is identified as MSW2-6S in the software. @BenPru what kind of heatpump do you have? @BenPru if you want, I can setup a development instance for you and give you access for testing. This offer extends beyond this specific issue. |
My heat pump is, Alpha Innotec LWDW 9, with luxtronik regulator. |
You use the states object direkt: 'states.*' - e.g. states.sensor.luxtronik2_outdoor_temperature.state. In your log file I have found this error: The socket connection to the heatpump is not possible. Is the IP and Port correct in the config? |
@BenPru thank you for your comment, propably you right, but like I said today. I was try new instaltion on my second machine, just clean Haos and Luxtronik, the issue is the same. When I connect the Luxtronik hub something happend and cloud can't connect. Also if I have cloud off, some integrations like a internal Meteo.. forecast can't connect. Thank you for your help. |
If the integration can not connect to the heatpump on the network layer an exception is thrown. It is possible that this exception has an impact for ha and other integrations. In older ha versions this was a problem. But normally ha should handle integration errors. Perhaps this is a new problem in 2023.9.2 and higher. |
Novelan LAD 7 with V2.88.1 (V2.88.3 available)
Sorry, I don't have the time to debug remote. |
.. |
Clean install with only installed but not configured luxtronik integration? |
No any errors without Luxtronik. |
If an integration is not configured HA should not load and use this integration. |
|
I don't have any problem when the integration not configured, the problem is only when IS configured. |
Same problem here |
Any news regarding a functional version for HA 2023.10? I tested both alpha version and main brunch. Installation of the integration is no problem. If I want to configure the heatpump (Alpha innotec SWCV) I got a timeout, than ha restarts and nothing happened. Heating season is before and I want to track my energy. Thanks! |
No, I have no news. But thanks for your input. I try to reconf my test env. |
As home assistant is restarting immediately after configuration I will try to catch logs tomorrow. |
This is the output from homeassistant.log while I want to configure the luxtronik host.
The problem is, as soon as I send the IP and Port, home assistant closing its connection. Hangs up for 5 minutes and restart. |
Please vote this comment: |
Please try 2023.10.9-Alpha-Core-Preview |
Sadly same behavior for me. |
Please vote this comment: |
Now I'm totally confused...
Can you provide a current log as file attachment? |
Here is my latest homeassistant.log |
Please, everbody who is involved with this issue, please check what you don't have an old yaml config with luxtronik2 sensors. If so please disable or delete the regarding yaml config lines. Please vote this comment: |
I just removed all config lines regarding luxtronik2 sensor. Same behavior. Can't configure the integration. |
I GOT IT WORKING!! Guys, please check your web server from your heat pump. My hangs up so I can't login remotely: Restart your heat pump or re-enable DHCP in settings. After the restart, I can setup the integration without any problems! A big shout to @BenPru, sorry for the confusion but a big thanks for your support!!! |
what web server you mean? |
The integrated web server in your heat pump. If you open the pi address your heat pump in any browser, you can also control your heat pump. My Webserver hangs up. If you see just a loading screen without a field to enter pin, your Webserver hangs up, too. So I restarted my heat pump. After restart, all is working now. |
Yes, I have the same about two years ago. After firmware upgrade the network config could be wrong. It is known by AIT... The Webserver is not very stable and since x.88.x it is more unstable. If you connect to the websocket and make some more requests, it crashes very fast. I will create a new version with own error handling in the config flow. |
I think I can produce it or something like this. If I use Port 80 for the connection, the connection seems to be valid but the returned data responses in the length calculation a very high length. In the data processing the loop runs very, very long and ha run in a timeout. I add a max data length or a timeout. But this is in the code of the underlying Bouni\Luxtronik module. |
Hey @BenPru Version 2023.10.9 is working for me. Version 2023.10.10 can't load the integration and home assistant is restarting directly after start. |
I have changed some params in the main branch to test:
Please test the main branch and give feedback. |
Please try 2023.10.11-Beta and check that all is fixed finally. |
Sadly no: Errors during setup. But Home Assistant is starting normally. Reloading Integration doesn't fix. |
v2023.10.12-beta load the integration but two devices can't be setup. |
|
@BenPru "Log details (ERROR) [546959756352] Error handling message: Unknown error (unknown_error) rpi from 10.0.0.130 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36) |
Please try the new timeout config values. |
Can you tell me how much and direction. |
@ondras76 Please test different timeouts and package lengths for your case: At the moment we have no stable release for HA>=2023.9.*. |
Took a quick look at the code, because of several reports of this now.
|
Okay, thank you very much for this hint. Small adjustment with a big impact... |
Please try the latest prerelease: 2023.10.20-Alpha |
2023.10.20-Alpha looks OK! No problem for first 15min. Thank you so much for solving this problem. You made my day! This only one log issue, I don't know what that mean, but cloud working again. "Logger: py.warnings /usr/src/homeassistant/homeassistant/helpers/update_coordinator.py:172: RuntimeWarning: coroutine 'LuxtronikCoordinator.write' was never awaited update_callback()" |
Great. Thanks for your response. |
I was updatet HA Core to 2023.9.2, all working fine except Luxtronik. So I was update Luxtronik to version 2023.9.21-Alpha-Core-Preview.
Everything looks OK just menu HA Cloud loading and loading ... and doesn't work. In log can see some problem with API. I don't know if is the problem, but is only issue in log file.
"Logger: homeassistant.components.websocket_api.http.connection
Source: components/cloud/google_config.py:153
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 12:30:48 PM (8 occurrences)
Last logged: 12:40:08 PM
[139884542836160] Error handling message: Unknown error (unknown_error) Ondrej from 10.0.0.130 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36)
[139883500892096] Error handling message: Unknown error (unknown_error) Ondrej from 10.0.0.130 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 26, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/cloud/http_api.py", line 357, in websocket_cloud_status
websocket_api.result_message(msg["id"], await _account_data(hass, cloud))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/cloud/http_api.py", line 525, in _account_data
google_config = await client.get_google_config()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/cloud/client.py", line 133, in get_google_config
await google_conf.async_initialize()
File "/usr/src/homeassistant/homeassistant/components/cloud/google_config.py", line 212, in async_initialize
await super().async_initialize()
File "/usr/src/homeassistant/homeassistant/components/google_assistant/helpers.py", line 106, in async_initialize
if not self.enabled:
^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/cloud/google_config.py", line 153, in enabled
and not self._cloud.subscription_expired
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/hass_nabucasa/init.py", line 133, in subscription_expired
return utcnow() > self.expiration_date + timedelta(days=7)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/hass_nabucasa/init.py", line 139, in expiration_date
raise ValueError(
ValueError: Invalid expiration date (2024-08-21)
"
The text was updated successfully, but these errors were encountered: