From 895126ecb9e89e3390611d1b9b814d5941cabd56 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Sat, 7 Mar 2020 11:33:53 +0200 Subject: [PATCH] Initial nvidia and tv config and scripts --- lovelace/00_home.yaml | 14 ++++++++++++++ packages/devices/tv.yaml | 34 +++++++++++++++++----------------- 2 files changed, 31 insertions(+), 17 deletions(-) diff --git a/lovelace/00_home.yaml b/lovelace/00_home.yaml index 6d18149..13c166a 100644 --- a/lovelace/00_home.yaml +++ b/lovelace/00_home.yaml @@ -19,6 +19,7 @@ cards: entities: - entity: switch.camera - entity: media_player.living_room_tv + - entity: media_player.nvidia_shield - entity: fan.philips_airpurifier show_header_toggle: false @@ -35,6 +36,19 @@ cards: show_source: true source: full + - type: "custom:mini-media-player" + artwork: cover + entity: media_player.spotify_georgi_grdev + hide: + power_state: false + shuffle: false + idle_view: + when_idle: true + when_standby: true + platform: sonos + show_source: true + source: full + - type: entities title: Manual Overrides entities: diff --git a/packages/devices/tv.yaml b/packages/devices/tv.yaml index ecc5666..454ce8d 100644 --- a/packages/devices/tv.yaml +++ b/packages/devices/tv.yaml @@ -1,18 +1,18 @@ -# script: -# tv_chill: -# alias: TV Chill -# sequence: -# - service: media_extractor.play_media -# data: -# entity_id: media_player.living_room_tv_2 -# media_content_id: "https://www.youtube.com/watch?v=UgHKb_7884o" -# media_content_type: video/youtube +script: + tv_chill: + alias: TV Chill + sequence: + - service: media_extractor.play_media + data: + entity_id: media_player.shield + media_content_id: "https://www.youtube.com/watch?v=UgHKb_7884o" + media_content_type: video/youtube -# latest_pds: -# alias: Play the latest PDS -# sequence: -# - service: media_extractor.play_media -# data_template: -# entity_id: media_player.living_room_tv_2 -# media_content_id: "{{ state_attr('sensor.philip_defranco', 'url') }}" -# media_content_type: video/youtube + latest_pds: + alias: Play the latest PDS + sequence: + - service: media_extractor.play_media + data_template: + entity_id: media_player.shield + media_content_id: "{{ state_attr('sensor.philip_defranco', 'url') }}" + media_content_type: video/youtube