Created
November 2, 2022 09:16
-
-
Save andrew-codechimp/fabec74d8ff127b2a809339cd6a02213 to your computer and use it in GitHub Desktop.
Home Assistant Post Notification Example
This file contains hidden or 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
alias: Post Notification | |
description: "" | |
trigger: | |
- platform: state | |
entity_id: | |
- binary_sensor.z2maqarareed01_contact | |
to: "on" | |
from: "off" | |
condition: | |
- condition: template | |
value_template: >- | |
{{ (as_timestamp(now()) - | |
as_timestamp(state_attr('automation.post_notification', 'last_triggered') | |
| default(0)) | int > 30) }} | |
action: | |
- service: notify.telegram | |
data: | |
message: You have post | |
mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment