python-androidtv icon indicating copy to clipboard operation
python-androidtv copied to clipboard

sendevent not working until remote is used once

Open dallaby23 opened this issue 3 years ago • 4 comments

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..

dallaby23 avatar Jan 02 '22 17:01 dallaby23

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.

glassbase avatar Jan 18 '22 01:01 glassbase

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: @.***>

dallaby23 avatar Jan 18 '22 01:01 dallaby23

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?

andrazek avatar Feb 25 '22 23:02 andrazek

I have this issue too with a firestick 4k.

Thyphus avatar Jun 13 '22 07:06 Thyphus