1
0

Add F1TV scripts & automations

Add script to start F1TV
 Update F1 automation to automatically start F1TV app
 Update F1 automation to automatically unjoin speakers
This commit is contained in:
Przemek Grondek 2022-07-22 00:43:39 +02:00
parent a388534a95
commit ce387c202b
3 changed files with 45 additions and 14 deletions

View File

@ -17,21 +17,13 @@
media_content_type: music media_content_type: music
target: target:
entity_id: media_player.bedroom entity_id: media_player.bedroom
- choose:
- conditions:
- condition: not
conditions:
- condition: state
entity_id: media_player.living_room
state: TV
attribute: source
sequence:
- service: sonos.join
data:
master: media_player.bedroom
entity_id: media_player.living_room
- service: sonos.join - service: sonos.join
data: data:
master: media_player.bedroom master: media_player.bedroom
entity_id: media_player.bathroom entity_id: media_player.bathroom
- service: script.tv_f1tv
- delay: '0:05:00'
- service: sonos.unjoin
data: { }
target:
entity_id: media_player.bathroom

View File

@ -255,6 +255,7 @@ media_player:
pl.redefine.ipla: IPLA pl.redefine.ipla: IPLA
com.amazon.amazonvideo.livingroom: Prime Video com.amazon.amazonvideo.livingroom: Prime Video
eu.hbogo.androidtv.production: HBO GO eu.hbogo.androidtv.production: HBO GO
com.formulaone.production: F1TV
state_detection_rules: state_detection_rules:
'com.netflix.ninja': 'com.netflix.ninja':
- 'media_session_state' - 'media_session_state'

View File

@ -73,6 +73,44 @@ tv_atv:
entity_id: media_player.sync_box entity_id: media_player.sync_box
data: data:
mode: video mode: video
tv_f1tv:
alias: tv F1
icon: mdi:android
sequence:
- choose:
- conditions:
- condition: state
entity_id: switch.harmonyhub_shield_tv
state: 'off'
sequence:
- service: switch.turn_on
entity_id: switch.harmonyhub_shield_tv
- service: media_player.select_source
data:
source: TV
target:
entity_id: media_player.living_room
- delay: 5
- service: androidtv.adb_command
data:
command: HOME
entity_id: media_player.nvidia_shield
- delay: 5
- service: media_player.select_source
data:
source: com.formulaone.production
target:
entity_id: media_player.nvidia_shield
- delay: 5
- service: androidtv.adb_command
data:
command: CENTER
entity_id: media_player.nvidia_shield
- service: huesyncbox.set_sync_mode
target:
entity_id: media_player.sync_box
data:
mode: video
tv_off: tv_off:
alias: 'TV Off' alias: 'TV Off'
icon: mdi:power icon: mdi:power