From ab2a381a4426ad86bf1a909d80f32f77a77b26f0 Mon Sep 17 00:00:00 2001 From: pgrondek Date: Tue, 4 May 2021 09:57:53 +0200 Subject: [PATCH] Add automation to mark pc is awake --- automations/files/automations/computer.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 automations/files/automations/computer.yaml diff --git a/automations/files/automations/computer.yaml b/automations/files/automations/computer.yaml new file mode 100644 index 0000000..8fa7fbe --- /dev/null +++ b/automations/files/automations/computer.yaml @@ -0,0 +1,12 @@ +- id: computer_awake + alias: '[Computer] awakes' + mode: single + trigger: + - platform: state + entity_id: binary_sensor.desktop + to: 'on' + from: 'off' + action: + - service: input_boolean.turn_off + target: + entity_id: input_boolean.pc_sleeping