I wrote these scripts to change LG smart tv picture setteing via remote button key presses (i.e Living colors, HDR effect, expert light room)
I did not manage to control the picture settings using luna-send (Please share if you have a solution using the API)
scripts.yaml :
tv_pic_menu_enter:
sequence:
- service: webostv.button
data:
entity_id: media_player.lg_webos_smart_tv_2
button: MENU
- delay: 1
- service: webostv.button
data:
entity_id: media_player.lg_webos_smart_tv_2
button: UP
- delay: 1
- service: webostv.button
data:
entity_id: media_player.lg_webos_smart_tv_2
button: ENTER
- delay: 2
- service: webostv.button
data:
entity_id: media_player.lg_webos_smart_tv_2
button: RIGHT
- delay: 1
- service: webostv.button
data:
entity_id: media_player.lg_webos_smart_tv_2
button: ENTER
- delay: 1.5
- service: webostv.button
data:
entity_id: media_player.lg_webos_smart_tv_2
button: ENTER
- delay: 1
tv_pic_menu_choose_back:
sequence:
- service: webostv.button
data:
entity_id: media_player.lg_webos_smart_tv_2
button: ENTER
- delay: 1
- service: webostv.button
data:
entity_id: media_player.lg_webos_smart_tv_2
button: BACK
- service: webostv.button
data:
entity_id: media_player.lg_webos_smart_tv_2
button: BACK
- service: webostv.button
data:
entity_id: media_player.lg_webos_smart_tv_2
button: BACK
tv_down_button:
sequence:
- service: webostv.button
data:
entity_id: media_player.lg_webos_smart_tv_2
button: DOWN
- delay: 0.2
tv_light_expert:
alias: TV Expert Light
sequence:
- service: script.tv_pic_menu_enter
data: {}
- service: script.tv_down_button
data: {}
- service: script.tv_down_button
data: {}
- service: script.tv_down_button
data: {}
- service: script.tv_down_button
data: {}
- service: script.tv_down_button
data: {}
- service: script.tv_down_button
data: {}
- service: script.tv_down_button
data: {}
- service: script.tv_pic_menu_choose_back
data: {}
mode: single
icon: mdi:television-ambient-light
tv_dark_expert:
alias: TV Expert Dark
sequence:
- service: script.tv_pic_menu_enter
data: {}
- service: script.tv_down_button
data: {}
- service: script.tv_down_button
data: {}
- service: script.tv_down_button
data: {}
- service: script.tv_down_button
data: {}
- service: script.tv_down_button
data: {}
- service: script.tv_down_button
data: {}
- service: script.tv_down_button
data: {}
- service: script.tv_down_button
data: {}
- service: script.tv_pic_menu_choose_back
data: {}
mode: single
icon: hass:sleep
tv_living_colors:
alias: TV Living Colors
sequence:
- service: script.tv_pic_menu_enter
data: {}
- service: script.tv_pic_menu_choose_back
data: {}
mode: single
icon: hass:flower
if you’d like to add the rest just copy paste tv_light_expert and remove one DOWN(- service: script.tv_down_button
) command line
to choose a previous setting(-1 = HDR effect, -2 = Game etc.)
Also if your only using HASS to change the setting you might use the smaller quick menu by using left and right commands (HDR -> Game = tv_smenu_right; HDR <- Game = tv_smenu_left)
tv_smenu_right:
sequence:
- service: webostv.button
data:
entity_id: media_player.lg_webos_smart_tv_2
button: MENU
- delay: 1
- service: webostv.button
data:
entity_id: media_player.lg_webos_smart_tv_2
button: DOWN
- delay: 1
- service: webostv.button
data:
entity_id: media_player.lg_webos_smart_tv_2
button: ENTER
- delay: 1
- service: webostv.button
data:
entity_id: media_player.lg_webos_smart_tv_2
button: RIGHT
- delay: 1
- service: webostv.button
data:
entity_id: media_player.lg_webos_smart_tv_2
button: BACK
tv_smenu_left:
sequence:
- service: webostv.button
data:
entity_id: media_player.lg_webos_smart_tv_2
button: MENU
- delay: 1
- service: webostv.button
data:
entity_id: media_player.lg_webos_smart_tv_2
button: DOWN
- delay: 1
- service: webostv.button
data:
entity_id: media_player.lg_webos_smart_tv_2
button: ENTER
- delay: 1
- service: webostv.button
data:
entity_id: media_player.lg_webos_smart_tv_2
button: LEFT
- delay: 1
- service: webostv.button
data:
entity_id: media_player.lg_webos_smart_tv_2
button: BACK