Coder Social home page Coder Social logo

ha-androidtv11's People

Contributors

deviant-aut avatar matejdro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ha-androidtv11's Issues

Does not work with TCL c725 with google tv

I'm still getting the following adb returns when using on my android tv:

app_id: 'AssistPreviewPanel}:'
app_name: 'AssistPreviewPanel}:'
source: 'AssistPreviewPanel}:'

Volume gets queried but I also cannot change it.

TCL c725 TV with google tv built in

The query:
CURRENT_APP=$(dumpsys activity a . | grep -E 'mResumedActivity' | cut -d ' ' -f 8) && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP

Returns the correct current app

Home assitant docker , integration for Shield tv pro

Logger: homeassistant.helpers.integration_platform
Source: loader.py:589
First occurred: 17:27:27 (6 occurrences)
Last logged: 17:27:27

Unexpected error importing androidtv/diagnostics.py
Unexpected error importing androidtv/logbook.py
Unexpected error importing androidtv/system_health.py
Unexpected error importing androidtv/media_source.py
Unexpected error importing androidtv/group.py
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 34, in _process
platform = integration.get_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 572, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 589, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.HA-androidtv11.recorder'

Opening Settings on Shield TV causes state to change to 'playing'

Culprit appears to be wake_lock_size.

Personally, I would just drop this wakelock heuristic. At least for me it appears to cause more trouble than it's worth. Wake lock is really weak indication of playback and many apps use it for non-playback purposes.

I have several automations linked to the playback state (such as lights and blinds), so I would prefer if component would try to be more specific regarding playing state (I would prefer false negatives where playback is not detected over false positives where playback is falsely detected). I can also make PR with config option that disables wakelock if necessary.

NLZIET issue

Installed this addon to improve the Shield experience.

However, when I open (or play from) the NLZIET app, my Shield entity in HA will go to "unavailable". Is that working as intended?

Problem after install

I tried this custom component but it is not really working. It keeps giving me the following error:

Logger: homeassistant.config_entries
Source: config_entries.py:551
First occurred: 15:30:03 (3 occurrences)
Last logged: 15:30:56

Error setting up entry 192.168.1.187 for androidtv
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 551, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/androidtv/init.py", line 162, in async_setup_entry
hass.config_entries.async_setup_platforms(entry, PLATFORMS)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'. Did you mean: 'async_unload_platforms'?

Does anyone know how I can solve this issue? I would love to add better automations based on my TV.

You rock dude

Thank you so much! I thought I was going crazy when my shield updated and all of a sudden my light automations stopped working.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.