-
Notifications
You must be signed in to change notification settings - Fork 12
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
Openhasp does not work after HA restart. #133
Comments
I've now even created an automation to reload openhasp 30 seconds after HA start. And it works. Looking at the error log above I have a suspission that openhasp intrgration tries to communicate to the MQTT broker before the connection to it is established by HA? And then it fails and does not try anymore. Btw, this might also explain why it works with the debug log on - it takes longer to load the openhasp integration and the MQTT integration is loaded by that time. |
Same problem here. Can you share an openhasp reload automation example? |
You'll get the device id when selecting a hasp device from GUI editor |
Thanks, I'll include it in the automations. |
Did an update a few days ago everything was still working. Lost power today and my screens aren't working. Thanks for providing a solution. EDIT: I guess it wasn't my issue. It did not work for me. I did see this in the DEBUG logs. WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration openhasp with title: wt32 and entry_id: 7a3ad312332sd3b58f42da3bfafef125f, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue. |
#137 fixed the startup issue for me. No need to reload the config_entry anymore. Nevertheless it still throws an error as mentioned by @adorobis
|
Released 0.7.4 please test |
I've just rebooted HA and the integration seems to work ok now. Hope this will stay like that :) Many thanks! |
great , thanks |
Seems the issue is back (or similar). I'm now on HA 2024.9.0, openhasp 0.7.5 and see the following error after HA restart:
This looks like exactly the same error message as when I have raised it in July. |
If you have the possibility to test something, it requires the replacement of a file in the installation to give it a test: If you can replace the |
Yes, it did the trick. No error message anymore and all works after HA restart. Many thanks! Is it going to be part of next release? |
So the 0.7.6 version is here and all works great again. Many thanks! |
Version of the custom_component
0.7.3
Configuration
Describe the bug
After restarting HA the Openhasp integration does not load configured entities. Example error message in the log below, there are multiple ones like that for each entity of the openhasp device. Interestingly after enabling debug log and restarting HA all works ok, no errors in the log. After disabling the debug log and restarting again is like below. Reloading the integration in the running HA makes the integration work again ok. Very confusing.
Debug log
The text was updated successfully, but these errors were encountered: