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