add automations
This commit is contained in:
@@ -0,0 +1,196 @@
|
||||
# Turns on alarms on workdays and off on "not workdays"
|
||||
- alias: 'Turn on alarms soft wakeup'
|
||||
trigger:
|
||||
platform: time
|
||||
at: '20:05:00'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdag
|
||||
state: 'on'
|
||||
action:
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: switch.sonos_alarm_1782
|
||||
|
||||
- alias: 'Turn off alarms soft wakeup'
|
||||
trigger:
|
||||
platform: time
|
||||
at: '20:00:00'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdag
|
||||
state: 'off'
|
||||
action:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: switch.sonos_alarm_1782
|
||||
|
||||
- alias: 'Turn on alarms Andreas'
|
||||
trigger:
|
||||
platform: time
|
||||
at: '20:05:10'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdag
|
||||
state: 'on'
|
||||
action:
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: switch.sonos_alarm_445
|
||||
|
||||
- alias: 'Turn off alarms Andreas'
|
||||
trigger:
|
||||
platform: time
|
||||
at: '20:00:10'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdag
|
||||
state: 'off'
|
||||
action:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: switch.sonos_alarm_445
|
||||
|
||||
- alias: 'Turn on alarms Andreas Tuesdays'
|
||||
trigger:
|
||||
platform: time
|
||||
at: '20:05:20'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdag
|
||||
state: 'on'
|
||||
action:
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: switch.sonos_alarm_1824
|
||||
|
||||
- alias: 'Turn off alarms Andreas Tuesdays'
|
||||
trigger:
|
||||
platform: time
|
||||
at: '20:00:20'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdag
|
||||
state: 'off'
|
||||
action:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: switch.sonos_alarm_1824
|
||||
|
||||
- alias: 'Turn on alarms Andreas Saturdays'
|
||||
trigger:
|
||||
platform: time
|
||||
at: '20:05:30'
|
||||
condition:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: template
|
||||
value_template: '{{ now().date() | string != "2022-12-24" }}'
|
||||
- condition: template
|
||||
value_template: '{{ now().date() | string != "2022-12-31" }}'
|
||||
action:
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: switch.sonos_alarm_1874
|
||||
|
||||
- alias: 'Turn off alarms Andreas Saturdays'
|
||||
trigger:
|
||||
platform: time
|
||||
at: '20:00:30'
|
||||
action:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: switch.sonos_alarm_1874
|
||||
|
||||
- alias: 'Turn on alarms Daniel'
|
||||
trigger:
|
||||
platform: time
|
||||
at: '20:05:40'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdag
|
||||
state: 'on'
|
||||
action:
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: switch.sonos_alarm_377
|
||||
|
||||
|
||||
- alias: 'Turn off alarms Daniel'
|
||||
trigger:
|
||||
platform: time
|
||||
at: '20:00:40'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdag
|
||||
state: 'off'
|
||||
action:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: switch.sonos_alarm_377
|
||||
|
||||
- alias: 'Turn on alarms Daniel Afsted'
|
||||
trigger:
|
||||
platform: time
|
||||
at: '20:05:50'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdag
|
||||
state: 'on'
|
||||
action:
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: switch.sonos_alarm_1894
|
||||
|
||||
|
||||
- alias: 'Turn off alarms Daniel Afsted'
|
||||
trigger:
|
||||
platform: time
|
||||
at: '20:00:50'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdag
|
||||
state: 'off'
|
||||
action:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: switch.sonos_alarm_1894
|
||||
|
||||
|
||||
- alias: 'Turn on alarms Badeværelse'
|
||||
trigger:
|
||||
platform: time
|
||||
at: '20:06:00'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdag
|
||||
state: 'on'
|
||||
action:
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: switch.sonos_alarm_298
|
||||
|
||||
|
||||
- alias: 'Turn off alarms Badeværelse'
|
||||
trigger:
|
||||
platform: time
|
||||
at: '20:01:00'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdag
|
||||
state: 'off'
|
||||
action:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: switch.sonos_alarm_298
|
||||
|
||||
- alias: 'Turn on alarms Badeværelse Afsted'
|
||||
trigger:
|
||||
platform: time
|
||||
at: '20:06:10'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdag
|
||||
state: 'on'
|
||||
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.arbejdsdag
|
||||
state: 'off'
|
||||
action:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: switch.sonos_alarm_1899
|
||||
Reference in New Issue
Block a user