Created
March 8, 2022 18:53
-
-
Save bruxy70/cb9f56c672652107ff4a8ce3de0e6630 to your computer and use it in GitHub Desktop.
Home Assistant automation blueprint to send a notification for garbage collection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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