-
Hello,
|
Beta Was this translation helpful? Give feedback.
Answered by
damaro241
Nov 26, 2023
Replies: 1 comment
-
Figured out the template, looks like you need to also specify the icon, not just the color:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
damaro241
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Figured out the template, looks like you need to also specify the icon, not just the color:
type: custom:room-card
hide_title: true
templates:
template:
show_icon: true
tap_action:
action: more-info
hold_action:
action: more-info
icon:
conditions:
- icon: mdi:door-open
condition: equals
value: 'on'
styles:
color: red
- icon: mdi:door-closed
condition: equals
value: 'off'
styles:
color: green
template:
show_icon: true
tap_action:
action: more-info
hold_action:
action: more-info
icon:
conditions:
- icon: mdi:window-open
condition: equals
value: 'on'
styles:
color: red
- icon: mdi:window-closed
condition: equals
value: 'off'
styles:
colo…