The new Tile card is awesome. It currently has only 2 action types - tap and icon tap. It’d be great if a hold Action for both can also be added!
Thanks
kol
November 4, 2022, 12:37pm
2
I would like also to have double-tap action as well.
2 Likes
nichivo
December 26, 2022, 5:05am
3
Yep, the Tile card is looking good, but it would be good to show the “More Info” panel (or another action) by holding the card. Assigning this different action to the icon makes it too easy for users to accidentally trigger the wrong action on phones where the tile is pretty small.
I’ve set my icon action to ping zwave devices, but I can’t do that for bulbs because I need ‘more info’ to reach the color temp slider and color picker. Retaining a hold action would be great!
double tap, just as in mushroom cards would be great as well
Both hold and double tap actions have been released in 2023.12 but are not available to configure through the UI so to use them you need to manually update the yaml.
4 Likes
This is a great addition, thank you!
Would it be possible to also introduce hold_icon_action
?
1 Like
Aasikki
(Iisakki Kaaretkoski)
January 28, 2024, 11:37am
10
Seems like it’s already planned, as the card already has a really nice animation for when you hold the icon! It just activates the icon tap action for now.
1 Like
martindybal
(Martin Dybal)
September 14, 2024, 5:15am
11
The pr was merged. It’ll be introduced in 2024.10
home-assistant:dev
← martindybal:feature/tile-card-icon-hold-and-icon-double-tap-
opened 11:02AM - 11 Sep 24 UTC
<!--
You are amazing! Thanks for contributing to our project!
Please, DO N… OT DELETE ANY TEXT from this template! (unless instructed).
-->
## Proposed change
<!--
Describe the big picture of your changes here to communicate to the
maintainers why we should accept this pull request. If it fixes a bug
or resolves a feature request, be sure to link to that issue or discussion
in the additional information section.
-->
Added icon_hold_action and icon_double_tap_action for the Tile card.
The hold and double tap actions option has been introduced in PR https://github.com/home-assistant/frontend/pull/18345. But the hold or double tap icon is not supported. And a hold tap on an icon invokes icon_action not hold_action.
This is probably a bug because tap was used in any action.
https://github.com/home-assistant/frontend/blob/b48a28f2a62fe3955ef3c79b7534c64ce4a9b261/src/panels/lovelace/cards/hui-tile-card.ts#L140
This pr will allow the user to apply the same hold action to the content and the icon.
## Type of change
<!--
What type of change does your PR introduce to the Home Assistant frontend?
NOTE: Please, check only 1! box!
If your PR requires multiple boxes to be checked, you'll most likely need to
split it into multiple PRs. This makes things easier and faster to code review.
-->
- [ ] Dependency upgrade
- [ ] Bugfix (non-breaking change which fixes an issue)
- [x] New feature (thank you!)
- [ ] Breaking change (fix/feature causing existing functionality to break)
- [ ] Code quality improvements to existing code or addition of tests
## Example configuration
<!--
Supplying a configuration snippet, makes it easier for a maintainer to test
your PR.
-->
```yaml
icon_hold_action:
action: navigate
navigation_path: /config
icon_double_tap_action:
action: navigate
navigation_path: /config
```
## Additional information
<!--
Details are important, and help maintainers processing your PR.
Please be sure to fill out additional details, if applicable.
-->
- This PR fixes or closes issue: fixes #
- This PR is related to issue or discussion: https://community.home-assistant.io/t/hold-action-for-tile-card/481666
- Link to documentation pull request: https://github.com/home-assistant/home-assistant.io/pull/34706
## Checklist
<!--
Put an `x` in the boxes that apply. You can also fill these out after
creating the PR. If you're unsure about any of them, don't hesitate to ask.
We're here to help! This is simply a reminder of what we are going to look
for before merging your code.
-->
- [x] The code change is tested and works locally.
- [ ] There is no commented out code in this PR.
- [ ] Tests have been added to verify that the new code works.
If user exposed functionality or configuration variables are added/changed:
- [x] Documentation added/updated for [www.home-assistant.io][docs-repository]
<!--
Thank you for contributing <3
-->
[docs-repository]: https://github.com/home-assistant/home-assistant.io
## Summary by CodeRabbit
- **New Features**
- Enhanced tile card interactions with new options for hold and double tap actions.
- Expanded configuration options for tile cards to allow for more interactive user experiences.
These updates improve user engagement by enabling more nuanced control over tile card responses to gestures.