-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Automatically create Push-Notifications for favorited Stores #106
Comments
indeed, good idea. I searched a bit, and found this anwser to a simila question:
I did some playaround, and this automation might be a good start: alias: TooGoodToGo Food Available
description: "Push a notification as soon as food is available"
trigger:
- platform: event
event_type: state_changed
event_data:
domain: sensor
condition:
- condition: template
value_template: "{{ trigger.event.data.entity_id.startswith('sensor.toogoodtogo_')}}"
action:
- service: notify.max
data: {}
data_template:
message: >-
{{ trigger.event.data.old_state.name }} has changed from {{
trigger.event.data.old_state.state }} to {{
trigger.event.data.new_state.state }}
mode: single need some filtering for like With all that developing i just rate limited myself again, so i cant test further 😉 |
Hey i just did this in Node RED with Notification to my Phone (with the Home Assistant app). My Notifications feature the Picture of the Store, Portion and a Link to the App (if installed on the phone and set to open with the "share" link). The notification is in german but you can easily adapt it by changing the template Node.
|
Hello Everyone,
i am fiddling around with this plugin and basically everything works well.
I am wondering if it is possible to automate creating a push notification automation for all favorited stores.
Right now I have to update the automation for the notification manually every time I add a new favorite store in the tgtg app.
It is possible to read all created sensors from the favorites:
Is it somehow possible to feed this directly into the notifications automation so I just need to add the store to the favorites inside the tgtg app and automatically receive notifications for it?
Thanks
The text was updated successfully, but these errors were encountered: