LG-WebOS-Remote-Control
LG-WebOS-Remote-Control copied to clipboard
How to Turn Off Display *New LG Smart TV - Sound Only
Hi. How can one add a button on the - fantastic - remote to turn the screen off while listening to music please? Pointers in the right direction are much appreciated.
NB Now I've added the 'turn off' function - incredibly useful while listening to music (video's) with kids - to the top of the settings menu, so it requires 2 clicks with the original remote. Wondering how to add a button for it on the software remote.
Here is a script that I use that programmatically turns off the display using the LG provided integration. Changing the entity id to your device should fit your needs, assuming your menu is equivalent to mine. For reference, mine is an OLEDGXPUA. ` alias: "Tv: Screen off" sequence:
- service: webostv.button target: entity_id: media_player.leo_s_oled data: button: MENU entity_id: media_player.leo_s_oled
- delay: hours: 0 minutes: 0 seconds: 1 milliseconds: 0
- service: webostv.button target: entity_id: media_player.leo_s_oled data: button: ENTER entity_id: media_player.leo_s_oled
- delay: hours: 0 minutes: 0 seconds: 2 milliseconds: 750
- service: webostv.button target: entity_id: media_player.leo_s_oled data: entity_id: media_player.leo_s_oled button: RIGHT
- delay: hours: 0 minutes: 0 seconds: 1 milliseconds: 0
- service: webostv.button target: entity_id: media_player.leo_s_oled data: entity_id: media_player.leo_s_oled button: DOWN
- service: webostv.button target: entity_id: media_player.leo_s_oled data: entity_id: media_player.leo_s_oled button: DOWN
- service: webostv.button target: entity_id: media_player.leo_s_oled data: entity_id: media_player.leo_s_oled button: ENTER
- delay: hours: 0 minutes: 0 seconds: 0 milliseconds: 500
- service: webostv.button target: entity_id: media_player.leo_s_oled data: entity_id: media_player.leo_s_oled button: DOWN
- service: webostv.button target: entity_id: media_player.leo_s_oled data: entity_id: media_player.leo_s_oled button: DOWN
- service: webostv.button target: entity_id: media_player.leo_s_oled data: entity_id: media_player.leo_s_oled button: DOWN
- service: webostv.button target: entity_id: media_player.leo_s_oled data: entity_id: media_player.leo_s_oled button: DOWN
- service: webostv.button target: entity_id: media_player.leo_s_oled data: entity_id: media_player.leo_s_oled button: DOWN
- service: webostv.button target: entity_id: media_player.leo_s_oled data: entity_id: media_player.leo_s_oled button: DOWN
- service: webostv.button target: entity_id: media_player.leo_s_oled data: entity_id: media_player.leo_s_oled button: ENTER
- delay: hours: 0 minutes: 0 seconds: 5 milliseconds: 0.5
- service: webostv.button target: entity_id: media_player.leo_s_oled data: entity_id: media_player.leo_s_oled button: EXIT
- delay: hours: 0 minutes: 0 seconds: 5 milliseconds: 0 mode: single `