Fordorklokke: ret forgang lys (forgang_sensor/scene, ikke gang)

This commit is contained in:
2026-04-25 19:35:31 +02:00
parent e0ec8391d9
commit 7c6c62cff4
+6 -12
View File
@@ -83,26 +83,20 @@
- sequence: - sequence:
- condition: template - condition: template
value_template: > value_template: >
{{ states('sensor.gang_sensor_illuminance') | int < {{ states('sensor.forgang_sensor_illuminance') | int < 60 }}
states('input_number.gang_lux_threshold') | int }}
- choose: - choose:
- conditions: - conditions:
- condition: template - condition: time
value_template: > after: "06:00:00"
{% set t = now().strftime('%H%M') | int %} before: "23:59:00"
{% if is_state('binary_sensor.arbejdsdag', 'on') %}
{{ 630 <= t < 2130 }}
{% else %}
{{ 800 <= t < 2200 }}
{% endif %}
sequence: sequence:
- service: scene.turn_on - service: scene.turn_on
target: target:
entity_id: scene.gang_bright entity_id: scene.forgang_bright
default: default:
- service: scene.turn_on - service: scene.turn_on
target: target:
entity_id: scene.gang_daempet_nat entity_id: scene.forgang_dimmed
- conditions: - conditions:
- condition: template - condition: template