deviant-aut / ha-androidtv11 Goto Github PK
View Code? Open in Web Editor NEWcustom_component override for androidtv home assistant core component
License: Apache License 2.0
custom_component override for androidtv home assistant core component
License: Apache License 2.0
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
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'
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.
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?
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.
Thank you so much! I thought I was going crazy when my shield updated and all of a sudden my light automations stopped working.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.