i’ve got an error :
2019-10-11 22:28:03 WARNING (SyncWorker_6) [custom_components.androidtv.androidtv.adb_shell.adb_device] Data_length 2449 does not match actual number of bytes read: 1424
it’s not really important , i think that is when my firetv statut changed
Quick update: I was testing your latest update on the original HA instance and Fire TV where I originally had issues, and haven’t encountered the issue again. I’ll submit a PR if I encounter the issue again.
In regards to the testing (from original post), I tested the new component on another HA instance and Fire TV TV stick 4K and didn’t encounter any issues.
nothing comes on TV no popup.
I stopped trying to create key and used the key which i had.
I would like to request one thing, is it possible to use this integration without restarting HA, as alexa_media can be used without restarting.
edit.
Today after upgrading and trying withoud my old keys,
it created new keys inside /config/.storage/ (as per you asked me to check) but wihtout any popup on tv asking to grant permission for my HA device.
now it seems to be working
i have been struggling with getting ADB and Fire Cube to work. gave up a while back and moved to an Nvidia Shield. Recently re-tried this and boom!
This worked exactly as you highlighted.
Stopped ADB docker.
Rebooted FireCube
Stopped HA
Deleted the adbkey and adbkey.pub from .storage
started HA
Popup comes up to accept = WINNING
amazing work, thanks for building. Now to work on my apps and statuses
Also could anyone point me to a good guide or example code block of how apps and 'state_detection_rules` are configured?
I’m assuming i should be able to select source of the friendly name of the app I list (that doesnt seem to work, so maybe i have configured it incorrectly).
also i’ve set to debug but i’m not sure how i get the states of the various apps
any guidance greatly appreciated
Launching apps from the sources list only works for Fire TV devices, not Android TV devices. But you can use the androidtv.adb_command service to do whatever you want. For examples, see this list of intents.
For coming up with custom state detection rules, see Custom State Detection. You don’t want to set the log level to debug.
thanks
the app example was only one app, and couldn’t figure out if i needed a - before when using multiple. This post seemed to have the example i was looking for
I’m also using a Fire Cube and works really well, ditched the shields and the nearby alexa and consolidated.
I was missing how to get the wake_lock_size values.
androidtv.adb_command : GET_PROPERTIES per state to test. ie
open app and play something
run the adb command
check the values
pause whatever is playing
run the command
6.check the values again
[this maybe really obvious, but that is the piece i was missing]