Skip to content

Commit

Permalink
use new tv setup
Browse files Browse the repository at this point in the history
  • Loading branch information
yp87 committed Jul 22, 2024
1 parent bb4845e commit 383b5ee
Showing 1 changed file with 11 additions and 39 deletions.
50 changes: 11 additions & 39 deletions hass/automation/appliances/tv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
data:
message: "{{ name }} received a message"

- alias: tv turns on
id: tv_turns_on
- alias: chromecast turns on
id: chromecast_turns_on
trigger:
- platform: state
entity_id: media_player.tv
entity_id: remote.salon_tv
to: 'on'
condition:
condition: state
Expand All @@ -58,57 +58,29 @@
entity_id: light.hyperion
kelvin: 6000
brightness_pct: 40

- alias: tv turns off
id: tv_turns_off
trigger:
platform: state
entity_id: media_player.tv
to: 'off'
condition:
condition: state
entity_id: select.yharmony_activities
state: "Watch TV"
action:
- service: select.select_option
data:
entity_id: select.yharmony_activities
option: "power_off"
- service: light.turn_off
data:
entity_id: light.hyperion

- alias: chromecast turns on
id: chromecast_turns_on
trigger:
- platform: state
entity_id: media_player.salon_tv
from: 'off'
condition:
condition: state
entity_id: select.yharmony_activities
state: "power_off"
action:
- service: select.select_option
- service: media_player.select_source
data:
entity_id: select.yharmony_activities
option: "Music"
entity_id: media_player.tv
source: HDMI 3

- alias: chromecast turns off
id: chromecast_turns_off
trigger:
- platform: state
entity_id: media_player.salon_tv
entity_id: remote.salon_tv
to: 'off'
condition:
condition: state
entity_id: select.yharmony_activities
state: "Music"
state: "Watch TV"
action:
- service: select.select_option
data:
entity_id: select.yharmony_activities
option: "power_off"
- service: light.turn_off
data:
entity_id: light.hyperion

- alias: Hyperion phone ringing
trigger:
Expand Down

0 comments on commit 383b5ee

Please sign in to comment.