Forssux
(Guy Forssman)
July 5, 2024, 2:20pm
1
Hi There,
At home I have a bunch of Wiz lights. I grouped them together as Living.
I like this card
However the colors aren’t working for my Wiz lights, which is fine. I would like these colored cirkels to be buttons for some of the predefined Wiz effects.
Can this be done? Maybe somebody has already done this? Who can help me? This would be highly appreciated.
Forssux
(Guy Forssman)
July 9, 2024, 2:18pm
2
So I found a working solution in the fine documentaion .
Mine is now like:
type: entities
show_header_toggle: false
entities:
- entity: light.living
- type: custom:rgb-light-card
entity: light.living
colors:
- type: call-service
service: light.turn_on
service_data:
entity_id: light.living
effect: Cool white
icon_color: '#ffffff'
- type: call-service
service: light.turn_on
service_data:
entity_id: light.living
effect: Warm
icon_color: '#fcfae8'
- type: call-service
service: light.turn_on
service_data:
entity_id: light.living
effect: TV time
icon_color: '#fff5b6'
- type: call-service
service: light.turn_on
service_data:
entity_id: light.living
effect: TV time
icon_color: '#2a456b'
- type: call-service
service: light.turn_on
service_data:
entity_id: light.living
effect: Christmas
icon_color: >-
center/70% no-repeat
url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20id%3D%22mdi-tree%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%233B753F%22%20d%3D%22M11%2C21V16.74C10.53%2C16.91%2010.03%2C17%209.5%2C17C7%2C17%205%2C15%205%2C12.5C5%2C11.23%205.5%2C10.09%206.36%2C9.27C6.13%2C8.73%206%2C8.13%206%2C7.5C6%2C5%208%2C3%2010.5%2C3C12.06%2C3%2013.44%2C3.8%2014.25%2C5C14.33%2C5%2014.41%2C5%2014.5%2C5A5.5%2C5.5%200%200%2C1%2020%2C10.5A5.5%2C5.5%200%200%2C1%2014.5%2C16C14%2C16%2013.5%2C15.93%2013%2C15.79V21H11Z%22%20%2F%3E%3C%2Fsvg%3E"),
#fffff
- type: call-service
service: light.turn_on
service_data:
entity_id: light.living
effect: Fireplace
icon_color: '#20d2fc'
- type: call-service
service: light.turn_on
service_data:
entity_id: light.living
effect: Party
icon_color: '#20d2fc'
state_color: true