From 5d8852efaa8ff0da08b37937b79e5d40a7a28498 Mon Sep 17 00:00:00 2001 From: pgrondek Date: Sun, 8 Nov 2020 23:55:19 +0100 Subject: [PATCH] New lights automations --- automations/files/computer-lights.yaml | 18 ++++++++++++++++++ automations/files/daily.yaml | 8 ++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 automations/files/computer-lights.yaml diff --git a/automations/files/computer-lights.yaml b/automations/files/computer-lights.yaml new file mode 100644 index 0000000..483572e --- /dev/null +++ b/automations/files/computer-lights.yaml @@ -0,0 +1,18 @@ +- id: computer_off + alias: Turning computer off automation + description: '' + trigger: + - platform: state + entity_id: binary_sensor.desktop + to: 'off' + for: + minutes: 5 + condition: [] + action: + - service: light.turn_off + data: {} + entity_id: + - light.computer_left + - light.computer_right + - light.desk_lamp + mode: single \ No newline at end of file diff --git a/automations/files/daily.yaml b/automations/files/daily.yaml index 36015d5..6931904 100644 --- a/automations/files/daily.yaml +++ b/automations/files/daily.yaml @@ -13,7 +13,9 @@ - 0 - 0 - 255 - entity_id: light.desk_lamp + entity_id: + - light.computer_left + - light.computer_right mode: single - id: daily_off @@ -26,5 +28,7 @@ - service: light.turn_on data: kelvin: 3200 - entity_id: light.desk_lamp + entity_id: + - light.computer_left + - light.computer_right mode: single