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

Add click event to entity widgets #3488

Open
torwag opened this issue Apr 23, 2023 · 2 comments
Open

Add click event to entity widgets #3488

torwag opened this issue Apr 23, 2023 · 2 comments
Labels
enhancement New feature or request widget

Comments

@torwag
Copy link

torwag commented Apr 23, 2023

Is your feature request related to a problem? Please describe.

An entity widget depicts the current value of an entity. I somehow expect clicking on the widget to be guided to a more detailed page of the home assistant companion app. E. g. to see a graph of said entity with historical values.
Describe the solution you'd like

As people expect different actions, a generic solution, within the setup, enable the user to define an action, might be the best way to go. A on-click parameter could be set by default to "trigger update" as it is right now. However, one could also select "open dashboard", "open entity graph of the last x hours" and potentially other actions.
That would give people a lot of customisation options.

Describe alternatives you've considered, if any

Open the app, select the dashboard resp. the entity graph.

Additional context

@torwag torwag added the enhancement New feature or request label Apr 23, 2023
@dshokouhi
Copy link
Member

The problem with this request is that the current click action is designed to update the widget on tap. This will be a behavior change that will impact all users. Have you considered using the shortcuts feature that will open the entity and/or specific dashboard. I think that will make the most sense here to avoid a breaking change. It's best to avoid adding too many features that need to be maintained when there are existing features that already do what is requested.

@torwag
Copy link
Author

torwag commented Apr 24, 2023

Thanks for looking into this.
I think there is no need for a breaking change, as the default / none configured function could be exactly what it is now, update the widget.

Only if a user decides to trigger another action on click, that behavior would change.

I think this feature also originates from the actual behavior in the HA web frontend, where one often will be able to open a history graph clicking on a dashboard widget.

I will look into shortcuts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request widget
Projects
None yet
Development

No branches or pull requests

2 participants