1
0
ansible-home-assistant/configuration/automations/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: huesyncbox.set_entertainment_area
data:
entertainment_area: Racing
target:
entity_id: media_player.sync_box
- 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: huesyncbox.set_entertainment_area
data:
entertainment_area: TV Lights
target:
entity_id: media_player.sync_box
- 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