BenPru / luxtronik

Luxtronik integration for Home Assistant
MIT License
68 stars 23 forks source link

2023.9.21-Alpha-Core-Preview some issue with HA API #142

Closed ondras76 closed 9 months ago

ondras76 commented 10 months ago

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) "

BenPru commented 9 months ago

sets an invalid code for the entire runtime (all of HA and its integrations) it is the cause of that log entry (and failure).

Okay, thank you very much for this hint. Small adjustment with a big impact... I use the internal translation only for the evu text. And since HA 2023.07.* the translation of attribute names and states is available in core. I now try to replace my internal translation with new state attributes.

BenPru commented 9 months ago

Please try the latest prerelease: 2023.10.20-Alpha

ondras76 commented 9 months ago

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 Source: helpers/update_coordinator.py:172 First occurred: 10:39:52 AM (2 occurrences) Last logged: 10:40:53 AM

/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py:172: RuntimeWarning: coroutine 'LuxtronikCoordinator.write' was never awaited update_callback()"

BenPru commented 9 months ago

2023.10.20-Alpha looks OK!

Great. Thanks for your response. I close this issue now. If the problem still exists feel free to reopen.