Describe the bug
When using the card_light template, setting ulm_card_light_enable_popup: true does not correctly override the default toggle action for all card elements. Clicking the icon or the name/state area still performs a toggle action, while the desired more-info popup is expected. Manually adding a top-level tap_action or hold_action only applies to the card's background, not the main interactive elements like the icon and nameplate.
To Reproduce
Steps to reproduce the behavior:
Ensure browser_mod integration is correctly installed, configured, and working (verified by calling more-info from a standard type: button card).
Add a card_light to your dashboard using the configuration below.
Click directly on the light's icon or its name.
See that the light entity toggles on/off.
Expected behavior
When ulm_card_light_enable_popup: true is set, clicking anywhere on the card (including the icon and name area) should open the more-info dialog for the light entity, instead of toggling its state.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
The issue seems to stem from the internal structure of the button-card template used for card_light, where the default toggle action for specific elements (like icon or name) takes precedence over both the ulm_card_light_enable_popup variable and any top-level tap_action or hold_action defined by the user. We have confirmed that browser_mod is fully functional by successfully calling the more-info service from a standard HA button card.
Related Logs (can be found in the browser-console (F12))
Please add any JavaScript console errors that appear when clicking the card.
Related Card Config
The following card configuration demonstrates the issue:
- type: 'custom:button-card'
template: card_light
entity: light.mibedsidelamp2_d4a7
variables:
ulm_card_light_name: Lmpka nocna
ulm_card_light_enable_slider: true
ulm_card_light_enable_color: true
ulm_card_light_enable_popup: true
Describe the bug
When using the card_light template, setting ulm_card_light_enable_popup: true does not correctly override the default toggle action for all card elements. Clicking the icon or the name/state area still performs a toggle action, while the desired more-info popup is expected. Manually adding a top-level tap_action or hold_action only applies to the card's background, not the main interactive elements like the icon and nameplate.
To Reproduce
Steps to reproduce the behavior:
Ensure browser_mod integration is correctly installed, configured, and working (verified by calling more-info from a standard type: button card).
Add a card_light to your dashboard using the configuration below.
Click directly on the light's icon or its name.
See that the light entity toggles on/off.
Expected behavior
When ulm_card_light_enable_popup: true is set, clicking anywhere on the card (including the icon and name area) should open the more-info dialog for the light entity, instead of toggling its state.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
The issue seems to stem from the internal structure of the button-card template used for card_light, where the default toggle action for specific elements (like icon or name) takes precedence over both the ulm_card_light_enable_popup variable and any top-level tap_action or hold_action defined by the user. We have confirmed that browser_mod is fully functional by successfully calling the more-info service from a standard HA button card.
Related Logs (can be found in the browser-console (F12))
Please add any JavaScript console errors that appear when clicking the card.
Related Card Config
The following card configuration demonstrates the issue:
template: card_light
entity: light.mibedsidelamp2_d4a7
variables:
ulm_card_light_name: Lmpka nocna
ulm_card_light_enable_slider: true
ulm_card_light_enable_color: true
ulm_card_light_enable_popup: true