I’ve been wanting to enable home assistant to turn on my webos 2.0 tv (2014 model). At the moment, all I can do is pause/play, volume up/down/mute, skip previous/next, specify sources, and turn off. I can’t even change the channel (would that be possible?).
I’ve tried playing around with the wake on lan component, but I can’t get that to turn on my TV.
That isn’t possible, the webos platform switches off the network/ip stack when in standby.
You can only boot the tv from ir of using hdmi (cec). If you have a raspberry pi or another hdmi device connected to your tv, you should be able to boot the tv using the hdmi device by making the device active. The TV should wake up and switch to the hdmi input you just made active.
Switching channels should also be possible. The underlying lib that home assistant uses for controlling the tv supports it, but I don’t know whether it is implemented in home assistant.
I installed HA with the all-in-one installer. Not sure if CEC is already setup or if I should install LIBCEC?
I’m sorry, I’m a bit lost with this… I didn’t even know hdmi cec existed! Looks a bit complex to set it up, though. Don’t want to mess anything up by making a mistake.
I then added the following to my configuration.yaml file:
hdmi_cec:
devices:
4: Pi3
Restarted Home Assistant and now I’m getting this in the log:
homeassistant.components.hdmi_cec: libcec must be installed
Edit: I just tried to reboot and when it started back up, my TV automatically switched to HDMI 4. So I’m assuming libcec is working on the pi3, but home assistant can’t see it?
The paths are ok. I did notice that the directory cec is not in the first path, but it does exist as an alias in the hass environment. So, I’m now thinking that I need that cec file… Any idea why it’s not in the first path?
Just in case anyone who wants to duplicate this, this is exactly what I did in order (each line is a command):
sudo apt-get install libcec3
sudo ln -s /usr/local/lib/python3.4/dist-packages/cec /srv/hass/hass_venv/lib/python3.4/site-packages
sudo apt-get install cmake liblockdev1-dev libudev-dev libxrandr-dev python-dev swig
cd
git clone https://github.com/Pulse-Eight/platform.git
mkdir platform/build
cd platform/build
cmake ..
make
sudo make install
cd
git clone https://github.com/Pulse-Eight/libcec.git
mkdir libcec/build
cd libcec/build
cmake -DRPI_INCLUDE_DIR=/opt/vc/include -DRPI_LIB_DIR=/opt/vc/lib ..
make -j4
sudo make install
sudo ldconfig
After all of that, I added the following to the configuration.yaml file (keep in mind that I added the number 4 because it’s my 4th HDMI input on the TV. If you’re connecting the hdmi cable into a different input port, specify that number):
Did any experience issue with WOL for webos?
I noticed after two hours on standby hass was no longer able to turn on my TV (is connected to WiFi).
Works fine once TV is on. Does ethernet connection make a diffrence ?
Home Assistant is able to turn on a LG webOS Smart TV if you specify its MAC address with mac:. Some models require the Mobile TV On setting and/or a wired network connection to use Wake-on-LAN.
I don’t see the option Mobile TV in the settings. Also, the led on my switch is also off at the port where my tv is plugged in.