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

Mobilus Integration failed sometimes (Caught exception in on_message: 'public_key') #19

Closed
homeagit opened this issue Nov 17, 2024 · 6 comments
Assignees

Comments

@homeagit
Copy link

homeagit commented Nov 17, 2024

Sometimes the Integraion stops working. Only a restart of Home Assistant or waiting some minutes helps.

Following error messages I found:

image
2.
image
3.
image
4. Logger: mobilus_client.client
Quelle: custom_components/mobilus/coordinator.py:59
Integration: mobilus (Dokumentation, Probleme)
Erstmals aufgetreten: 17:19:48 (1 Vorkommnisse)
Zuletzt protokolliert: 17:19:48

Failed to authenticate with the gateway host
5. Logger: custom_components.mobilus.coordinator
Quelle: helpers/update_coordinator.py:414
Integration: mobilus (Dokumentation, Probleme)
Erstmals aufgetreten: 17:19:48 (1 Vorkommnisse)
Zuletzt protokolliert: 17:19:48

Error fetching mobilus_coordinator data:

@zpieslak
Copy link
Owner

zpieslak commented Nov 17, 2024

@homeagit Thank you for your detailed report. I can confirm that I can reproduce issue 2 "Caught exception in on_message: 'public_key'". Let me see how this could be fixed. I will update this thread.

Regarding the unavailability of the shutters, it should be up again after 10 minutes, as this the interval when state is polled again. Reference

Regarding the first message: Detected that integration 'mobilus' uses async_config_entry_first_refresh, which is only supported for coordinators with a config entry and will stop working in Home Assistant 2025.11. It is deprecation warning and should not make any issues, however I will fix it too in separate task.

@zpieslak
Copy link
Owner

@homeagit Please check the main branch and let me know if it works for you. I belive the issue should be solved.

@homeagit
Copy link
Author

homeagit commented Nov 22, 2024

@zpieslak: after installing the latest version I tried to open all shutters. the result was the same. public_key errors as shown above

@zpieslak
Copy link
Owner

zpieslak commented Nov 22, 2024

@homeagit Apologies I wasn't clear enough. The latest version was in main git branch, so if you are using hacs it might not work. However I created a new release (v0.2.1), so it should be good now. Can you try it? Also what home assistant version are you using? I cannot reproduce that deprecation warning.

@homeagit
Copy link
Author

@zpieslak: I used the new release (v0.2.1) and now it works without any errors and the integration is still available after moving the shutters. Again a big Thank You, great work!
The deprecation warning was already done before the new release, I had overlooked that

@zpieslak
Copy link
Owner

zpieslak commented Nov 22, 2024

Great! Thanks for testing, I will close the issue then.

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

No branches or pull requests

2 participants