I am working on a card for my Tesla. As you can see, the ‘secure’ state for everything is Blue, yet the alarm is yellow when it is on; it’s a switch. How do I reverse that so it’s yellow if it is off?
- type: 'custom:vertical-stack-in-card'
title: Tesla Model 3
cards:
- type: picture-elements
card_mod:
class: hki
image: /local/images/model3.png
elements:
# DOOR LOCKS
- type: state-icon
icon: mdi:car-key
entity: lock.lycklig_door_lock
tap_action:
action: toggle
style:
'--paper-item-icon-color': blue
left: 10%
top: 5%
- type: state-label
entity: lock.lycklig_door_lock
style:
color: Black
left: 10%
top: 13%
# ALARM / SENTRY MODE
- type: state-icon
icon: mdi:security
entity: switch.lycklig_sentry_mode_switch
tap_action:
action: toggle
#state_color: false
style:
'--paper-item-icon-color': blue
left: 30%
top: 5%
- type: state-label
entity: switch.lycklig_sentry_mode_switch
style:
color: black
left: 30%
top: 13%
# FRUNK
- type: state-icon
icon: mdi:car
entity: lock.lycklig_frunk_lock
tap_action:
action: toggle
confirmation:
text: Open the Frunk?
style:
'--paper-item-icon-color': blue
left: 50%
top: 5%
- type: state-label
entity: lock.lycklig_frunk_lock
style:
color: black
left: 50%
top: 13%
# TRUNK
- type: state-icon
icon: mdi:car-back
entity: lock.lycklig_trunk_lock
tap_action:
action: toggle
confirmation:
text: Open the trunk?
style:
'--paper-item-icon-color': blue
left: 70%
top: 5%
- type: state-label
entity: lock.lycklig_trunk_lock
style:
color: black
left: 70%
top: 13%
# CHARGER
- type: state-icon
icon: mdi:ev-plug-tesla
entity: lock.lycklig_charger_door_lock
tap_action:
action: toggle
confirmation:
text: Open the trunk?
style:
'--paper-item-icon-color': blue
left: 90%
top: 5%
- type: state-label
entity: lock.lycklig_charger_door_lock
style:
color: black
left: 90%
top: 13%