hi,
This automation uses 3 inputs:
- input_boolean.scene_opstaan (when click or activated by scheduler it is morning
- input_boolean.scene_zonop (i can simulate sun dawn and rise
- input_select.dagtypen ( i use this for the type of day,)
Scenario 1
Dagtypen = normaal
Scene_zonop= on
Scene_opstaan is pushed , so on
This case works, basic stuff is put on and no light is turned on (scene opstaan_normaal is not executed )
Scenario 2
Dagtypen = normaal
Scene_zonop= off (so it is dark)
Scene_opstaan is pushed , so on
This case partial works, basic stuff is put on and no light is turned on (scene opstaan_normaal is not executed, while the light must be put on… )
alias: auto_scene_opstaan_test
description: ""
trigger:
- platform: state
entity_id:
- input_boolean.scene_opstaan
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.scene_opstaan
state: "on"
- condition: state
entity_id: input_boolean.scene_zonop
state: "on"
sequence:
- service: scene.turn_on
target:
entity_id: scene.basisvoorziening_{{dagtype}}_aan
metadata: {}
- choose:
- conditions:
- condition: state
entity_id: input_boolean.scene_opstaan
state: "on"
- condition: state
entity_id: input_boolean.scene_zonop
state: "off"
sequence:
- service: scene.turn_on
target:
entity_id: scene.basisvoorziening_{{dagtype}}_aan
metadata: {}
- service: scene.turn_on
target:
entity_id: scene.opstaan_{{dagtype}}_aan
metadata: {}
- choose:
- conditions:
- condition: state
entity_id: input_boolean.scene_opstaan
state: "off"
sequence:
- service: scene.turn_on
target:
entity_id: scene.opstaan_uit
metadata: {}
variables:
dagtype: "{{ states('input_select.dagtypen') }}"
mode: single