-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
Implement a companion integration that publishes sensors and notifications #805
Comments
Thanks for bringing that thread to my attention, the language there (abuse, inject) implies I'm doing something nefarious and I feel the need to defend my methods. I'll post my counter-rant there. The "ghost" entities are something I'm aware of, but haven't had time to fix in light of other issues. People get a degraded experience with the entities this addon creates. They can't be customized and automations that reference them fail at startup because they don't exits until the addon republishes them (usually on a timer). As pointed out it would be better to have a companion integration installed in Home Assistant, I just need to find the time.
binary_sensor:
- platform: rest
resource: http://cebe7a76-hassio-google-drive-backup:8099/getstatus
name: Backups Stale But Better
value_template: "{{ (now() - as_datetime(value_json.Sources.GoogleDrive.latest)) > timedelta(hours=30)}}"
device_class: problem The |
Lets make this the official issue to implement a companion integration in Home Assistant to support the addon. The goals would:
The idea would be to implement this in a way that doesn't break existing user's workflows even if they silently upgrade to a version aware of the companion integration. |
thank you for this information! Your addon is arguably the most important in HA, and glad its getting some friendly banter :) |
Thanks for the great add on Update: @sabeechen it would be nice if the days between backups could be part of the status payload. Now the max age in the value check needs to be hard coded (3 days in my example). Rest sensor new style:
|
For those interested, This command line sensor creates a similar
The result in the dev tools:
Attributes:
|
Hi,
I reported an issue here after using @frenck Spook integration, but turns out it found an issue with this addon.
long story short, you may wish to check out this thread.
thanks!
frenck/spook#18
The text was updated successfully, but these errors were encountered: