1
0
ansible-home-assistant/configuration/automations/steam.yaml

59 lines
1.4 KiB
YAML

- 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