android icon indicating copy to clipboard operation
android copied to clipboard

Add support for Add to button widget

Open TimoPtr opened this issue 3 months ago • 5 comments

We've introduced Add to feature in https://github.com/home-assistant/android/pull/5622 and it would be nice to extend it to Button widget.

The UI for selecting an action is available starting from HA core 2025.12.0 or (in nightly/dev).

  • we need to define a new action in EntityAddToAction for Button widget
  • we need to adjust the logic of EntityAddToHandler to add the action when it makes sense
  • modify ButtonWidgetConfigureActivity to take the entity as parameter and prefill the selected entity

In this task you will also have to update the unit tests in EntityAddToHandler

TimoPtr avatar Nov 10 '25 12:11 TimoPtr

Hello, "Add to button" shows only when user have admin rights. For multiple fammily users this function is not available. HA 2025.12 + 2025.11.4 app on Android.

KelArth avatar Dec 04 '25 14:12 KelArth

Indeed, but this is the wrong place to add this comments. It needs to be addressed on the frontend side. Could you open an issue there and tag me? I'm going to look at how we could expose it.

TimoPtr avatar Dec 05 '25 08:12 TimoPtr

I did create the ticket and open a PR for the fix https://github.com/home-assistant/frontend/pull/28365

TimoPtr avatar Dec 05 '25 09:12 TimoPtr

Is this issue still open ?

Sakthi-Developer avatar Dec 06 '25 14:12 Sakthi-Developer

If you mean the issue about adding button widget yes it's still open. The issue about non admin user is closed but not yet released on the frontend.

TimoPtr avatar Dec 06 '25 15:12 TimoPtr