Last active
March 7, 2024 23:08
-
-
Save majacobs/3b8cf922f9151b0f98be371400580c7b to your computer and use it in GitHub Desktop.
Nag Blueprint
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: Nag | |
description: Sends nagging messages on a schedule | |
domain: automation | |
input: | |
datetime: | |
name: Datetime | |
description: Input to monitor | |
selector: | |
entity: | |
domain: input_datetime | |
frequency: | |
name: Frequency | |
description: Time between nagging messages | |
selector: | |
number: | |
min: 1 | |
max: 1440 | |
unit_of_measurement: minutes | |
message: | |
name: Message | |
description: Message to be sent | |
selector: | |
text: | |
variables: | |
datetime: !input datetime | |
frequency: !input frequency | |
trigger: | |
- platform: time | |
at: !input datetime | |
action: | |
- service: notify.matrix | |
data_template: | |
message: !input message | |
- service: input_datetime.set_datetime | |
target: | |
entity_id: !input datetime | |
data: | |
timestamp: "{{ state_attr(datetime.entity_id, 'timestamp') + frequency * 60 }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment