core: WebOS TV integration 'Source [xyz] not found for [TV name]'

The problem

Sometimes my LG CX series TV (WebOS) is not able to select its input source. I’m running a service call (from AppDaemon) to set my TV to the correct input (called ‘Ziggo’ or ‘PS4’). The input names are identical to the ones shown in the developer interface in HA. I’m having the issue with both. Sometimes this runs successfully, sometimes not (I haven’t been able to identify when what scenario). I do not expect any relation with AppDaemon because sometimes this just works fine

The service call self.call_service("media_player/select_source", entity_id = "media_player.woonkamer_tv", source="PS4")

The log reports Source Ziggo not found for Woonkamer TV with details:

Logger: homeassistant.components.webostv.media_player
Source: components/webostv/media_player.py:377
Integration: LG webOS Smart TV (documentation, issues)
First occurred: 14:00:28 (1 occurrences)
Last logged: 14:00:28

Environment

I’m running HA 0.116.4 (latest) and AppDaemon 4 (mentioning ‘Current version: 0.3.1’) More detail: `

arch x86_64
chassis vm
dev false
docker true
docker_version 19.03.11
hassio true
host_os HassOS 4.15
installation_type Home Assistant OS
os_name Linux
os_version 5.4.72
python_version 3.8.5
supervisor 249
timezone Europe/Amsterdam
version 0.116.4
virtualenv false

`

  • Home Assistant Core release with the issue: 0.116.4
  • Last working Home Assistant Core release (if known): unknown
  • Operating environment (OS/Container/Supervised/Core): running supervised on proxmox
  • Integration causing this issue: webostv
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/webostv/

Problem-relevant configuration.yaml

webostv:
  host: 192.168.1.202
  name: Woonkamer TV
  turn_on_action:
    service: wake_on_lan.send_magic_packet
    data:
      mac: aa-bb-cc-dd-ee-ff`

(replaced my mac address)

The TV is also detected as a homekit device in HA (not using that)

Traceback/Error logs

Logger: homeassistant.components.webostv.media_player
Source: components/webostv/media_player.py:377
Integration: LG webOS Smart TV (documentation, issues)
First occurred: 14:00:28 (1 occurrences)
Last logged: 14:00:28`

Additional information

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 28 (1 by maintainers)

Most upvoted comments

I have a similar configuration and I am connected by LAN cable as well, but my inputs are missing. I do not have any particular scripts other than a bunch of media_player select_source and i do not see any relevant error in hass log. This is my configuration: (Home Assistant Core on docker)

webostv:
  name: TV_55c8
  host: 10.0.0.107
  turn_on_action:
    service: wake_on_lan.send_magic_packet
    data:
      mac: "A8-23-FE-69-64-DD"
  customize:
    sources:
      - AirPlay
      - Amazon Prime Video
      - Canali TV
      - DAZN
      - Denon
      - Disney+
      - Guida TV
      - NOW TV
      - Netflix
      - Plex
      - RaiPlay
      - YouTube

Steps:

  • Power On TV, I see 2 inputs, “Denon”(renamed HDMI 2) and “Canali TV” (Live Tv).
  • Reboot Home Assistant, Power On TV, all my inputs are back.
  • Power Off TV
  • Power On TV after a couple of minutes now i see only Denon(HDMI 2)
  • Wait about 10 minutes with the TV on my inputs never come back
  • Reboot Home Assistant again, Power On TV, all my sources are back again
  • Power Off TV
  • Power On TV i see only Denon(HDMI 2)

I also tried to delete all my inputs in configuration.yaml but the behaviour is the same .

Seems fixed in the latest beta core update (2021.4.0b0)… Even after multiple power cycles, the App sources appear and work OK.

I’m not sure what has changed, probably some update of HA, but the functionality started to work as it supposed to, at least for me. My script works as well, it turns on the TV, then it turns on the spotify app and redirects the currently played Spotify song to the TB