Extension of home-assistant component webostv as of v0.100.3 to add support for missing button presses.
LEFT, RIGHT, DOWN, UP, HOME, BACK, ENTER, DASH, INFO, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, ASTERISK, CC, EXIT, MUTE, RED, GREEN, BLUE, VOLUMEUP, VOLUMEDOWN, CHANNELUP, CHANNELDOWN
Place repository files in a web webostv folder in config/custom_components and restart hassio.
media_player: - platform: webostv name: lgtv host: 192.168.0.17 remote: - platform: webostv host: 192.168.0.17 name: lgr This can be used as per the standard HA remote integration functionality.
For my purposes I have combined with the media_player card configuration using the HACS mini-media-player
entity: media_player.lgtv hide: power_state: false hide_controls: true idle_view: true shortcuts: buttons: - icon: 'mdi:netflix' id: Netflix name: Netflix type: source - icon: 'mdi:amazon' id: AmazonPrime name: Amazon type: source - icon: 'mdi:youtube' id: YouTube name: YouTube type: source - data: command: HOME entity_id: remote.lgr domain: remote id: remote.send_command name: Menu type: service - data: command: UP entity_id: remote.lgr domain: remote icon: 'mdi:arrow-up-bold' id: remote.send_command type: service - id: ' ' type: source - data: command: LEFT entity_id: remote.lgr domain: remote icon: 'mdi:arrow-left-bold' id: remote.send_command type: service - data: command: ENTER entity_id: remote.lgr domain: remote id: remote.send_command name: Enter type: service - data: command: RIGHT entity_id: remote.lgr domain: remote icon: 'mdi:arrow-right-bold' id: remote.send_command type: service - id: ' ' type: source - data: command: DOWN entity_id: remote.lgr domain: remote icon: 'mdi:arrow-down-bold' id: remote.send_command type: service - id: ' ' type: source columns: 3 type: 'custom:mini-media-player' volume_stateless: true This acts as a 'temporary' enhancement to the webostv integration included in home assistant to add the much needed functionality for ,left, right, up, down, enter, which was sorely needed when in apps.
Long term solution at time of release looks to be a proposed enhancement by bendavid to extend functionality to media_player, negating the need for the remote. See TheRealLink/pylgtv#19 and home-assistant/architecture#299 (comment)
The enhancement to pylgtv is thanks to poroping from TheRealLink/pylgtv#18