Garageport animation, fjern alarm 1899, baghave lys vintersæson uge 42-8
This commit is contained in:
@@ -214,31 +214,3 @@
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: switch.sonos_alarm_298
|
||||
|
||||
- alias: 'Turn on alarms Badeværelse Afsted'
|
||||
trigger:
|
||||
platform: time
|
||||
at: '20:07:10'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdagimorgen
|
||||
state: 'on'
|
||||
- condition: template
|
||||
value_template: >-
|
||||
{{ not is_state('input_select.anne_status', 'syg') and
|
||||
not is_state('input_select.claus_status', 'syg') }}
|
||||
action:
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: switch.sonos_alarm_1899
|
||||
|
||||
|
||||
- alias: 'Turn off alarms Badeværelse Afsted'
|
||||
trigger:
|
||||
platform: time
|
||||
at: '20:06:20'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdagimorgen
|
||||
state: 'off'
|
||||
action:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: switch.sonos_alarm_1899
|
||||
|
||||
@@ -29,10 +29,13 @@
|
||||
|
||||
action:
|
||||
- variables:
|
||||
lights:
|
||||
- light.indkorsel_2
|
||||
- light.extended_color_light_1
|
||||
- light.garage
|
||||
lights: >
|
||||
{% set base = ['light.indkorsel_2', 'light.garage'] %}
|
||||
{% if now().isocalendar()[1] >= 42 or now().isocalendar()[1] <= 8 %}
|
||||
{{ (base + ['light.extended_color_light_1']) | list }}
|
||||
{% else %}
|
||||
{{ base }}
|
||||
{% endif %}
|
||||
|
||||
lights_to_turn_on: >
|
||||
{{ lights | select('is_state','off') | list }}
|
||||
|
||||
@@ -19,7 +19,10 @@
|
||||
entity_id:
|
||||
- light.drivhus
|
||||
- light.paradis
|
||||
- light.extended_color_light_1
|
||||
- condition: template
|
||||
value_template: "{{ now().isocalendar()[1] >= 42 or now().isocalendar()[1] <= 8 }}"
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: light.extended_color_light_1
|
||||
|
||||
- alias: 'Sluk lys ved garage'
|
||||
trigger:
|
||||
@@ -29,12 +32,15 @@
|
||||
for:
|
||||
minutes: 10
|
||||
action:
|
||||
service: homeassistant.turn_off
|
||||
data:
|
||||
entity_id:
|
||||
- light.drivhus
|
||||
- light.paradis
|
||||
- light.extended_color_light_1
|
||||
- service: homeassistant.turn_off
|
||||
data:
|
||||
entity_id:
|
||||
- light.drivhus
|
||||
- light.paradis
|
||||
- condition: template
|
||||
value_template: "{{ now().isocalendar()[1] >= 42 or now().isocalendar()[1] <= 8 }}"
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: light.extended_color_light_1
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -61,7 +61,6 @@
|
||||
entity_id:
|
||||
- switch.sonos_alarm_1782 # Soft wakeup
|
||||
- switch.sonos_alarm_298 # Badeværelse
|
||||
- switch.sonos_alarm_1899 # Badeværelse afsted
|
||||
|
||||
- alias: "Syg - Soveværelse - genaktiver alarmer"
|
||||
id: syg_sovevaerelse_genaktiver_alarmer
|
||||
|
||||
Reference in New Issue
Block a user