- type: "custom:button-card"
template: card_power_outlet
variables:
ulm_card_power_outlet_name: NAS
ulm_card_power_outlet_icon: "mdi:nas"
entity: switch.nas
confirmation:
text: Are you sure you want to press this button?
i've also tried it withtap_action, but its still the same.
- type: "custom:button-card"
template: card_power_outlet
variables:
ulm_card_power_outlet_name: NAS
ulm_card_power_outlet_icon: "mdi:nas"
entity: switch.nas
tap_action:
action: call-service
service: switch.toggle
service_data:
entity_id: switch.nas
confirmation:
text: Are you sure you want to press this button?
Hello, i am trying to add confirmation on a button according to the underlying button-card component https://github.com/custom-cards/button-card?tab=readme-ov-file#confirmation, but this works only on the most outer part of the button, not for the icon or name.
i've also tried it with
tap_action
, but its still the same.