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 component returns incorrect state for Bravia TV #23346

Closed
digitalcraig opened this issue Apr 24, 2019 · 3 comments
Closed

Android TV component returns incorrect state for Bravia TV #23346

digitalcraig opened this issue Apr 24, 2019 · 3 comments

Comments

@digitalcraig
Copy link

Home Assistant release with the issue:

0.91.4

Last working Home Assistant release (if known):
n/a

Operating environment (Hass.io/Docker/Windows/etc.):

Primary instance of Home Assistant running in Container Station (docker) on QNAP TS-451+.
Secondary instance of Home Assistant running hassio on Raspberry Pi running ADB bridge add-on 0.3.1
Component/platform:

https://www.home-assistant.io/components/androidtv/

Description of problem:
Android TV device is a Sony Bravia TV running Android 7.0, Android Security patch level August 1, 2018, Kernel verion 3.10.79, Build BRAVAIA_ATV3_4K_UC user 7.0 NRD91N.S139
1.6.0.56.29.1.00

Primary HASS instance running Android TV component successfully connects to ADB bridge add-on 0.3.1 running on Raspberry Pi which connects to the Android TV device. Component correctly detects the running app, but incorrectly detects the state in all apps.

When playing, Home Assistant says the state is standby.
When stopped/paused/on home screen, Home Assistant says the state is playing.
Occasionally will detect state correctly after a restart, but after a few state changes it is incorrect.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

media_player:
  - platform: braviatv
      host: !secret livingroom_tv
  - platform: androidtv
      name: braviatv_android
      device_class: androidtv
      host: !secret livingroom_tv
      adb_server_ip: !secret adb_server_ip
      adb_server_port: !secret adb_server_port
      apps:
       "com.netflix.ninja": "Netflix"
       "com.spotify.tv.android": "Spotify"
       "com.google.android.leanbacklauncher": "Homescreen"
       "com.google.android.youtube.tv": "Youtube"
       "tv.twitch.android.app": "Twitch"

Traceback (if applicable):

n/a

Additional information:

@dshokouhi
Copy link
Member

So you need to be much more specific here. The state detection is based entirely off what app is currently playing. Every single app is different and it is up to us users to report the differences. You need to follow the directions in this post to get the state corrected on a per app basis.

JeffLIrion/python-androidtv#12

So this issue cannot be solved by HA directly, the library needs to be updated.

@digitalcraig
Copy link
Author

Thanks for the information.

@stale
Copy link

stale bot commented Aug 16, 2019

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 now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 16, 2019
@stale stale bot closed this as completed Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants