Automation Android TV Power

Hi Guys,

my tv is plugged in a outlet which is the most of the time off. After the outlet is switched to on, i want to power on my android tv automatically after a delay of X seconds. I added the integration androidtv and configured everything. So i have a entinity called media_player.android_tv_IPADRESS.

So i have created this automation:

alias: Test
description: ''
  - platform: state
    entity_id: switch.tv_socket_1
    to: 'on'
    from: 'off'
condition: []
  - delay:
      hours: 0
      minutes: 0
      seconds: 45
      milliseconds: 0
  - service: androidtv.adb_command
      command: POWER
      entity_id: media_player.android_tv_192_168_178_64
mode: single

So the problem is now, that the power command is ON and OFF at the same time. Everytime my automation triggered and the tv is reachable the command turns off instead on.

A few weeks ago i tried the media_player.turn_on command unsuccesfull.

Is there a solution to fix this issue?