From 2cadd29e77ac161a4371ba1f9a1c591ee318e807 Mon Sep 17 00:00:00 2001 From: Mike Megally Date: Tue, 26 Sep 2017 00:39:22 -0700 Subject: [PATCH] Allow customizable turn on action for LG WebOS TVs (#3442) * doc updates for PR: 9206 * Change link --- source/_components/media_player.webostv.markdown | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/_components/media_player.webostv.markdown b/source/_components/media_player.webostv.markdown index d5168793d0e..d04f58489ce 100644 --- a/source/_components/media_player.webostv.markdown +++ b/source/_components/media_player.webostv.markdown @@ -28,7 +28,7 @@ media_player: Configuration variables: - **host** (*Optional*): The IP of the LG webOS Smart TV, e.g. `192.168.0.10`. -- **mac** (*Optional*): The MAC address of the TV, e.g. `C8:08:E9:99:99:1A`. +- **turn_on_action** (*Optional*): Defines an [action](/docs/automation/action/) to turn the TV on. - **name** (*Optional*): The name you would like to give to the LG webOS Smart TV. - **timeout** (*Optional*): The timeout for connections to the TV in seconds. - **filename** (*Optional*): The filename where the pairing key with the TV should be stored. This path is relative to Home Assistant's config directory. It defaults to `webostv.conf`. @@ -36,7 +36,7 @@ Configuration variables: - ***sources** array (*Optional*): List of hardware inputs. If you do not specify `host:`, all LG webOS Smart TVs within your network will be auto-discovered if they use the default name setting of `[LG] webOS TV`. -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. +Home Assistant is able to turn on a LG webOS Smart TV if you specify an action, like HDMI-CEC or WakeOnLan. A full configuration example will look like the sample below: @@ -45,10 +45,13 @@ A full configuration example will look like the sample below: media_player: - platform: webostv host: 192.168.0.10 - mac: C8:08:E9:99:99:1A name: Living Room TV timeout: 5 filename: webostv.conf + turn_on_action: + service: persistent_notification.create + data: + message: "Turn on action" customize: sources: - livetv