From 175bf99c7a5e5a440d3f479d60e9c04962badf12 Mon Sep 17 00:00:00 2001 From: Claus Dethlefsen Date: Mon, 6 Apr 2026 07:40:19 +0200 Subject: [PATCH] Add curtain schedule automation --- include/automations/gardiner.yaml | 60 +++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 include/automations/gardiner.yaml diff --git a/include/automations/gardiner.yaml b/include/automations/gardiner.yaml new file mode 100644 index 0000000..79a7201 --- /dev/null +++ b/include/automations/gardiner.yaml @@ -0,0 +1,60 @@ +- alias: 'Gardiner - alle lidt nede arbejdsdag' + trigger: + - platform: time + at: '07:00:00' + condition: + - condition: state + entity_id: binary_sensor.arbejdsdag + state: 'on' + action: + - service: scene.turn_on + target: + entity_id: scene.alle_lidt_nede + +- alias: 'Gardiner - alle lidt nede ikke arbejdsdag' + trigger: + - platform: time + at: '09:00:00' + condition: + - condition: state + entity_id: binary_sensor.arbejdsdag + state: 'off' + action: + - service: scene.turn_on + target: + entity_id: scene.alle_lidt_nede + +- alias: 'Gardiner - morgen arbejdsdag' + trigger: + - platform: time + at: '06:00:00' + condition: + - condition: state + entity_id: binary_sensor.arbejdsdag + state: 'on' + action: + - service: scene.turn_on + target: + entity_id: scene.morgen + +- alias: 'Gardiner - morgen ikke arbejdsdag' + trigger: + - platform: time + at: '07:00:00' + condition: + - condition: state + entity_id: binary_sensor.arbejdsdag + state: 'off' + action: + - service: scene.turn_on + target: + entity_id: scene.morgen + +- alias: 'Gardiner - alt ned kl 21' + trigger: + - platform: time + at: '21:00:00' + action: + - service: scene.turn_on + target: + entity_id: scene.n22_alt_ned \ No newline at end of file