I’m struggling with this entity card and a lock entity for the last couple or hours;
- type: entities
entities:
- entity: lock.loqed_achterdeur
name: Achterdeur
- type: conditional # ACHTERDEUR LOCKED
conditions:
- entity: lock.loqed_achterdeur
state: 'locked'
row:
type: button
name: Achterdeur
entity_id: lock.loqed_achterdeur
action_name: 'ONTGRENDELEN'
icon: mdi:lock
tap_action:
action: call-service
service: lock.unlock
service_data:
entity_id: lock.loqed_achterdeur
confirmation:
text: Wil je de achterdeur ontgrendelen?
- type: conditional # ACHTERDEUR UNLOCKED
conditions:
- entity: lock.loqed_achterdeur
state: 'unlocked'
row:
type: button
name: Achterdeur
entity_id: lock.loqed_achterdeur
action_name: 'VERGRENDELEN'
icon: mdi:lock-open-variant
tap_action:
action: call-service
service: lock.lock
service_data:
entity_id: lock.loqed_achterdeur
confirmation:
text: Wil je de achterdeur vergrendelen?
I would like to have a confirmation text, which I think is necessary, when locking or unlocking a lock AND a yellow colored icon whenever the state of the lock is ‘unlocked’.
The confirmation text doesn’t seem to be possible with the normal - entity: lock.loqed_achterdeur
and with a conditional card there is no possibility to color the icon. I tried card-mod but that doesn’t work with conditional cards unfortunately.
Is there another option to have a confirmation text AND a colored icon?