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:
- 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