Hi, for some reason popups are not working at all. When the value is set to true, nothing happens. If there is no value set, more-info will appear when the card is held. I see the same behavior for light popups and media popups so far.
Add a template like -red_no_state. Scripts have no state, and that variable is looking to toggle color on/off based on the _button_state variable. You could also attach it to an input boolean, but that would introduce issues of keeping track of on/off state for something that doesnāt have a state.
- type: 'custom:button-card'
template:
- card_vertical_button
- red_no_state
entity: script.l2_apply_scene_movie
name: Movie
icon: mdi:movie-open
show_last_changed: false
variables:
ulm_card_vertical_button_state: On
ulm_card_vertical_button_color: red
And I have a generic card but it could be another one. How can I override the behaviour of tap action? I try to setup on action on tap to show a custom poup but it doesnāt work everytime it does the default action. For example for light entity switch on/off.
The generic card does not have a tap action, it only displays information. You would have to use a different card that is more suitable to your needs, but Iām not sure what you are trying to use as the main entity.
But the scripts card can be used to perform arbitrary actions. But for light entities I would use the light card and just enable popups.
Hello, I am trying to add confirmation to a button, but this only works on the outermost part of the button, not on the icon or name. How can I make this work on the entire button? Thanks.
- 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?
However, in my mobile app I canāt refresh the dashboard and it keeps the first test I did. It keeps all in cache. I tried to empty cache of the app but nothing has changed.
is there a way to remove it and get the latest version?
Ok I finally found the issue if you accede remotely and your website depends on cloudflare. You should remove cache on the cloudflare by creating caching rule bypass cache.