diff --git a/include/automations/doerklokke_for.yaml b/include/automations/doerklokke_for.yaml index a1e41b7..1af2037 100644 --- a/include/automations/doerklokke_for.yaml +++ b/include/automations/doerklokke_for.yaml @@ -83,26 +83,20 @@ - sequence: - condition: template value_template: > - {{ states('sensor.gang_sensor_illuminance') | int < - states('input_number.gang_lux_threshold') | int }} + {{ states('sensor.forgang_sensor_illuminance') | int < 60 }} - choose: - conditions: - - condition: template - value_template: > - {% set t = now().strftime('%H%M') | int %} - {% if is_state('binary_sensor.arbejdsdag', 'on') %} - {{ 630 <= t < 2130 }} - {% else %} - {{ 800 <= t < 2200 }} - {% endif %} + - condition: time + after: "06:00:00" + before: "23:59:00" sequence: - service: scene.turn_on target: - entity_id: scene.gang_bright + entity_id: scene.forgang_bright default: - service: scene.turn_on target: - entity_id: scene.gang_daempet_nat + entity_id: scene.forgang_dimmed - conditions: - condition: template