-
Notifications
You must be signed in to change notification settings - Fork 6
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
Addon is checking every hour, fixed time or with a trigger possible? #46
Comments
Yeah, I think we need to change how this works. It is a little tricky. Really I want the addon to run, backup the snapshots and stop. Then your automation would just start the backup after the snapshot is created. The problem is, you can trigger a snapshot but you don't know when it is ready. I can see three ways to handle this.
I think option three is best, but that requires a change in HASS.io. Then option two and I think option one is worst :) Either way, all of these options would be more efficient than the current approach of checking every X minutes all day long. |
@d0ugal Thanks for your quick reply and off course for creating this add-on. I understand what you're saying. What do you recommend for time to check? And did you noticed any performance issues? |
Do you mean how long should it check between uploads? I use hourly. If there is nothing to upload it is very quick and finishes fast
I have not noticed any but I run HA on a fairly powerful server (not a pi). |
I opened a HASS.io issue. Maybe we can look into adding the event there which would be nice. home-assistant/supervisor#839 |
Here's a solution I've been using. I have |
@dawiyo That works, the downside is that the addon is still running and waiting to backup - wasting a small bit of resources. |
I guess I could do |
Yup, that would do it! I think adding an option to stop the add on after uploading would be a decent solution. |
Now my add-on is checking every hour. But would it be a possible to set a trigger or on a fixed time?
I make every night my backup, so for e.g. would be great to execute my upload a hour later.
The text was updated successfully, but these errors were encountered: