Sebastian Eliassen
Sebastian Eliassen
sorry where do i paste this?
I did the following: ``` type: custom:android-tv-card rows: - touchpad platform: LG webOS custom_actions: - type: touchpad name: mousepad drag_action: action: perform-action perform_action: webostv.send_input_command data: command: type:move\ndx:{{ 3 * deltaX...
I also see that i get this error: `2024-12-24 14:43:16.401 WARNING (MainThread) [homeassistant.components.webostv.media_player] Error calling async_button on entity media_player.lg_webos_smart_tv, state:off, error: WebOsTvCommandError("Couldn't execute input command.")`
After changing to mousepad it says: `Action webostv.send_input_command not found.` in the home assistant ui
I added: ``` @cmd async def async_input_command(self, command: str) -> None: """Send an input command.""" await self._client.input_command(command) ``` to the media_player.py in `/homeassistant/components/webostv` on the line 475-478 On the dashboard...
After i restarted now without any modifications i go this in the terminal too: ``` 2024-12-24 15:13:06.963 WARNING (MainThread) [homeassistant.components.webostv.media_player] Error retrieving proxied image from https://10.0.0.119:3001/resources/b3af665ad00ec96ec44fe577c57aeda36ecdb1cd/LARGE_APP_ICON.png ```
To add more detail I spun up a dev container with home assistant core, like described here https://developers.home-assistant.io/docs/development_environment/ all changes are made here.
I did all the steps above, but it resulted in the same error. I found out where the python site-packages is stored in the dev container so i'm now also...
> Yeah, but that's just a simple wrapper for input_command, and we also want to send click and scroll commands. We'd have to define a new function in the webos...
I did modify the `strings.json` from: ``` "input_command": { "name": "Input Command", "description": "Sends an input command.", "fields": { "entity_id": { "name": "Entity", "description": "[%key:component::webostv::services::button::fields::entity_id::description%]" }, "command": { "name": "Command",...