Julelys kun i vintersæson uge 42-8, tilføj TODO liste

This commit is contained in:
2026-05-06 07:35:07 +02:00
parent 1525cc0070
commit bee2028f0b
2 changed files with 23 additions and 0 deletions
+10
View File
@@ -10,6 +10,8 @@
- condition: state # from sunset until sunrise
entity_id: sun.sun
state: 'below_horizon'
- condition: template # Vintersæson uge 42-8
value_template: "{{ now().isocalendar()[1] >= 42 or now().isocalendar()[1] <= 8 }}"
action:
- service: light.turn_on
data:
@@ -19,6 +21,9 @@
trigger:
platform: sun
event: sunrise
condition:
- condition: template # Vintersæson uge 42-8
value_template: "{{ now().isocalendar()[1] >= 42 or now().isocalendar()[1] <= 8 }}"
action:
- service: light.turn_off
data:
@@ -31,6 +36,8 @@
condition:
- condition: time
before: '21:30:00'
- condition: template # Vintersæson uge 42-8
value_template: "{{ now().isocalendar()[1] >= 42 or now().isocalendar()[1] <= 8 }}"
action:
- service: light.turn_on
data:
@@ -40,6 +47,9 @@
trigger:
platform: time
at: "22:00:00"
condition:
- condition: template # Vintersæson uge 42-8
value_template: "{{ now().isocalendar()[1] >= 42 or now().isocalendar()[1] <= 8 }}"
action:
- service: light.turn_off
data: