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.
Same thing for me, not sure how to fix this. Might try ethernet later this week and let you know how that works. Very disappointing that the nic doesn’t keep power for this reason especially since WOL works, defeats the purpose if you ask me…
I’ve tried using Ethernet and found no difference. For now I have enabled CEC so turn on TV via hdmi as rarely just power on TV on its own. I agree it’s a poor workaround but I think fault is in TV side.
Yeah seems like I’m going to have to do the same thing, normally I use my TV with either my xbox or freeview box so I guess using HDMI CEC to turn it on will work for now. A software update would be nice to keep power to the NIC… Cough LG cough.
Edit: NVM I’m an idiot didnt have Mobile TV turned on
I’m trying to troubleshoot something on my WebOS and just curious, are you unable to get the TV to turn on/off at all or just within a script?
i can turn my tv on/off within the front end’s component:
it works great. however when trying to run a script to turn the tv on (media_player.turn_on) it is unresponsive.
anyone have any ideas? am i writing the script incorrectly??