android icon indicating copy to clipboard operation
android copied to clipboard

Expose status of Assist as a sensor

Open TimoPtr opened this issue 7 months ago • 5 comments

Is your feature request related to a problem? Please describe.

When I listen to speech(audiobook, podcast, news,etc.) on my home sound system, assist can not distinguish between my voice and surrounding sound, and never stops listening.

Describe the solution you'd like

I would like to mute my home sound system, when assist is listening (like I do with Voice PE). To do this we need a sensor in the companion-app, that shows, whether assist on the phone is listening.

We could have different state

  • CLOSED: Assist is not opened
  • SPEAKING: Assist is speaking
  • LISTENING: Assist is listening
  • IDLE: Assist is opened but not doing anything

This feature request comes from https://community.home-assistant.io/t/sensor-for-assist-listening-on-phone/907054

TimoPtr avatar Jul 07 '25 10:07 TimoPtr

Can I work on this

ujjol1234 avatar Sep 29 '25 13:09 ujjol1234

Can I work on this

I have no objection, take the time to read our guideline and best practices https://developers.home-assistant.io/docs/android/get_started

TimoPtr avatar Sep 29 '25 13:09 TimoPtr

Hi @TimoPtr, I am planning to add intents in the AssistViewModel to expose the State to the AssistSensorManager. Will this approach be ok?

ujjol1234 avatar Oct 30 '25 20:10 ujjol1234

Not sure to follow exactly what you want to do. But feel free to make a PoC and open a PR in draft so I can take a look.

TimoPtr avatar Nov 03 '25 09:11 TimoPtr

Hi @TimoPtr , I have opened PR #6098. Can you take a look?

ujjol1234 avatar Nov 26 '25 07:11 ujjol1234