Hi All. Thanks in advance for the support.
Here is the problem I’m having:
As you see, in my automation I have two nested “choose” actions:
As you can see, the automation is going with the default path, and no default path is configured…
The automation is supposed to allow me to pick the days to run my irrigation schedule on the UI through input boolean like these:
so, all the options correspond to one day of the week.
Any ideas? here is the yaml in case anyone wants it.
alias: Balcon 3
description: ""
trigger:
- platform: time
at: input_datetime.hora_balcon
id: Automatico1
- platform: device
type: turned_on
device_id: 700e6d8c988b5b8bceb471c3ace9ffea
entity_id: switch.balcon
domain: switch
id: Manual
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- Automatico1
- condition: not
conditions:
- condition: state
entity_id: weather.casa
state: pouring
- condition: state
entity_id: weather.casa
state: lightning-rainy
- condition: state
entity_id: weather.casa
state: rainy
- condition: state
entity_id: weather.casa
state: snowy-rainy
sequence:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.z1_lun
state: "on"
- condition: time
weekday:
- mon
sequence:
- type: turn_on
device_id: 700e6d8c988b5b8bceb471c3ace9ffea
entity_id: c89989b28bd23e5068e997675d27a59a
domain: switch
- data:
duration: 00:{{ states('input_number.duracion_balcon') | int }}:00
target:
entity_id: timer.restante_balcon
action: timer.start
- conditions:
- condition: state
entity_id: input_boolean.z1_mar
state: "on"
- condition: time
weekday:
- tue
sequence:
- type: turn_on
device_id: 700e6d8c988b5b8bceb471c3ace9ffea
entity_id: switch.balcon
domain: switch
- data:
duration: 00:{{ states('input_number.duracion_balcon') | int }}:00
target:
entity_id: timer.restante_balcon
action: timer.start
- conditions:
- condition: state
entity_id: input_boolean.z1_mie
state: "on"
- condition: time
weekday:
- wed
sequence:
- type: turn_on
device_id: 700e6d8c988b5b8bceb471c3ace9ffea
entity_id: switch.balcon
domain: switch
- data:
duration: 00:{{ states('input_number.duracion_balcon') | int }}:00
target:
entity_id: timer.restante_balcon
action: timer.start
- conditions:
- condition: state
entity_id: input_boolean.z1_jue
state: "on"
- condition: time
weekday:
- thu
sequence:
- type: turn_on
device_id: 700e6d8c988b5b8bceb471c3ace9ffea
entity_id: switch.balcon
domain: switch
- data:
duration: 00:{{ states('input_number.duracion_balcon') | int }}:00
target:
entity_id: timer.restante_balcon
action: timer.start
- conditions:
- condition: state
entity_id: input_boolean.z1_vie
state: "on"
- condition: time
weekday:
- fri
sequence:
- type: turn_on
device_id: 700e6d8c988b5b8bceb471c3ace9ffea
entity_id: switch.balcon
domain: switch
- data:
duration: 00:{{ states('input_number.duracion_balcon') | int }}:00
target:
entity_id: timer.restante_balcon
action: timer.start
- conditions:
- condition: state
entity_id: input_boolean.z1_sab
state: "on"
- condition: time
weekday:
- sat
sequence:
- type: turn_on
device_id: 700e6d8c988b5b8bceb471c3ace9ffea
entity_id: switch.balcon
domain: switch
- data:
duration: 00:{{ states('input_number.duracion_balcon') | int }}:00
target:
entity_id: timer.restante_balcon
action: timer.start
- conditions:
- condition: state
entity_id: input_boolean.z1_dom
state: "on"
- condition: time
weekday:
- sun
sequence:
- type: turn_on
device_id: 700e6d8c988b5b8bceb471c3ace9ffea
entity_id: switch.balcon
domain: switch
- data:
duration: 00:{{ states('input_number.duracion_balcon') | int }}:00
target:
entity_id: timer.restante_balcon
action: timer.start
- conditions:
- condition: trigger
id:
- Manual
sequence:
- data:
duration: 00:{{ states('input_number.duracion_balcon') | int }}:00
target:
entity_id: timer.restante_balcon
action: timer.start
- parallel:
- sequence:
- delay: 00:{{ states('input_number.duracion_balcon') | int }}:00
- type: turn_off
device_id: 700e6d8c988b5b8bceb471c3ace9ffea
entity_id: c89989b28bd23e5068e997675d27a59a
domain: switch
alias: Esperar y apagar riego
- alias: Logica de Restante
sequence:
- wait_for_trigger:
- platform: state
entity_id:
- switch.balcon
to: "off"
from: "on"
continue_on_timeout: false
- data: {}
target:
entity_id: timer.restante_balcon
action: timer.finish
mode: restart