Turn off AndroidTV screen

Hi,

I’am looking the way to turn off screen on my AndroidTV devices.
Sony KD-55XD8599 and Philips 49PUS6561 both have this option in TV menu.
I can listen YT and reduce power usage by turning off screen.
Sony integration in HA doesn’t have this option.
Philips “Screen state” isn’t working.
I am trying ADB integration but I can’t find right command.

adb shell input keyevent 26

Probably command is only for mobile phones, on TV it’s turning off device.

Any advice?

2 Likes

No answer but I would also like to be able to turn off my TV screen without turning off the TV so I can just listen to the music!

I do it like this on the SONY TV:

actions:
  - action: androidtv.adb_command
    target:
      entity_id: media_player.android_tv_192_168_0_111
    data:
      command: input keyevent KEYCODE_BUTTON_2
  - action: androidtv.adb_command
    target:
      entity_id: media_player.android_tv_192_168_0_111
    data:
      command: input keyevent KEYCODE_BUTTON_1  

The first action opens the quick menu, and the second confirms the selected item from the menu (turn off the screen)