Loving the new badges (yes, Ive found the way to customize them ) but really missing the option to set both tap_action
And hold_action
in the UI
please add hold_action
to the view badges, so we can tap to get more-info
, and hold to navigate
to another view (or anything else of course)
hold_action:
action: navigate
navigation_path: /ui-settings/security_settings
Iāve set that order of action to all cards in my config, core and custom, but Badges still can not do that.
other reason to add hold_action
:
prevent accidental clicking and requiring a hold for the action to perform
making this not only a YAML option, but UI too please
Please add?
Whoa, as in there is a way to finally card_mod them? That would save me from posting my WTH!
haha yes, check this . O and this
So am I right that this doesnāt actually card_mod the badges in their default position, but only if theyāre put elsewhere in the dashboard via the custom cards?
not sure what youāre asking, but lets not pollute the WTH with side steps.
please ping me in card-mod thread so we can discuss what ever mod you like ok?
pove
December 19, 2024, 8:28am
6
Yeah, I would like that. I use the new badges to trigger scenes and it would be nice to have the hold action to show the more info card.
pove
December 31, 2024, 1:42pm
7
I have a recent script that I action with a badge. Iāve just tried to check last triggered date by holding the tap, but it just triggered. And then impossible to cancel it from the badge.
Iām starting to really need the hold action in new badgesā¦
These actions are already available for Entity badges, although only via YAML.
In the PR for the Tile card when additional actions were added, it was explained that these actions were deliberately not included in the GUI for reasons of easiness of use.
Yes, and this WTH is to get them in the UI for ease of use nonetheless
Thatās also what I would prefer, but from the explanation it seems that it was on purpose. Voted!
1 Like
Fanful
January 2, 2025, 3:32pm
11
The hold action was later added to the GUI in this PR:
home-assistant:dev
ā redxtech:tile-config-visual-hold-action
opened 08:06PM - 20 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.
-->
This change adds the `hold_action` config option to the visual editor for the tile card.
As someone who uses a lot of tiles, I almost always set both `tap_action` and `icon_tap_action` to `toggle`, so it makes a lot of sense to use `hold_action` for `more-info`.
Since there is only visual editor support for `tap_action` and `icon_tap_action`, it becomes fairly cumbersome and annoying to have to drop an element into YAML mode just to add a `hold_action`, since it removes the very capable dynamic configuration of the tile card.
As I'm fairly certain that I'm not the only one who makes extensive use of the `hold_action`, I feel it would make sense to include the it in the visual editor.
## 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
type: tile
entity: light.ceiling_light
tap_action:
action: toggle
hold_action:
action: more-info
```
## 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:
- Link to documentation pull request:
## 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.
- [x] 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:
- [ ] 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**
- Introduced a new optional `hold_action` property in the tile card editor, allowing users to define actions triggered by holding a tile.
- Added a schema entry for `hold_action`, enhancing the user interface for action configuration.
So at least it shows that the team is reasonable about the topic, so I think thereās a chance for badges to get it too.
1 Like