python-androidtv
python-androidtv copied to clipboard
sendevent not working until remote is used once
I have a firetv cube connected to my Visio tv.. Using home assistant to send adb commands to the firecube. I have collected the key command using learn sendevent to power off the tv.. If I use the adb command "HOME" to power on the cube and set the TV input it works perfect, but when I send the cube a command(any learned command) back it does not work, unless I first use the actual remote then all commands work perfect..
I have this issue with MiBox. If remote goes to sleep (to preserve battery), I could not use sendevent codes. I am guessing same thing is happening to you. No way around it.
Thanks for replying.. yes I figured that out as well.. unfortunate..
On Mon., Jan. 17, 2022, 8:17 p.m. glassbase, @.***> wrote:
I have this issue with MiBox. If remote goes to sleep (to preserve battery), I could not use sendevent codes. I am guessing same thing is happening to you. No way around it.
— Reply to this email directly, view it on GitHub https://github.com/JeffLIrion/python-androidtv/issues/275#issuecomment-1014989103, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOFF6RUWTKBBXXX6Y7V5BR3UWS5SJANCNFSM5LD4SYVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
I've got this issue too. Are you sure there's no way around it? Shouldn't there be some kind of "wake up" command before the actual button command?
I have this issue too with a firestick 4k.