From 31a49d6b63274e144314c2989b54b3b9340c1f98 Mon Sep 17 00:00:00 2001 From: KenwoodFox Date: Mon, 16 Aug 2021 18:30:50 -0400 Subject: [PATCH] Activate desktop on arrival --- automations.yaml | 5 ++++- configuration.yaml | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/automations.yaml b/automations.yaml index 10e054c..887ffe4 100755 --- a/automations.yaml +++ b/automations.yaml @@ -14,7 +14,7 @@ domain: switch mode: single - id: '1627952464320' - alias: Turn on lab lights when Joe arrives. + alias: Activate lab when Joe arrives. description: '' trigger: - platform: zone @@ -27,6 +27,9 @@ device_id: d03b2a6c6faf5921d77b4145ffe3afa8 entity_id: switch.lab_lights domain: switch + - service: wake_on_lan.send_magic_packet + data: + mac: 0c:9d:92:8a:3d:21 mode: single - id: '1627953076015' alias: Turn on lab lights after sunset if Joe is home. diff --git a/configuration.yaml b/configuration.yaml index 07e7802..da2df62 100755 --- a/configuration.yaml +++ b/configuration.yaml @@ -6,6 +6,9 @@ default_config: tts: - platform: google_translate +# Wake on lan +wake_on_lan: + # Google maps device_tracker: - platform: google_maps @@ -69,6 +72,17 @@ media_player: name: Lab Projector host: 10.85.5.33 +# Poe switch! +switch: + - platform: telnet + switches: + lab_camera_power: + resource: 10.85.3.96 + port: 22 + command_on: "\n5\nconfig\ninterface 2 power" + command_off: "no interface 2 power" + timeout: 2 + group: !include groups.yaml automation: !include automations.yaml