home-assistant / home-assistant/android

Add support for Add to button widget

Open
#6,025 5 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Kotlin
Stars
3.9k
Forks
1.1k
Avg merge
1d 12h
Merged PRs (30d)
81

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.