From c21802c5a6f0be77c81dbe6ab8b35e3e24cb9414 Mon Sep 17 00:00:00 2001 From: Claus Dethlefsen Date: Tue, 11 Apr 2023 07:06:07 +0200 Subject: [PATCH] New alarms --- include/automations/alarms.yaml | 53 ++++++++++++++++++++++++--------- 1 file changed, 39 insertions(+), 14 deletions(-) diff --git a/include/automations/alarms.yaml b/include/automations/alarms.yaml index ac21536..f804f0e 100644 --- a/include/automations/alarms.yaml +++ b/include/automations/alarms.yaml @@ -5,7 +5,7 @@ at: '20:05:00' condition: - condition: state - entity_id: binary_sensor.arbejdsdag + entity_id: binary_sensor.arbejdsdagimorgen state: 'on' action: - service: homeassistant.turn_on @@ -17,7 +17,7 @@ at: '20:00:00' condition: - condition: state - entity_id: binary_sensor.arbejdsdag + entity_id: binary_sensor.arbejdsdagimorgen state: 'off' action: - service: homeassistant.turn_off @@ -29,7 +29,7 @@ at: '20:05:10' condition: - condition: state - entity_id: binary_sensor.arbejdsdag + entity_id: binary_sensor.arbejdsdagimorgen state: 'on' action: - service: homeassistant.turn_on @@ -41,7 +41,7 @@ at: '20:00:10' condition: - condition: state - entity_id: binary_sensor.arbejdsdag + entity_id: binary_sensor.arbejdsdagimorgen state: 'off' action: - service: homeassistant.turn_off @@ -53,7 +53,7 @@ at: '20:05:20' condition: - condition: state - entity_id: binary_sensor.arbejdsdag + entity_id: binary_sensor.arbejdsdagimorgen state: 'on' action: - service: homeassistant.turn_on @@ -65,7 +65,7 @@ at: '20:00:20' condition: - condition: state - entity_id: binary_sensor.arbejdsdag + entity_id: binary_sensor.arbejdsdagimorgen state: 'off' action: - service: homeassistant.turn_off @@ -100,7 +100,7 @@ at: '20:05:40' condition: - condition: state - entity_id: binary_sensor.arbejdsdag + entity_id: binary_sensor.arbejdsdagimorgen state: 'on' action: - service: homeassistant.turn_on @@ -113,7 +113,7 @@ at: '20:00:40' condition: - condition: state - entity_id: binary_sensor.arbejdsdag + entity_id: binary_sensor.arbejdsdagimorgen state: 'off' action: - service: homeassistant.turn_off @@ -125,7 +125,7 @@ at: '20:05:50' condition: - condition: state - entity_id: binary_sensor.arbejdsdag + entity_id: binary_sensor.arbejdsdagimorgen state: 'on' action: - service: homeassistant.turn_on @@ -138,12 +138,37 @@ at: '20:00:50' condition: - condition: state - entity_id: binary_sensor.arbejdsdag + entity_id: binary_sensor.arbejdsdagimorgen state: 'off' action: - service: homeassistant.turn_off entity_id: switch.sonos_alarm_1894 + - alias: 'Turn on alarms Daniel Thursdays' + trigger: + platform: time + at: '20:06:20' + condition: + - condition: state + entity_id: binary_sensor.arbejdsdagimorgen + state: 'on' + action: + - service: homeassistant.turn_on + entity_id: switch.sonos_alarm_2273 + + - alias: 'Turn off alarms Daniel Thursdays' + trigger: + platform: time + at: '20:00:43' + condition: + - condition: state + entity_id: binary_sensor.arbejdsdagimorgen + state: 'off' + action: + - service: homeassistant.turn_off + entity_id: switch.sonos_alarm_2273 + + - alias: 'Turn on alarms Badeværelse' trigger: @@ -151,7 +176,7 @@ at: '20:06:00' condition: - condition: state - entity_id: binary_sensor.arbejdsdag + entity_id: binary_sensor.arbejdsdagimorgen state: 'on' action: - service: homeassistant.turn_on @@ -164,7 +189,7 @@ at: '20:01:00' condition: - condition: state - entity_id: binary_sensor.arbejdsdag + entity_id: binary_sensor.arbejdsdagimorgen state: 'off' action: - service: homeassistant.turn_off @@ -176,7 +201,7 @@ at: '20:06:10' condition: - condition: state - entity_id: binary_sensor.arbejdsdag + entity_id: binary_sensor.arbejdsdagimorgen state: 'on' action: - service: homeassistant.turn_on @@ -189,7 +214,7 @@ at: '20:06:20' condition: - condition: state - entity_id: binary_sensor.arbejdsdag + entity_id: binary_sensor.arbejdsdagimorgen state: 'off' action: - service: homeassistant.turn_off