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