android icon indicating copy to clipboard operation
android copied to clipboard

Add support for Add to shortcut

Open TimoPtr opened this issue 6 months ago • 3 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 Shortcut.

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

  • we need to adjust the logic of EntityAddToHandler to only enable the shortcut option if we have a shortcut left to fill (current max is 5) otherwise it should be shown but marked as disabled.
  • we need to adjust the ManageShortcutsSettingsFragment to be able to take a parameter the entity ID selected and put it into the next available slot

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

TimoPtr avatar Aug 05 '25 14:08 TimoPtr

@TimoPtr can I work on this

ujjol1234 avatar Sep 29 '25 13:09 ujjol1234

@TimoPtr can I work on this

Not yet unfortunately I need to finish the frontend part.

TimoPtr avatar Sep 29 '25 13:09 TimoPtr

This can be worked on since the PR on the frontend and android have been merged.

TimoPtr avatar Nov 10 '25 11:11 TimoPtr