Simplify text notifications down to a single script

And it didn't even lose any functionality!
This commit is contained in:
2023-02-22 17:23:35 -05:00
parent 12e999307d
commit 5b62a1d052
7 changed files with 183 additions and 245 deletions

View File

@ -1541,8 +1541,9 @@ automation:
entity_id: binary_sensor.windows
state: 'on'
action:
- service: script.text_alert
- service: script.text_notify
data:
type: alert
who: 'all'
title: "WINDOWS ARE OPEN!"
message: "It is raining and there are windows open in the house. Please close them!"
@ -1598,8 +1599,9 @@ script:
who: 'common'
call_interuption: 1
call_lightning_alert: 1
- service: script.text_alert
- service: script.text_notify
data:
type: alert
who: 'all'
title: "Lightning Detected!"
message: >-
@ -1622,8 +1624,9 @@ script:
who: 'common'
call_interuption: 1
call_lightning_clear: 1
- service: script.text_alert
- service: script.text_notify
data:
type: alert
who: 'all'
title: "Lightning Clear"
message: "The lightning threat has passed. It is safe to resume normal activities."