Lysshow: SpotifyPlus-entity indsat + coverfarve-variant (color_extractor) med knapper på alle 4 views
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
# Baseret på thlucas1's "SpotifyPlus Hue Lightshow"-blueprint:
|
||||
# https://github.com/thlucas1/homeassistant_blueprints/blob/master/spotifyplus/spotifyplus_hue_lightshow.md
|
||||
#
|
||||
# OBS: Kræver at SpotifyPlus-integrationen er sat op (Spotify Premium + OAuth).
|
||||
# Ret media_player.spotifyplus til den faktiske entity efter opsætning.
|
||||
# SpotifyPlus konfigureret 10/9 2026 — entity: media_player.spotifyplus_claus_dethlefsen
|
||||
|
||||
- id: lightshow_andreas
|
||||
alias: "Lysshow: Andreas"
|
||||
@@ -15,28 +14,28 @@
|
||||
entity_id: input_boolean.lightshow_andreas
|
||||
to: "on"
|
||||
- trigger: state
|
||||
entity_id: media_player.spotifyplus
|
||||
entity_id: media_player.spotifyplus_claus_dethlefsen
|
||||
attribute: media_content_id
|
||||
- trigger: state
|
||||
entity_id: media_player.spotifyplus
|
||||
entity_id: media_player.spotifyplus_claus_dethlefsen
|
||||
to: playing
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.lightshow_andreas
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: media_player.spotifyplus
|
||||
entity_id: media_player.spotifyplus_claus_dethlefsen
|
||||
state: playing
|
||||
actions:
|
||||
- variables:
|
||||
media_player_entity: media_player.spotifyplus
|
||||
media_player_entity: media_player.spotifyplus_claus_dethlefsen
|
||||
lights:
|
||||
- light.andreas_lysstrip
|
||||
- light.andreas_stol
|
||||
spotify_image_url: "{{ state_attr(media_player_entity, 'sp_nowplaying_image_url') }}"
|
||||
- action: spotifyplus.get_image_palette_colors
|
||||
data:
|
||||
entity_id: media_player.spotifyplus
|
||||
entity_id: media_player.spotifyplus_claus_dethlefsen
|
||||
image_source: "{{ spotify_image_url }}"
|
||||
color_count: 10
|
||||
color_quality: 1
|
||||
@@ -52,7 +51,7 @@
|
||||
entity_id: input_boolean.lightshow_andreas
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: media_player.spotifyplus
|
||||
entity_id: media_player.spotifyplus_claus_dethlefsen
|
||||
state: playing
|
||||
- condition: template
|
||||
value_template: "{{ spotify_image_url == state_attr(media_player_entity, 'sp_nowplaying_image_url') }}"
|
||||
@@ -79,28 +78,28 @@
|
||||
entity_id: input_boolean.lightshow_daniel
|
||||
to: "on"
|
||||
- trigger: state
|
||||
entity_id: media_player.spotifyplus
|
||||
entity_id: media_player.spotifyplus_claus_dethlefsen
|
||||
attribute: media_content_id
|
||||
- trigger: state
|
||||
entity_id: media_player.spotifyplus
|
||||
entity_id: media_player.spotifyplus_claus_dethlefsen
|
||||
to: playing
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.lightshow_daniel
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: media_player.spotifyplus
|
||||
entity_id: media_player.spotifyplus_claus_dethlefsen
|
||||
state: playing
|
||||
actions:
|
||||
- variables:
|
||||
media_player_entity: media_player.spotifyplus
|
||||
media_player_entity: media_player.spotifyplus_claus_dethlefsen
|
||||
lights:
|
||||
- light.daniel_lysstrip
|
||||
- light.bamse
|
||||
spotify_image_url: "{{ state_attr(media_player_entity, 'sp_nowplaying_image_url') }}"
|
||||
- action: spotifyplus.get_image_palette_colors
|
||||
data:
|
||||
entity_id: media_player.spotifyplus
|
||||
entity_id: media_player.spotifyplus_claus_dethlefsen
|
||||
image_source: "{{ spotify_image_url }}"
|
||||
color_count: 10
|
||||
color_quality: 1
|
||||
@@ -116,7 +115,7 @@
|
||||
entity_id: input_boolean.lightshow_daniel
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: media_player.spotifyplus
|
||||
entity_id: media_player.spotifyplus_claus_dethlefsen
|
||||
state: playing
|
||||
- condition: template
|
||||
value_template: "{{ spotify_image_url == state_attr(media_player_entity, 'sp_nowplaying_image_url') }}"
|
||||
@@ -143,21 +142,21 @@
|
||||
entity_id: input_boolean.lightshow_sovevaerelse
|
||||
to: "on"
|
||||
- trigger: state
|
||||
entity_id: media_player.spotifyplus
|
||||
entity_id: media_player.spotifyplus_claus_dethlefsen
|
||||
attribute: media_content_id
|
||||
- trigger: state
|
||||
entity_id: media_player.spotifyplus
|
||||
entity_id: media_player.spotifyplus_claus_dethlefsen
|
||||
to: playing
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.lightshow_sovevaerelse
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: media_player.spotifyplus
|
||||
entity_id: media_player.spotifyplus_claus_dethlefsen
|
||||
state: playing
|
||||
actions:
|
||||
- variables:
|
||||
media_player_entity: media_player.spotifyplus
|
||||
media_player_entity: media_player.spotifyplus_claus_dethlefsen
|
||||
lights:
|
||||
- light.sov_midt
|
||||
- light.sov_vindue
|
||||
@@ -167,7 +166,7 @@
|
||||
spotify_image_url: "{{ state_attr(media_player_entity, 'sp_nowplaying_image_url') }}"
|
||||
- action: spotifyplus.get_image_palette_colors
|
||||
data:
|
||||
entity_id: media_player.spotifyplus
|
||||
entity_id: media_player.spotifyplus_claus_dethlefsen
|
||||
image_source: "{{ spotify_image_url }}"
|
||||
color_count: 10
|
||||
color_quality: 1
|
||||
@@ -183,7 +182,7 @@
|
||||
entity_id: input_boolean.lightshow_sovevaerelse
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: media_player.spotifyplus
|
||||
entity_id: media_player.spotifyplus_claus_dethlefsen
|
||||
state: playing
|
||||
- condition: template
|
||||
value_template: "{{ spotify_image_url == state_attr(media_player_entity, 'sp_nowplaying_image_url') }}"
|
||||
@@ -210,21 +209,21 @@
|
||||
entity_id: input_boolean.lightshow_stue
|
||||
to: "on"
|
||||
- trigger: state
|
||||
entity_id: media_player.spotifyplus
|
||||
entity_id: media_player.spotifyplus_claus_dethlefsen
|
||||
attribute: media_content_id
|
||||
- trigger: state
|
||||
entity_id: media_player.spotifyplus
|
||||
entity_id: media_player.spotifyplus_claus_dethlefsen
|
||||
to: playing
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.lightshow_stue
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: media_player.spotifyplus
|
||||
entity_id: media_player.spotifyplus_claus_dethlefsen
|
||||
state: playing
|
||||
actions:
|
||||
- variables:
|
||||
media_player_entity: media_player.spotifyplus
|
||||
media_player_entity: media_player.spotifyplus_claus_dethlefsen
|
||||
lights:
|
||||
- light.pendle1
|
||||
- light.pendle2
|
||||
@@ -235,7 +234,7 @@
|
||||
spotify_image_url: "{{ state_attr(media_player_entity, 'sp_nowplaying_image_url') }}"
|
||||
- action: spotifyplus.get_image_palette_colors
|
||||
data:
|
||||
entity_id: media_player.spotifyplus
|
||||
entity_id: media_player.spotifyplus_claus_dethlefsen
|
||||
image_source: "{{ spotify_image_url }}"
|
||||
color_count: 10
|
||||
color_quality: 1
|
||||
@@ -251,7 +250,7 @@
|
||||
entity_id: input_boolean.lightshow_stue
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: media_player.spotifyplus
|
||||
entity_id: media_player.spotifyplus_claus_dethlefsen
|
||||
state: playing
|
||||
- condition: template
|
||||
value_template: "{{ spotify_image_url == state_attr(media_player_entity, 'sp_nowplaying_image_url') }}"
|
||||
|
||||
Reference in New Issue
Block a user