Hi, I am new to HA. I want to set up the configuration to turn on/off my LG webOS Smart TV.
I followed the instruction here: https://home-assistant.io/components/media_player.webostv/
After the set up, I can only turn off TV but cannot turn it on
Can anyone give me some help? Thanks a lot.
I am using Hass.io (0.59.2)
my configuration.yaml is:
I can only turn off TV from the overview page (I cannot turn the TV on)
However, when I check my home-assistant.log, it shows nothing, as follows,
2017-12-06 22:09:43 WARNING (MainThread) [homeassistant.setup] Setup of sensor is taking over 10 seconds.
2017-12-06 22:09:44 WARNING (MainThread) [homeassistant.setup] Setup of media_player is taking over 10 seconds.
2017-12-06 22:09:49 WARNING (MainThread) [homeassistant.setup] Setup of tts is taking over 10 seconds.
2017-12-06 22:10:15 WARNING (MainThread) [homeassistant.setup] Setup of wemo is taking over 10 seconds.
2017-12-06 22:10:19 WARNING (MainThread) [homeassistant.components.media_player] Setup of platform cast is taking over 10 seconds.
2017-12-06 22:10:23 WARNING (MainThread) [homeassistant.components.media_player] Setup of platform cast is taking over 10 seconds.
No solution yet, but the difference between the TV turned on and off here is weather the < > tab shows entity_picture: or not.
Hence; on equals (snipped with …)
supported_features: 20409
is_volume_muted: false
source: HDMI1
media_content_type: channel
source_list: Accessibility,Amazon Prime Video, ...
friendly_name: My TV
volume_level: 0.02
entity_picture: /api/media_player_proxy/.....
while off equals
supported_features: 20409
is_volume_muted: false
source: HDMI1
media_content_type: channel
source_list: Accessibility,Amazon Prime Video, ...
friendly_name: My TV
volume_level: 0.02
While I can’t turn on the TV using the magic packet / wake-on-lan - calling media_player.turn_off just toggles the powerstate of the TVs (we have 2). So solution-path I’m currently thinking of is detecting the entity_picture line and switching based on that. But if you are looking for a quick solution, just try if media_player.turn_off provides a solution for you
I just started using HA and also have an LG WebOS TV. I got very excited when I found out I could control it, but I also quickly had this problem. It works fine with messages for starting playback and such, and of course turning it off, but not turning it back on. I also tried to call turn off again but it did nothing, so that’s sadly not a solution for me.
FWIW it works over here now (still need to check tomorrow) with Mobile TV On enabled … even though we have it physically wired, it now responds to wake-on-lan, even after 1h of being off.
We’ll see in the morning, btw, using the below to visualize the status:
In order not to produce a theme to write here. Have a Smart TV by 2016 WebOS LG but he is not connected to HA not configured. When you press the configure button in HA on the TV, nothing appears to control it accordingly. Who can tell what the reason is?
Does this still work for anyone?
I am pretty sure I’ve enabled everything in the tv, but it still won’t work. I am hardwired ethernet though. Not sure if that matters.
works fine on my LG OLED 65E6V.
only hardwired. try revoking all rights on your tv and re-pair it with HA afterwards (I guess you need to delete the token in the config folder as well).
edit: did you also enable wol in your configuration.yaml?:
It works great on my 2018 LG OLED TV. I’m able to turn on the TV using the TV’s wireless connection and WOL. Are you using the correct MAC address of your wired (not wireless) connection? Make sure you follow the instructions, specifically this section:
Common for webOS 3.0 and higher would be to use WakeOnLan feature. To use this feature your TV should be connected to your network via Ethernet rather than Wireless and you should enable LG Connect Apps feature in Network settings of the TVinstructions (or Mobile App in General settings for older models) (*may vary by version).
On newer models (2017+), WakeOnLan may need to be enabled in the TV settings by going to Settings > General > Mobile TV On > Turn On Via WiFi instructions.
@jure.mav Thank you. That resolved my issue of one of my TV’s not being able to turn on where the other one was working fine. I was using their own IP addresses in the broadcast_address field.
So I changed the last part to 255 for the one that couldn’t be turned on and I can now turn it on.