Hi -
I’m trying to write a script to turn my Amazon FireTV Cube (and TV) on, then play a specific video on Netflix.
So far I’ve:
- Enabled ADB on the Cube
- Verified that I can ping it
- Installed adb-homeassistant in the virtualenv
- Added the following to configuration.yaml:
media_player:
- platform: androidtv
name: Fire TV Cube
host: 192.168.0.17
If I go to the services page and run service androidtv.adb_command
against the entity with data:
entity_id: media_player.fire_tv_cube
command: am start -n com.netflix.ninja/.MainActivity -a android.intent.action.VIEW -d netflix://title/80092835 -f 0x10000020 -e "amzn_deeplink_data" "80092835"
It plays the video in Netflix - All good.
The problem is I want the cube to turn on the TV if it’s not already on. If I say ‘Alexa play XYZ on Netflix’ it will turn the TV on then start playing. The command above doesn’t turn the TV on, and I can’t find a way of doing so - Any help much appreciated!
Thanks,
Neil