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

80 lines
2.1 KiB
YAML
Raw Normal View History

- id: steam_hue_sync_racing
2022-08-12 19:59:21 +00:00
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:
2023-09-16 22:37:51 +00:00
- service: select.select_option
2022-08-12 19:59:21 +00:00
data:
2023-09-16 22:37:51 +00:00
option: Racing
2022-08-12 19:59:21 +00:00
target:
2023-09-16 22:37:51 +00:00
entity_id: select.sync_box_entertainment_area
2022-08-13 00:05:12 +00:00
- 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
2022-08-12 19:59:21 +00:00
- id: steam_hue_sync_normal
2022-08-12 19:59:21 +00:00
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:
2023-09-16 22:37:51 +00:00
- service: select.select_option
2022-08-12 19:59:21 +00:00
data:
2023-09-16 22:37:51 +00:00
option: TV Lights
2022-08-12 19:59:21 +00:00
target:
2023-09-16 22:37:51 +00:00
entity_id: select.sync_box_entertainment_area
2022-08-13 00:05:12 +00:00
- 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