This guide explains how to control the Energy Saving modes (Minimum, Medium, Maximum, Screen Off) of a rooted LG WebOS TV using Home Assistant shell_commands.
You want to change energy saving settings programmatically (e.g., turn the screen off while keeping audio running) using luna-send commands over SSH.
- Manual Execution Works: Running the SSH command manually in the Home Assistant terminal works perfectly:
ssh root@192.168.1.X "luna-send -n 1 -f 'luna://com.webos.settingsservice/setSystemSettings' '{"category":"picture","settings":{"energySaving":"screen_off","energySavingModified":"true"}}'"