Open KaoruKanon opened 2 years ago
A template in any service
will be called on button initial render. That is because I need to verify what the user wants to do and disable pointer-events in certain cases.
Why use hass.callService
? You can simply assign this as your tap_action:
- type: custom:button-card
name: Mettre à jour les horaires
icon: mdi:refresh
style: |
ha-card {
margin-left: 70%;
margin-bottom: 1em;
background: #2e3333 !important;
border-radius: 0.6em !important;
margin-top: -20px;
}
tap_action:
action: call-service
service: browser_mod.toast
service_data: 'Rafraîchissement de la consommation...'
template: icon_name
Checklist
Describe the bug
When I open a popup with browser_mod from a button-card, the button-car in the popup activates itself and I can't activate it myself. The problem does not occur with a type: button
Version of the card Version: 3.4.2
To Reproduce This is the configuration I used: ui-lovelace.yaml (the part of concened)
maison_data_kwh.yaml (please look the end):
Screenshots
Expected behavior When I do a long click on the first button-card, it opens the popup and then I can click the button-card of the popup that does actions
Desktop:
All Other device is concerned