Diverse opdateringer: automations (doerklokke, kommerhjem, vinduer, lys_stue, julelys, infrastructure_alerts), scripts (doorbell, home_actions), templates, dashboards, configuration, binary_sensors/infrastructure ny fil
This commit is contained in:
@@ -2,58 +2,58 @@
|
||||
## Skal være tændt fra solnedgang og til kl 22
|
||||
## og fra 6-solopgang
|
||||
## derudover: hvis solen er under horisonten, så tænd i 5 minutter ved bevægelse
|
||||
- alias: 'Julelys tænd morgen'
|
||||
trigger:
|
||||
platform: time
|
||||
at: "06:30:00"
|
||||
condition:
|
||||
- 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:
|
||||
entity_id: light.julelys
|
||||
# - alias: 'Julelys tænd morgen'
|
||||
# trigger:
|
||||
# platform: time
|
||||
# at: "06:30:00"
|
||||
# condition:
|
||||
# - 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:
|
||||
# entity_id: light.julelys
|
||||
|
||||
- alias: 'Julelys sluk morgen'
|
||||
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:
|
||||
entity_id: light.julelys
|
||||
# - alias: 'Julelys sluk morgen'
|
||||
# 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:
|
||||
# entity_id: light.julelys
|
||||
|
||||
- alias: 'Julelys tænd aften'
|
||||
trigger:
|
||||
platform: sun
|
||||
event: sunset
|
||||
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:
|
||||
entity_id: light.julelys
|
||||
# - alias: 'Julelys tænd aften'
|
||||
# trigger:
|
||||
# platform: sun
|
||||
# event: sunset
|
||||
# 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:
|
||||
# entity_id: light.julelys
|
||||
|
||||
- alias: 'Julelys sluk aften'
|
||||
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:
|
||||
entity_id: light.julelys
|
||||
# - alias: 'Julelys sluk aften'
|
||||
# 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:
|
||||
# entity_id: light.julelys
|
||||
|
||||
|
||||
# - alias: 'Julelys tænd ved bevægelse'
|
||||
|
||||
Reference in New Issue
Block a user