I have a button entity and if I put it into a buttons row of the Entities card, the resulting button doesn’t represent the button entity itself. Instead it creates a new button, and the default behavior of that is to open the entity detailed information for the button entity, instead of executing the entity’s tap_action
.
Example, put this into the Entites card configuration UI:
type: entities
entities:
- type: buttons
entities:
- entity: button.some_button_entity
I think I could work around this by setting the tap_action
to trigger the tap_action
from the button entity itself (I’m still working out how to do that), but it definitely seems like the buttons row should handle this for me.
Am I missing some configuration on the card that will make this work automatically?
toggle
is the default tap action, but some cards overwrite default to more-info
if the provided entity cannot be toggled. There is no toggle action for button
or input_button
entities, so more-info
is a reasonable fall back, based on the docs.
type: entities
entities:
- type: buttons
entities:
- entity: button.some_button_entity
name: Some Button
tap_action:
action: perform-action
perform_action: button.press
target:
entity_id: button.some_button_entity
1 Like
Awesome, thanks for the explanation! And that example is exactly what I was trying to put together for the workaround!
What would be the best path for me to suggest changing this with a feature request for HA? It seems like the user’s intent by providing a button entity in this row is pretty clear, so it’d be great if they didn’t need to re-set-up the action for each usage like this.