Update
This commit is contained in:
@@ -212,21 +212,21 @@ input_boolean:
|
||||
|
||||
# Automations #######################################################
|
||||
automation:
|
||||
- id: "landroid_status_notify"
|
||||
alias: "Landroid Status Notification"
|
||||
initial_state: true
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.landroid_hans_dieter_status
|
||||
condition:
|
||||
- condition: template
|
||||
value_template: "{{ trigger.to_state.state != trigger.from_state.state }}"
|
||||
action:
|
||||
- service: persistent_notification.create
|
||||
data_template:
|
||||
title: Lanroid Status
|
||||
message: "{{ trigger.from_state.state }} -> {{ trigger.to_state.state }} - {{ states('sensor.date_time') }}"
|
||||
|
||||
# - id: "landroid_status_notify"
|
||||
# alias: "Landroid Status Notification"
|
||||
# initial_state: true
|
||||
# trigger:
|
||||
# - platform: state
|
||||
# entity_id: sensor.landroid_hans_dieter_status
|
||||
# condition:
|
||||
# - condition: template
|
||||
# value_template: "{{ trigger.to_state.state != trigger.from_state.state }}"
|
||||
# action:
|
||||
# - service: persistent_notification.create
|
||||
# data_template:
|
||||
# title: Landroid Status
|
||||
# message: "{{ trigger.from_state.state }} -> {{ trigger.to_state.state }} - {{ states('sensor.date_time') }}"
|
||||
#
|
||||
- id: "landroid_error_notify"
|
||||
alias: "Landroid Error Notification"
|
||||
initial_state: true
|
||||
@@ -239,7 +239,7 @@ automation:
|
||||
action:
|
||||
- service: persistent_notification.create
|
||||
data_template:
|
||||
title: Lanroid Status
|
||||
title: Landroid Status
|
||||
message: "{{ trigger.from_state.state }} -> {{ trigger.to_state.state }} - {{ states('sensor.date_time') }}"
|
||||
|
||||
# Scripts ###########################################################
|
||||
|
||||
Reference in New Issue
Block a user