I‘ve just made a script in HA with:
alias: LG WebOS Screen Off - OLED48A
sequence:
- service: webostv.command
target:
entity_id: media_player.oled_48a19
data:
command: com.webos.service.tvpower/power/turnOffScreen
mode: single
And it just works. This is so awesome with Alexa for a sleep command, like listen to a YouTube video, screen off and tv off in 10 minutes.
I have 3 LG OLEDs but only tested it on my 48A1.