The double_tap_action for main entity not working when clicking on the entity's state
parautenbach opened this issue · comments
Double clicking works fine for the main entity when it's on the name/label, but not on the column with the (main entity's) state value.
Minimal example.
type: entities
entities:
- type: custom:multiple-entity-row
entity: switch.test_switch
state_header: Grid
tap_action:
action: more-info
double_tap_action:
action: toggle
confirmation: true
entities:
- entity: input_number.test_number
name: Target
See these messages and replies for more info:
#188 (comment)
#188 (comment)
#188 (comment)
My dummy-user-guess is that these tap_action
, double_tap_action
etc for the main entity's name come from a "standard HA library", and these "columns" (for additional entities & main entity's state) are custom elements...
Consider this as a demo & a kind of workaround:
Note a difference between confirmation dialogues.
The "name's" confirmation is STANDARD, the "column's" confirmation is CUSTOM.
Yeah, good guess. I think you're right. (I haven't built any custom cards – only custom components – so I don't know that side of the framework.)
So, my proposal for you is:
-- remove displaying the main entity's state
-- add the main sensor as ADDITIONAL;
-- define tap_action for this additional sensor to toggle.
A bit less elegant - but functional...
I can see that working, thank you.