For all others searching for LG Netcast TV (pre 2012 models) component: I rewrote the component and overrided the original one (used for 2012+ models). Everything is working except the turning the TV on (Power Off is working well), because oldest models does not support wake on lan. I also disabled the power button when the TV is off. There is HDMI CEC option to power the TV, but it is a different question with different answer. There is a functionality to switch to concrete channel. In order this to happen you should add all channels you want in to the FAV list (it doesn’t matter which - A,B,C or D). All channels you want to be able to switchto directly (without arrows, next and prev buttons of the player) should be added in one of the FAV lists.
Edit: Sorry for the external links to the files, but I have not enough time to format it with the preformatted text button (</>). If the text on the links is in Russian, like it is when I open them, press the “Скачать” labeled link (download in Russian
).
Steps to do it yourself:
-
In your config folder create a new folder called custom_components
-
In the custom_components folder create a new folder called media_player
-
In the media_player folder create a new file called lg_netcast.py
-
Add the following code in to the file lg_netcast.py
lg_netcast.py (customised) -
In your config folder create a new folder called www and inside of it upload a picture called livetv.jpg - this image will be displayed when the TV is ON
livetv.jpg (from webos) -
In your configuration.yaml add your TV as this:
media_player: - platform: lg_netcast host: 192.168.1.101 access_token: DLHSLF name: Kitchen TV
Change the host with the IP of your TV (you can see it from the ‘network’ menu or the in your router). Leaving blank access_token should show your access token on the TV then fill it on the place of mine. Write the name of your TV and save the configuration.yaml
Finally restart home assistant.
Maybe this is the place to thank to @dennisaion for helping me to understand some python script things and for the list of the wi-fi remote codes … 