home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.73k stars 30.85k forks source link

Voice Assist: unable to control an Android TV Remote media entity that doesn't report Playing state #120624

Closed tannisroot closed 1 month ago

tannisroot commented 4 months ago

The problem

I am using the Android TV Remote integratation to communicate with my TCL C845 Android TV, and it's not possible to control the device using the new Media Controls intents (pause/unpause/resume etc). The entity is exposed to Assist, but my guess is that because the integration does not report the playing state, Assist doesn't know that it's a media entity that can be controlled, despite the integration providing such controls (and they do work via Web UI). Using the alternative, older "Android Debug Bridge" integration that does report playing state and such, Assist is able to control the TV just fine. I think Assist should support media entities that don't report playing state, if feasible. Maybe, only if the entity is specified in the intent?

What version of Home Assistant Core has the issue?

core-2024.6.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Assist

Link to integration documentation on our website

https://www.home-assistant.io/integrations/assist_pipeline/

Diagnostics information

Here's the log from the intent with which I tried to control the Android TV Remote entity: affected_intent_android_tv_remote.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Here are attributes of the Android TV Remote entity that I am trying to control while it's playing something:
State: on
volume_level: 0.07
is_volume_muted: false
app_id: com.google.android.youtube.tv
app_name: com.google.android.youtube.tv
assumed_state: true
device_class: tv
friendly_name: Bedroom TV
supported_features: 22457

Additional information

No response

home-assistant[bot] commented 4 months ago

Hey there @balloob, @synesthesiam, mind taking a look at this issue as it has been labeled with an integration (assist_pipeline) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `assist_pipeline` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign assist_pipeline` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


assist_pipeline documentation assist_pipeline source (message by IssueLinks)

tannisroot commented 4 months ago

I know Android TV Remote integration suggests combining the media entity from Remote integration with the Cast integration (https://www.home-assistant.io/integrations/androidtv_remote/#using-with-google-cast), but for some reason with my TV, that entity is always Off unless Home Assistant explicitly connects to the TV and starts casting something of its own.

issue-triage-workflows[bot] commented 1 month ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.