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

Select source wont work on firetv

Open marrobHD opened this issue 5 years ago • 9 comments

{
  "entity_id": "media_player.firetv",
  "source": "com.netflix.ninja"
}

and

{
  "entity_id": "media_player.firetv",
  "source": "com.netflix.ninja"
}

isnt working

marrobHD avatar May 19 '19 18:05 marrobHD

This is linked in the README: https://gist.github.com/mcfrojd/9e6875e1db5c089b1e3ddeb7dba0f304

JeffLIrion avatar May 19 '19 19:05 JeffLIrion

Is it possible to change the source to HDMI with androidtv.adb_command?

ramondunker avatar Mar 24 '20 12:03 ramondunker

Is it possible to change the source to HDMI with androidtv.adb_command?

Try input keyevent 243.

https://github.com/JeffLIrion/python-androidtv/blob/f946a2dceb081ecfda864334b694fcb3bac27bf3/androidtv/constants.py#L107

JeffLIrion avatar Mar 24 '20 16:03 JeffLIrion

Is it possible to change the source to HDMI with androidtv.adb_command?

Try input keyevent 243.

https://github.com/JeffLIrion/python-androidtv/blob/f946a2dceb081ecfda864334b694fcb3bac27bf3/androidtv/constants.py#L107

With the same command? (androidtv.adb_command)

ramondunker avatar Mar 24 '20 16:03 ramondunker

Yes

JeffLIrion avatar Mar 24 '20 16:03 JeffLIrion

Okay thanks for the quick reply. Will try it!

ramondunker avatar Mar 24 '20 16:03 ramondunker

Is it possible to change the source to HDMI with androidtv.adb_command?

Try input keyevent 243.

https://github.com/JeffLIrion/python-androidtv/blob/f946a2dceb081ecfda864334b694fcb3bac27bf3/androidtv/constants.py#L107

This didn't work unfortunately. The other keys like enter, right, left etc are working. Is there anything I have to set up on the Fire TV to make it work?

ramondunker avatar Mar 24 '20 17:03 ramondunker

This didn't work unfortunately. The other keys like enter, right, left etc are working. Is there anything I have to set up on the Fire TV to make it work?

I don't know. It probably depends on the model of your TV, if it's even possible at all. You'll need to dig around on the Android developers website if you want to try to make it work.

https://developer.android.com/reference/android/view/KeyEvent

JeffLIrion avatar Mar 24 '20 18:03 JeffLIrion

Okay thanks. Will have a look at it!

ramondunker avatar Mar 25 '20 09:03 ramondunker