Closes # 1085 - With Trigger IDs.

This commit is contained in:
ccostan
2021-07-26 16:16:49 -04:00
parent d43131c3dd
commit b447aaff9a
7 changed files with 53 additions and 20 deletions

View File

@@ -26,11 +26,6 @@ automation:
weekday:
- wed
action:
- service: persistent_notification.create
data:
title: Low Ink
message: "{{ trigger.to_state.attributes.friendly_name }} is at {{ trigger.to_state.state }} "
notification_id: low-battery-alert
- service: script.notify_engine
data:
value1: "{{ trigger.to_state.attributes.friendly_name }} is at {{ trigger.to_state.state }} "

View File

@@ -16,11 +16,11 @@ homeassistant:
customize:
sensor.holiday:
icon: mdi:beach
friendly_name: US Holiday
sensor.flag:
icon: mdi:flag
friendly_name: Flag Day
@@ -153,10 +153,6 @@ automation:
- condition: template
value_template: "{{ states.sensor.holiday.state | trim != '' }}"
action:
- service: persistent_notification.create
data:
message: 'Today is {{ states.sensor.holiday.state }}.'
title: '{{ states.sensor.holiday.state }}'
- delay: '0{{ (range(4, 8)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}'
- service: script.tweet_engine_image

View File

@@ -50,9 +50,3 @@ automation:
value1: 'Hard Drive Monitor:'
value2: "Your harddrive is running out of Space! /dev/root:{{ states.sensor.disk_use_percent.state }}%!"
who: 'carlo'
- service: persistent_notification.create
data:
title: "Hard Drive Monitor:"
message: "Your harddrive is running out of Space! /dev/root:{{ states.sensor.disk_use_percent.state }}%!"
notification_id: "Critical Alert"