Files
homeassistant.config/scripts.yaml
2024-08-31 03:05:08 +01:00

123 lines
3.0 KiB
YAML

livingroom_start_playing_xbox_script:
sequence:
- service: script.livingroom_tvon_if_off
data: {}
- type: turn_on
device_id: ab5d0bc41be685464f6308e6a96f6bbe
entity_id: remote.xbox_remote
domain: remote
- service: media_player.select_source
target:
entity_id: media_player.living_room_tv
data:
source: XBOX Game Console
- service: remote.send_command
data:
device: irblaster-01
command: bddvd
target:
entity_id: remote.irblaster_01_remote
mode: single
alias: livingroom_start_playing_xbox
icon: mdi:microsoft-xbox
livingroom_start_watching_amazonprime:
alias: livingroom_start_watching_amazonprime
sequence:
- service: script.livingroom_tvon_if_off
data: {}
- service: media_player.select_source
target:
entity_id: media_player.living_room_tv
data:
source: Prime Video
- service: remote.send_command
data:
device: irblaster-01
command: bddvd
target:
entity_id: remote.irblaster_01_remote
mode: single
icon: mid:microsoft-xbox
livingroom_start_watching_youtube:
alias: livingroom_start_watching_youtube
sequence:
- service: script.livingroom_tvon_if_off
data: {}
- service: media_player.select_source
target:
entity_id: media_player.living_room_tv
data:
source: YouTube
- service: remote.send_command
data:
device: irblaster-01
command: bddvd
target:
entity_id: remote.irblaster_01_remote
mode: single
icon: mid:microsoft-xbox
livingroom_start_watching_hbomax:
alias: livingroom_start_watching_hbomax
sequence:
- service: script.livingroom_tvon_if_off
data: {}
- service: media_player.select_source
target:
entity_id: media_player.living_room_tv
data:
source: HBO Max
- service: remote.send_command
data:
device: irblaster-01
command: bddvd
target:
entity_id: remote.irblaster_01_remote
mode: single
icon: mdi:television
livingroom_start_watch_vodafone:
alias: livingroom_start_watch_vodafone
sequence:
- service: script.livingroom_tvon_if_off
data: {}
- service: media_player.select_source
target:
entity_id: media_player.living_room_tv
data:
source: HBO Max
- service: remote.send_command
data:
device: irblaster-01
command: bddvd
target:
entity_id: remote.irblaster_01_remote
mode: single
icon: mdi:television
livingroom_tvon_if_off:
alias: livingroom_tv_on_if_off
sequence:
- if:
- condition: device
device_id: 40438b8ef2cbd6e06c3a1835498c70f0
domain: media_player
entity_id: media_player.living_room_tv
type: is_off
then:
- service: wake_on_lan.send_magic_packet
data:
mac: B0:37:95:8D:06:78
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
mode: single
icon: mdi:television
livingroom_power_off:
alias: power
sequence:
- service: media_player.turn_off
data: {}
target:
entity_id: media_player.living_room_tv
mode: single