Hey there,
I’m for a year now with Home Assistant, many thx to everybody who developed this very nice product.
I’ve an issue with my and need some guidance, below my lovelace configuration.
There are two hue play devices configured with the hue bridge and attached to my Philips OLED
I want to see the color change of the hue’s live on my dashboard, which works pretty well. Also my living room lamp color is show as it is.
But, every second the dashboard is refreshing and I don’t know why.
Any suggestions are much appreciated.
thx
views:
- theme: Backend-selected
title: Home
type: panel
badges: []
cards:
- type: custom:config-template-card
entities:
- sun.sun
- light.living_room_light
- light.hue_play_1
- light.hue_play_2
- light.65oled876_12_ambilight
- binary_sensor.ikea_of_sweden_tradfri_motion_sensor_motion
card:
type: picture-elements
image: /local/images/floorplan/apartment_dark.png
elements:
- type: image
action: none
entity: sun.sun
state_image:
above_horizon: /local/images/floorplan/apartment_day.png
below_horizon: /local/images/floorplan/apartment_dark_transparent.png
style:
top: 100%
left: 50%
width: 100%
tap_action:
action: none
hold_action:
action: none
- type: image
entity: light.living_room_light
image: /local/images/floorplan/apartment_living_room_light_on.png
tap_action:
action: none
hold_action:
action: none
style:
top: 50%
left: 50%
width: 100%
mix-blend-mode: lighten
opacity: >-
${ states['light.living_room_light'].state === 'on' ?
(states['light.living_room_light'].attributes.brightness /
255) : 0 }
filter: >-
${ states['light.living_room_light'].attributes.hs_color ?
"brightness(0.5) sepia(1) saturate(1000%) hue-rotate(" + (
states['light.living_room_light'].attributes.hs_color[0] - 12)
+ "deg)" : "none"}
- type: image
entity: light.hue_play_1
image: /local/images/floorplan/apartment_hue_right_light_on.png
tap_action:
action: none
hold_action:
action: none
style:
top: 50%
left: 50%
width: 100%
mix-blend-mode: lighten
opacity: >-
${ states['light.hue_play_1'].state === 'on' ?
(states['light.hue_play_1'].attributes.brightness / 255) : 0 }
filter: >-
${ states['light.hue_play_1'].attributes.hs_color ?
"brightness(0.5) sepia(1) saturate(1000%) hue-rotate(" + (
states['light.hue_play_1'].attributes.hs_color[0] - 12) +
"deg)" : "none"}
- type: image
entity: light.hue_play_2
image: /local/images/floorplan/apartment_hue_left_light_on.png
tap_action:
action: none
hold_action:
action: none
style:
top: 50%
left: 50%
width: 100%
mix-blend-mode: lighten
opacity: >-
${ states['light.hue_play_2'].state === 'on' ?
(states['light.hue_play_2'].attributes.brightness / 255) : 0 }
filter: >-
${ states['light.hue_play_2'].attributes.hs_color ?
"brightness(0.5) sepia(1) saturate(1000%) hue-rotate(" + (
states['light.hue_play_2'].attributes.hs_color[0] - 12) +
"deg)" : "none"}
- type: state-icon
entity: light.living_room_light
tap_action:
action: toggle
style:
top: 32%
left: 44%
- type: state-icon
entity: light.hue_play_1
tap_action:
action: toggle
style:
top: 23%
left: 45.5%
- type: state-icon
entity: light.hue_play_2
tap_action:
action: toggle
style:
top: 23%
left: 38%
- type: state-icon
entity: binary_sensor.ikea_of_sweden_tradfri_motion_sensor_motion
style:
top: 70%
left: 44%