home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.05k stars 29.71k forks source link

HDMI_CEC not function with my LG Webos 1.4 #11425

Closed colomboipl closed 6 years ago

colomboipl commented 6 years ago

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version): 0.60 (latest)

Python release (python3 --version): Rpi 3 Model B with latest hass.io

Component/platform: LG TV (webos 1.4)

Description of problem: I have only onnected my rpi with hassio installed connected with my lg TV. I have configured with hdmi_cec and cannot power off or power on the TV. I cannot also use any function inside hdmi_cec ( volume, etc)

Expected:

In my logs the HA detected the TV on physical_address = 0.0.0.0 and its show on the WEB GUI the switch the corrected name, but I cannot switch off or on

Problem-relevant configuration.yaml entries and steps to reproduce:


hdmi_cec:
  devices:
    TV: 0.0.0.0

Traceback (if applicable):

Additional info:

ferdydek commented 6 years ago

Why don't you use the webostv component instead of hdmi_cec ? Is webos 1.4 not supported?

Can you please change the log level to debug and add here your logs (use hastebin.com) ?

colomboipl commented 6 years ago

Hi,

Webos 1.4 like notive on forum dont support wake on lan.

I can shutdown but i cannot power on.

A Ter, 2 de jan de 2018, 15:18, Rafał Trzewikowski notifications@github.com escreveu:

Why don't you use the webostv component instead of hdmi_cec ? Is webos 1.4 not supported?

Can you please change the log level to debug and add here your logs (use hastebin.com) ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/home-assistant/home-assistant/issues/11425#issuecomment-354804203, or mute the thread https://github.com/notifications/unsubscribe-auth/AL6FOk09GJJ8nLyzY2hrZGc-1dQkrA46ks5tGla5gaJpZM4RQpXE .

colomboipl commented 6 years ago

Using the webos component for webos LG TV under 2.0 don´t work because the TV shutdown the Ethernet interface and this component use the Wol (Wake on Lan). The alternative is to use the HDMI_CEC. In my case I have the Rpi installed with the hass.io. The RPI has hdmi cec feature on is device. When I put on the configuration the component "hdmi_cec" and restart de HA, I see int the logs the LG TV on physical address 0.0.0.0. But I cannot shutdown or start the TV from the switch

cmsimike commented 6 years ago

For LG TVs (and im sure others) that don't support turning on if they are off, I would highly recommend using RS-232 and turning the TV on via serial: https://support.justaddpower.com/kb/article/36-lg-rs232-control

That is how my LG TV is setup. https://home-assistant.io/components/media_player.webostv/ You can then specify a custom turn-on action.

cmsimike commented 6 years ago

Additionally, if you'd rather have HDMI-CEC, please make sure it is enabled for your LGTV. LG uses the proprietary term "SIMPLINK"

colomboipl commented 6 years ago

Yes i now the simplink function. Is enabled.

A Qui, 4 de jan de 2018, 02:38, Mike Megally notifications@github.com escreveu:

Additionally, if you'd rather have HDMI-CEC, please make sure it is enabled for your LGTV. LG uses the propratary term "SIMPLINK"

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/home-assistant/home-assistant/issues/11425#issuecomment-355191600, or mute the thread https://github.com/notifications/unsubscribe-auth/AL6FOteUvIOhaAbzHilf5FEPi8xEcd0-ks5tHEefgaJpZM4RQpXE .

colomboipl commented 6 years ago

Thank you for all support. I already figure out how to turn on the TV via HDMI CEC.

Thanks.

ferdydek commented 6 years ago

@colomboipl can you please share what worked so the next person with the same issue has some guidance ?

colomboipl commented 6 years ago

Hello, This is my configuration that actually works on my set (LG TV OLED 930V, RPi with Hass.io)

On configuration.yaml:

media_player:

hdmi_cec:

With this I can Turn on and Off The TV. Then I create a automation to change thhe source from TV.

automations.yaml

alias: Switch TV Source At Power On trigger: platform: state entity_id: media_player.TV from: 'off' to: playing condition: condition: state entity_id: media_player.TV state: playing action: service: media_player.select_source entity_id: media_player.TV data: source: HDMI4

This is the solution that I can go on. Before this I had issues about turn on TV.

Configs on TV :

  1. enabled Simplink and power on/off sync
freekeys commented 6 years ago

@cmsimike would you mind sharing more detail on how to implement this please? And why you would recommend this over hdmi-cec? Thanks :)

“For LG TVs (and im sure others) that don't support turning on if they are off, I would highly recommend using RS-232 and turning the TV on via serial: https://support.justaddpower.com/kb/article/36-lg-rs232-control

That is how my LG TV is setup. https://home-assistant.io/components/media_player.webostv/ You can then specify a custom turn-on action.“