From 020189b1d7483bd654c2751f9c5036e2a5b84182 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Fri, 12 Aug 2022 21:59:21 +0200 Subject: [PATCH] Add automations for steam --- configuration/automations/steam.yaml | 58 ++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 configuration/automations/steam.yaml diff --git a/configuration/automations/steam.yaml b/configuration/automations/steam.yaml new file mode 100644 index 0000000..828b124 --- /dev/null +++ b/configuration/automations/steam.yaml @@ -0,0 +1,58 @@ +- id: steam-hue-sync-racing + alias: '[Steam] Set Hue sync to racing profile' + mode: single + trigger: + - platform: state + entity_id: + - sensor.steam_76561197977004595 + attribute: game + to: Forza Horizon 5 + - platform: state + entity_id: + - sensor.steam_76561197977004595 + attribute: game + to: F1 2020 + - platform: state + entity_id: + - sensor.steam_76561197977004595 + attribute: game + to: F1 2021 + condition: + - condition: state + entity_id: input_select.home_mode + state: Day + action: + - service: huesyncbox.set_entertainment_area + data: + entertainment_area: Racing + target: + entity_id: media_player.sync_box + +- id: steam-hue-sync-normal + alias: '[Steam] Set hue sync back' + trigger: + - platform: state + entity_id: + - sensor.steam_76561197977004595 + attribute: game + from: Forza Horizon 5 + - platform: state + entity_id: + - sensor.steam_76561197977004595 + attribute: game + from: F1 2020 + - platform: state + entity_id: + - sensor.steam_76561197977004595 + attribute: game + from: F1 2021 + condition: + - condition: state + entity_id: input_select.home_mode + state: Day + action: + - service: huesyncbox.set_entertainment_area + data: + entertainment_area: TV Lights + target: + entity_id: media_player.sync_box