Closed snjoetw closed 1 year ago
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!
bump
When internet is down, restarting AppDaemon should continue to work
The add-on does that, unless you customize it as you did. You added extra (external) packages.
From an add-on perspective, there is not much I can do.
Is it possible to add a flag to the add-on config so that if it's having problem downloading system / python packages then just skip it and continue to let appdaemon to run?
You can do that if you like. Use the init commands to run any command you like, including manually installing packages and allowing them to fail.
https://github.com/hassio-addons/addon-appdaemon/blob/main/appdaemon/DOCS.md#option-init_commands
Some examples:
- "apk update || true"
- "apk add ffmpeg || true"
- "pip install non-existing-package || true"
Problem/Motivation
Yesterday we had a power outage and around the same time our ISP was also having issue. So when the power was restored, we still didn't have internet.
I was expecting Home Assistant and all my automations in AppDaemon (running with this add-on) to resume when the power is restored as most of my IoT devices are local controlled.
Home Assistant did come back up but not Appdaemon add-on due to the following error:
As you can see, it tried to fetch and download the system packages but couldn't and exited in the end.
Is it possible to add a flag to the add-on config so that if it's having problem downloading system / python packages then just skip it and continue to let appdaemon to run?
For my use cause, system/python packages are only used by a small subset of my automations. So having those small subset of automations to fail instead of blocking everything makes more sense.
Expected behavior
When internet is down, restarting AppDaemon should continue to work
Actual behavior
AppDaemon tried to fetch system / python packages and exited in the end due to internet being down.
Steps to reproduce
Proposed changes
Add a flag to the add-on config so that if it's having problem downloading system / python packages then just skip it and continue to let appdaemon to run?
This is useful if system/python packages are only used by a small subset of my automations. Without those packages, only the automations that need them will fail, all other automations should continue to work.