mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-21 10:57:43 +00:00
Move config out of subfolder
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
# Depends on Plex integration (config flow): https://www.home-assistant.io/integrations/plex
|
||||
|
||||
automation:
|
||||
- alias: TV · Plex · Setup house for Plex
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- media_player.plex_shield_chromecast
|
||||
- media_player.plex_shield_player
|
||||
- media_player.plex_lg
|
||||
to: "playing"
|
||||
action:
|
||||
- service: media_player.unjoin
|
||||
entity_id: media_player.living_room
|
||||
- service: media_player.select_source
|
||||
entity_id: media_player.living_room
|
||||
data:
|
||||
source: TV
|
||||
- service: media_player.media_pause
|
||||
entity_id: media_player.master_bedroom
|
||||
- service: scene.create
|
||||
data:
|
||||
scene_id: plex_before_start
|
||||
snapshot_entities:
|
||||
- light.living_room_main
|
||||
- light.pc
|
||||
- light.living_room_ambient_main
|
||||
- light.light_lohas_2
|
||||
- light.hallway_entrance
|
||||
- light.hallway_main
|
||||
- light.master_bedroom_main
|
||||
- light.kitchen_main
|
||||
- light.kitchen_secondary
|
||||
- service: light.turn_off
|
||||
entity_id:
|
||||
- light.hallway_entrance
|
||||
- light.living_room_main
|
||||
- service: light.turn_off
|
||||
entity_id:
|
||||
- light.pc
|
||||
- light.living_room_ambient_main
|
||||
- light.light_lohas_2
|
||||
- light.hallway_main
|
||||
- service: light.turn_off
|
||||
entity_id:
|
||||
- light.master_bedroom_main
|
||||
- light.kitchen_main
|
||||
- light.kitchen_secondary
|
||||
|
||||
- alias: TV · Plex · Restore house after Plex
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- media_player.plex_shield_chromecast
|
||||
- media_player.plex_shield_player
|
||||
- media_player.plex_lg
|
||||
from: "playing"
|
||||
action:
|
||||
- service: scene.turn_on
|
||||
entity_id: scene.plex_before_start
|
||||
Reference in New Issue
Block a user