With Android 11, the Quick Access Device Controls feature is introduced. See https://developer.android.com/preview/features/device-control for more information.
I know that Android 11 is currently still in Beta, but it would be nice to support this feature already before the official release to mature the support.
I started playing with the new API and put together a very WIP app: https://github.com/ofalvai/hass-android-controls
The basics are working very well, clone my repo and build the app locally if you're interested.
Edit: here's a gif showing it in action:

Is this something that will also be supported by the Google Home app which I imagine most of us already have setup? I was just reading the linked docs and noticed they called it out. If we already have nabu casa or a manual setup of google_assistant I believe it should pull everything synced up from that integration right?
IIRC the live example when they announced this was that it would work with accounts connected to the assistant already.
Yes but that means all commands still need to pass through the cloud to update Home Assistant. If we implement ourselves we can stay 100% local.
What's the status on this now that Android 11 had officially been released?
The WIP above looks promising!
I stopped working on this because a recent Android 11 emulator update removed the entire Device Controls feature from the power menu of the emulator build, and none of my real devices are upgradable to Android 11 yet. If you have any idea how to use this API on emulator, let me know.
Looks like progress is being made!
@ofalvai did you find out how to test Quick Access Device Controls on an emulator??
@galadril No, I couldn't figure out how to enable the feature. My guess is this feature is not part of the generic Android version that runs on emulators, but it's enabled by manufacturers on their flavors of Android.
@ofalvai thanks for your response.. too bad.. i would love to build on this feature, but dont have an Android 11 device yet....
PS, i found actually an issue on Google here:
https://issuetracker.google.com/issues/168973367
Most helpful comment
I started playing with the new API and put together a very WIP app: https://github.com/ofalvai/hass-android-controls
The basics are working very well, clone my repo and build the app locally if you're interested.
Edit: here's a gif showing it in action:
