lg_netcast platform allows you to control a LG Smart TV running NetCast 3.0 (LG Smart TV models released in 2012) and NetCast 4.0 (LG Smart TV models released in 2013). For the new LG WebOS TV’s use the webostv platform.
To add a LG TV to your installation, add the following to your
# Example configuration.yaml entry media_player: - platform: lg_netcast host: IP_ADDRESS
Defines an action to turn the TV on.
To get the access token for your TV configure the
lg_netcast platform in Home Assistant without the
After starting Home Assistant the TV will display the access token on screen.
Just add the token to your configuration and restart Home Assistant and the media player integration for your LG TV will show up.
The example below shows how you can use the
wake_on_lan: # enables `wake_on_lan` integration # Enables the `lg_netcast` media player media_player: - platform: lg_netcast host: 192.168.0.20 turn_on_action: service: wake_on_lan.send_magic_packet data: mac: AA-BB-CC-DD-EE-FF broadcast_address: 188.8.131.52
play_media service can be used in a script to switch to the specified TV channel. It selects the major channel number according to the
# Example action entry in script to switch to channel number 15 service: media_player.play_media target: entity_id: media_player.lg_tv data: media_content_id: 15 media_content_type: channel