lovelace-multiple-entity-row: Actions trigger the more-info window

Hi,

I have this entity:

image

which checks the status and can restart an ESP32 on esphome

the code is:

              - entity: binary_sensor.trackerterrazzaconnected
                show_state: false
                icon: mdi:car-esp
                type: custom:multiple-entity-row
                name: Terrazza
                entities:
                  - entity: sensor.trackerterrazza_signal
                    state_color: true
                    name: RSSI

                  - entity: sensor.trackerterrazza_uptime
                    state_color: true
                    name: uptime
                    format: total

                  - entity: binary_sensor.trackerterrazzaconnected
                    icon: mdi:wifi
                    state_color: true
                    name: false
                    tap_action:
                      action: call-service
                      service: switch.turn_on
                      service_data:
                        entity_id: switch.trackerterrazzarestart
                      confirmation:
                        text: "Restart ESP Terrazza?"

Since 2021.12.b0 (and still now on 2021.12.0) when I click on the wifi icon the action is performed but it also opens the more-info window of the main element: binary_sensor.trackerterrazzaconnected. The window opens even if I click cancel in the confirmation.

I have other similar entities, and it happens on all of them, except on those that have an input text as their main entity.

It did not happen with HA 2021.11.5.

Thanks

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 4
  • Comments: 61 (6 by maintainers)

Commits related to this issue

Most upvoted comments

HA added a new action handler on the generic-entity-row which (intentionally or not) intercepts clicks on any additional entities added with multiple-entity-row. It still works as normal with some entity domains (like switch or light) because they disable this action handler for these specific domains.

Working on finding a workaround for this…

No, still not working with 2021.12.2

What is not working is more-info on hold/double tap action when different than main entity is specified (desktop, mobile).

See #188.

Closing issue, thanks for all feedback 🙂

I have exactly the same problem, so I’ve looked for other options.

My temporary solution works only on desktop and it disables the more-info of the main element, but you can use the entities normally.

tap_action: none
hold_action: none
double_tap_action: none

Hope a more permanent solution is found.

… not sure if it still requires a fix on the this integrations side?

It does. Should be fixed in version 4.3.2 (clear cache, etc…).

There will likely come a fix for this issue from HA, soon. See #10961 for more info.

@Arman-GeDon Your code snippet does not show specific tap actions set for the entities (which might m be required for more info to show on switches). A screen recording might be helpful, otherwise it’s not clear why desktop isn’t working for you

Same here: ok on browser, no ok on mobile (IOS companion app).

It’s visible on a desktop controlled with a mouse

Hi, i have the same issue, but found out, that as long, as the main entity is a switch or light domain, everything works fine. As soon, as the main entity is any other domain (i.e. a binary_sensor), tap actions on entities are no longer working on touch devices. On a desktop everything works fine with a mouse!

Example: The first row uses a switch as main entity - tap_action works fine. The second row uses a binary_sensor (i.e. a template sensor to customize the icon and state depending on the state of a different entity) - tap_action does not work since 2021.12.

type: entities
entities:
  - type: custom:multiple-entity-row
    entity: switch.switch_1
    show_state: false
    tap_action: none
    entities:
      - entity: switch.switch_1
        tap_action:
          action: toggle
  - type: custom:multiple-entity-row
    entity: binary_sensor.binary_sensor_1
    show_state: false
    tap_action: none
    entities:
      - entity: switch.switch_1
        tap_action:
          action: toggle

Switching back to HA 2021.11.5, everything works fine again!!

@benct Seems working on mobile after clearing app cach. Big thanks!

@benct I see that the frontend fix mentioned made it into 2021.12.4 today. I updated but unfortunately am still seeing this issue on mobile, not sure if it still requires a fix on the this integrations side?

Thanks!

Thanks for looking into this issue. I noticed that the paper-buttons-row plugin which is quite similar to multiple-entity-row seems to be immune to the problem. Perhaps we could learn something from how it wires up its action handlers.

@NickM-27 My bad, you’re right. I was wrongly using attributes and not entities for sensors, which of course leads to main entity (attributes don’t have history). Desktop browser works

Desktop, Win10x64, Chrome: works fine

iPad Air 2 (iOS 15.x): tapping on secondary entities leads to more-info for the main entity

iPhone 5S (iOS 12.x): tapping on secondary entities :

  • either leads to more-info for the this entity
  • or does nothing

P.S. I stopped thinking about iOS companion app, it seems too buggy for me.

Latest update fixed this for me. Thank you!

EDIT: Yeah only on desktop. Mobile still has the issue (iOS).

Should (hopefully) be fixed in version 4.3.0. Edit: Seemingly still broken on mobile.

(remember to clear cache, hard refresh, check version in console, etc.)