Netflix won't start

I’m trying to make a script that turns my tv on, and switches the input of the Fire TV to Netflix. Script:

start_netflix:
  sequence:
  - service: media_player.turn_on
    data:
      entity_id: media_player.panasonic_viera_tv
  - delay:
      seconds: 10
  - service: media_player.select_source
    data:
      entity_id: media_player.fire_tv
      source: 'com.netflix.ninja'

The TV turns on, but it doesn’t switch to the netflix app. When I only run the select_source part of the script it does work. Anyone got any ideas?

What happens if you increase the delay?

Is the fire stick powered by the TV? or plugged in to the wall? If you select the source while it’s powered, it might turn on the TV for you.

If it’s powered by the TV, 10 seconds doesn’t seem like enough time.

Nothing happens when I increase the delay. My TV is in standby mode, so it’s started 1 second after the script launches. When I swap the source command out for the following, the fire stick does react and switches the page to the right.

action:
  service: androidtv.adb_command
  data:
    entity_id: media_player.fire_tv
    command: "RIGHT"

My FireTV is powered by my TV