LG TV - Switch off at specific time

Hi,

I have an LG TV that I’ve added to HA.

I want to create an automation to power off the TV every day at 1 am.

I have tried the following code, but it is just switching the screen off and leaving the audio running:

alias: Switch off LG TV
description: “”
triggers:

  • trigger: time
    at: “01:00:00”
    conditions:
    actions:
  • action: webostv.command
    metadata: {}
    data:
    entity_id: media_player.lg_webos_tv_oled65cx6la
    command: com.webos.service.tvpower/power/powerOffScreen
    mode: single

Does anyone know what I should use to power the TV off as the command?

Here’s the script I use


turn_off_lgtv:
  alias: Turn off LGTV
  sequence:
    - action: webostv.command
      target:
        entity_id: media_player.lg_tv
      data:
        command: "system/turnOff"
1 Like