Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android TV Remote "current_activity" attribute #92658

Closed
PRProd opened this issue May 5, 2023 · 4 comments
Closed

Android TV Remote "current_activity" attribute #92658

PRProd opened this issue May 5, 2023 · 4 comments

Comments

@PRProd
Copy link

PRProd commented May 5, 2023

The problem

An Android TV Remote Entity will retain the last known state of the "current_activity" attribute even when the state of the entity changes from on to off.

NVIDIA Shield Pro:
Screenshot from 2023-05-05 18-24-30
Screenshot from 2023-05-05 18-25-21

Xiaomi Mi Box S:
Screenshot from 2023-05-05 18-34-52


One notable exception is when the Xiaomi Mi Box becomes unavailable after the device is shut off. (it's a known annoyance with these devices) In that scenario, the "current_activity" attribute disappears as expected:
Screenshot from 2023-05-05 18-35-19

What version of Home Assistant Core has the issue?

2023.5.1

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

Android TV Remote

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented May 5, 2023

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

Code owner commands

Code owners of androidtv_remote 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 androidtv_remote Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


androidtv_remote documentation
androidtv_remote source
(message by IssueLinks)

@tronikos
Copy link
Member

tronikos commented May 6, 2023

Can you clarify why this is an issue? This feels like a feature request.
When the device turns off it only pushes an update that the status changed to off. It doesn't push any app change since there isn't any. I could add code in the integration to clear the activity but I don't remember if when the device turns on whether it notifies of any activity change. I guess I could persist the previous activity but it gets complicated across restarts. In addition I think it's helpful to know what's the activity even when the device is off. I think if you send a key, it will turn on the device and send it to the current app. I'll close this as not planned.

@tronikos
Copy link
Member

tronikos commented May 6, 2023

@home-assistant close

@home-assistant home-assistant bot closed this as completed May 6, 2023
@PRProd
Copy link
Author

PRProd commented May 7, 2023

@tronikos - Thank you for that explanation. After considering what you wrote, I prefer the way it was designed and not the silly way I thought it should work. 😄 Keep up the good work!

@github-actions github-actions bot locked and limited conversation to collaborators Jun 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants