Dear all, i’m using last HA version and i 'm encountering problems with an automation with continue_on_error function. With internet connection all is working well but sometimes the connection goes down and the automation stops working. This is my code:
- alias: ALARM-WATER
initial_state: false
trigger:
- platform: state
entity_id: binary_sensor.alarm_bilge
to: 'on'
condition:
- condition: state
entity_id: input_boolean.alarm_water
state: 'on'
action:
- continue_on_error: true
repeat:
until:
- condition: template
value_template: '{{ repeat.index >= 20 }}'
sequence:
####################################################
# BUZZER ON
####################################################
- service: switch.turn_on
continue_on_error: true
data: {}
entity_id: switch.buzzer
- service: persistent_notification.create
data:
title: ALARM
message: "<b>ALARM WATER!</b>"
- delay: 00:00:01
####################################################
# SMS
####################################################
- service: rest_command.sms_allarm_water
continue_on_error: true
data: {}
- delay: 00:00:01
####################################################
# MAIL
####################################################
- service: notify.mail
continue_on_error: true
data:
message: 'ALARM WATER'
title: ALARM
- delay: '00:00:10'
- service: switch.turn_off
data: {}
entity_id: switch.buzzer
- service: persistent_notification.create
data:
title: INFO
message: "STOP NOTIFICATIONS"
mode: single
I put continue_on_error
everywhere but no luck…
Could someone point me in the right direction??
Thanks a lot.