Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Turn Off Display *New LG Smart TV - Sound Only #109

Open
bbccdd opened this issue Feb 6, 2023 · 1 comment
Open

How to Turn Off Display *New LG Smart TV - Sound Only #109

bbccdd opened this issue Feb 6, 2023 · 1 comment

Comments

@bbccdd
Copy link

bbccdd commented Feb 6, 2023

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.

@leolazz
Copy link

leolazz commented Jun 21, 2023

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
    `

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants