Siema, mam taki skrypt:
alias: LG TV - Picture Mode
sequence:
- data:
entity_id: "{{ media_player }}"
command: system.notifications/createAlert
payload:
message: "{{ picture_mode }}"
modal: false
buttons:
- label: ok
focus: true
buttonType: ok
onClick: luna://com.webos.settingsservice/setSystemSettings
params:
category: picture
settings:
pictureMode: "{{ picture_mode }}"
type: confirm
isSysReq: true
action: webostv.command
- delay: 0.6
- data:
entity_id: "{{ media_player }}"
button: ENTER
action: webostv.button
Wywołuję to guzikami na dashboardzie:
- show_name: true
show_icon: true
type: button
name: LG Cinema
icon: mdi:panorama-variant-outline
tap_action:
action: call-service
service: script.tv_sypialnia_picture_mode
data:
picture_mode: hdrCinemaBright
media_player: media_player.lg_webos_smart_tv
- show_name: true
show_icon: true
type: button
name: LG Game
icon: mdi:panorama-variant-outline
tap_action:
action: call-service
service: script.tv_sypialnia_picture_mode
data:
picture_mode: hdrGame
media_player: media_player.lg_webos_smart_tv
Działa poprawnie zarówno na starym TV jak i na nowym. To co bym chciał uzyskać to zmiana trybu obrazu poprzez skrót klawiaturowy poprzez HASS.agent. Jak to najprościej ogarnąć? Hass.agent nie ma opcji parametryzacji.