Closed HAjerry closed 3 years ago
@HAjerry Can you please verify whether Home Assistant restarts reliably after you disabled the velux component completely?
The connection issue is already covered by https://github.com/home-assistant/core/issues/34844. In my experience, it does not prevent Home Assistant from starting. Only the velux component would usually fail to initialize under that condition.
Therefore, please make sure there's no other component responsible for your failed shutdown and startup sequence. Do you have any custom components installed? Because the aborted shutdown (SIGKILL sent by systemd) is the reason for the velux component not being able to reconnect to the KLF200 later.
This backtrace showing up in the log may be a reason for people to believe that the velux component might be responsible for totally unrelated problems during startup.
Sorry for late reply. I have tried in the past to disable the velux component which made restart work again. However, I would like to confirm this with some more testing including the work around covered by #34844. I will get back once I have looked more into this.
@mtdcr - I can confirm that the problem only occurs when I am using the Velux component. If I comment out the Velux component, restart from the GUI works perfectly fine. Do you need any additional logs? Just let me know. FYI, I am using the Miele component which is a custom component.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The problem
I am using Velux KLF200 with firmware 0.2.0.0.71.0, already installed on delivery. If I restart the Velux box before starting Home Assistant, everything works fine. I can control the two covers connected to the KLF200. However, if I later try to restart Home Assistant from the GUI (Configuration | Server controls | Restart) then Home Assistant never starts again. Also, the homeassistant.log file is not updated. I have noticed that it DOES work to restart Home Assistant from the CLI:
$ sudo systemctl restart home-assistant@homeassistant.service
. I then get the below error message in homeassistant.log.Environment
Problem-relevant
configuration.yaml
Traceback/Error logs
Additional information
This is probably similar to issue #21946.