I got a persistent notification after changing an automation, which references just one automation’s title
but then subsequent text refers to the content of a completely different automation:
the automation it’s moaning about doesn’t refer to that input_boolean at all
- alias: "Monitor DFPlayer State Attic"
trigger:
- platform: event
event_type: call_service
event_data:
domain: esphome
service: atticesp_dfplayer_play_folder
variables:
initial_state: "{{ states('binary_sensor.dfplayer_attic_state') }}"
action:
- choose:
- conditions:
- condition: template
value_template: "{{ initial_state == 'off' }}"
sequence:
- wait_for_trigger:
- platform: state
entity_id: binary_sensor.dfplayer_attic_state
to: "on"
timeout: 5
continue_on_timeout: true
- choose:
- conditions:
- condition: template
value_template: "{{ wait.completed == false }}"
sequence:
- service: persistent_notification.create
data:
title: "DFPlayer Warning"
message: "Attic DFPlayer State did not respond"
- service: notify.telegram
data:
message: "Attic DFPlayer State did not respond"
- conditions:
- condition: template
value_template: "{{ initial_state == 'on' }}"
sequence:
- wait_for_trigger:
- platform: state
entity_id: binary_sensor.dfplayer_attic_state
timeout: 5
continue_on_timeout: true
- choose:
- conditions:
- condition: template
value_template: "{{ wait.completed == false }}"
sequence:
- service: persistent_notification.create
data:
title: "DFPlayer Warning"
message: "Attic DFPlayer State did not respond to new file request"
- service: notify.telegram
data:
message: "Attic DFPlayer State did not respond to new file request"
3 posts - 2 participants