Skip to content

Instantly share code, notes, and snippets.

@bruxy70
Created March 8, 2022 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bruxy70/cb9f56c672652107ff4a8ce3de0e6630 to your computer and use it in GitHub Desktop.
Save bruxy70/cb9f56c672652107ff4a8ce3de0e6630 to your computer and use it in GitHub Desktop.
Home Assistant automation blueprint to send a notification for garbage collection
blueprint:
name: Send notification for garbage collection
description: Check the garbage_collection schedule every day, and send the notification if the collection is tomorrow
domain: automation
input:
notify_time:
name: Notification time
description: Send the notification at this time, a day before teh collection date
selector:
time:
garbage_collection_entity:
name: garbage_collection integration
description: Select the garbage collection device
selector:
entity:
integration: garbage_collection
notification_device:
name: Notification service
description: Select the device to send notification to
selector:
device:
integration: mobile_app
notification_text:
name: Message
description: Text of the notification
trigger:
- platform: time
at: !input notify_time
condition:
- condition: state
entity_id: !input garbage_collection_entity
state: '1'
attribute: days
action:
- device_id: !input notification_device
domain: mobile_app
type: notify
message: !input notification_text
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment