Hi, i need some help with my first script!
i made a script with 3 parts, with own conditions and actions.
But it seems that if one part succeeds, for example part1 the other parts dont execute!
part1: boolean ON: put the boiler on
part2: boolean ON: scene ZONop not on, input dagtype not eco then put the nightlamp on
part3: boolean ON: , input dagtype not eco then put the printer on
alias: script_opstaan
sequence:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.scene_opstaan
state: "on"
sequence:
- service: switch.turn_on
data: {}
target:
entity_id: switch.ac_0e672c2_14
- conditions:
- condition: state
entity_id: input_boolean.scene_opstaan
state: "on"
- condition: not
conditions:
- condition: state
entity_id: input_boolean.scene_zonop
state: "on"
- condition: state
entity_id: input_select.dagtypen
state: eco
sequence:
- service: switch.turn_on
data: {}
target:
entity_id: switch.ac_1ad3bc2_1
- conditions:
- condition: state
entity_id: input_boolean.scene_opstaan
state: "on"
- condition: not
conditions:
- condition: state
entity_id: input_select.dagtypen
state: eco
sequence:
- service: switch.turn_on
data: {}
target:
entity_id: switch.printer
mode: single