Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: pick any entity for tap_action, hold_action #131

Open
arigit opened this issue Oct 6, 2024 · 1 comment
Open

Feature Request: pick any entity for tap_action, hold_action #131

arigit opened this issue Oct 6, 2024 · 1 comment

Comments

@arigit
Copy link

arigit commented Oct 6, 2024

My use case: I use template entity row to aggregate data from multiple sensors, e.g. temp and humidity, as in the example below.
when the entity is tapped, I want to display more-info for one of the sensors, and when the entity is "hold" (or double tapped etc) I want to display more-info for another sensor.

This functionality is supported in multiple-entity-row and custom-button-card, they support the syntax I include in the example below. Could template-entity-row support the same?

      - type: entities
        title: Cold Room
        entities:
          - type: custom:template-entity-row
            name: Temp | Humidity
            icon: mdi:thermometer-water
            state: "{{ states('sensor.zw100_cold_room_air_temperature') + ' °C | ' + states('sensor.zw100_cold_room_humidity') + ' %' }}"
            entity: sensor.zw100_cold_room_humidity
            tap_action:
              entity: sensor.zw100_cold_room_air_temperature
              action: more-info
            hold_action:
              entity: sensor.zw100_cold_room_humidity
              action: more-info       
@ildar170975
Copy link

According to the Docs, the card supports standard Actions.
Hopefully in some future HA release we will be able to use more-info for a different entity - there is a corresponding PR in HA frontend GitHub.
So, probably this feature will become available for template-entity-row as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants