1
0
ansible-home-assistant/roles/automations/files/steam.yaml

80 lines
2.1 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: select.select_option
data:
option: Racing
target:
entity_id: select.sync_box_entertainment_area
- service: cover.close_cover
target:
entity_id:
- cover.office_blinds
- cover.dining_blinds
- service: automation.turn_off
target:
entity_id:
- automation.brightness_bright
- automation.brightness_dark
- automation.brightness_dark_turn_on_lights
- automation.brightness_very_bright
- automation.brightness_very_bright_2
- 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: select.select_option
data:
option: TV Lights
target:
entity_id: select.sync_box_entertainment_area
- service: automation.turn_on
target:
entity_id:
- automation.brightness_bright
- automation.brightness_dark
- automation.brightness_dark_turn_on_lights
- automation.brightness_very_bright
- automation.brightness_very_bright_2