Trying to switch channels on a LG Web OS tv

Following the settings on https://www.home-assistant.io/components/media_player.webostv/ im trying to make a script to easily switch channels on my LG Web OS TV.

My scripts.yaml looks like this

tv_channel_1:
  alias: 1
  sequence:
    - service: media_player.play_media
      data:
        entity_id: media_player.lg_webos_smart_tv
        media_content_id: "1"
        media_content_type: "channel"

But the error i am getting is.
Error doing job: Task exception was never retrieved

Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/service.py”, line 289, in _handle_service_platform_call
await func(entity, data)
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/media_player/webostv.py”, line 353, in play_media
for channel in self._client.get_channels():
TypeError: ‘NoneType’ object is not iterable

For what it’s worth, I am new to Home Assistant and ended up in exactly the same place. I have tried all sorts of combinations, running it from script and automation and get the same “NoneType” regardless of what I do.

I do not have actual channels from live TV, and that is likely related to the problem, but I want to be able to pick a movie from Amazon TV (for example), and am trying to find some appropriate format.

Did you ever find a solution?

I was able to make simple buttons in the Lovelace UI that worked:

      - entity: media_player.lg_tv
        name: NBC
        show_name: true
        tap_action:
          action: call-service
          service: media_player.play_media
          service_data:
            media_content_id: WGRZ-HD
            media_content_type: channel
        type: entity-button

Get media_content_id from the closest name of the channel. On my TV, it appears when you hit the “Info” button.

I don’t have any local channels, sadly. Do you know how one would do something like select a specific show on Netflix or Amazon Prime to stream?