From f2b20bed1016de627e94395d8f4f906fece3b46d Mon Sep 17 00:00:00 2001 From: joogps Date: Sat, 11 Apr 2020 19:34:49 -0300 Subject: [PATCH 1/6] Update the panasonic_viera components documentation --- source/_integrations/panasonic_viera.markdown | 104 +++++++++--------- 1 file changed, 50 insertions(+), 54 deletions(-) diff --git a/source/_integrations/panasonic_viera.markdown b/source/_integrations/panasonic_viera.markdown index 6761443451ef..53179c578a91 100644 --- a/source/_integrations/panasonic_viera.markdown +++ b/source/_integrations/panasonic_viera.markdown @@ -1,6 +1,7 @@ --- -title: Panasonic Viera TV -description: Instructions on how to integrate a Panasonic Viera TV into Home Assistant. +title: Panasonic Viera +description: Instructions on how to integrate a Panasonic Viera TV with Home Assistant. +logo: panasonic.png ha_category: - Media Player ha_release: 0.17 @@ -10,79 +11,52 @@ ha_domain: panasonic_viera The `panasonic_viera` platform allows you to control a Panasonic Viera TV. -Currently known supported models: +### Setup +To configure your Panasonic Viera TV, head to the **Configuration > Integrations** page. Then, click on the plus (+) button to add a new integration. Once the integration is loaded, with your TV turned on and connected to your local network, enter the IP address of your TV and a name of your choice. If your TV needs to be paired, you will be prompted to type the PIN code that will be displayed on it. -- TC-P60S60 -- TC-P65VT30 -- TX-32AS520E -- TX-32DSX609 -- TX-49DX650B -- TX-50DX700B -- TX-55CX700E -- TX-55CX680B -- TX-55EXW584 -- TX-65EXW784 -- TX-L42ET50 -- TX-P42STW50 -- TX-P50GT30Y -- TX-P50GT60E -- TH-32ES500 -- TX-42AS650 -- TX55ASW654 - -If your model is not on the list then give it a test, if everything works correctly then add it to the list on [GitHub](https://github.com/home-assistant/home-assistant.io/blob/current/source/_integrations/panasonic_viera.markdown). - -Some Panasonic Viera TVs allow Home Assistant to turn them on, if you specify the MAC address with `mac:`. - -Note that your TV has to reside in the same network as your Home Assistant instance for this platform to work. If you have multiple network interfaces on your Home Assistant instance, you may need to specify the `broadcast_address`. - -To add a TV to your installation, add the following to your `configuration.yaml` file: +### YAML configuration +If you prefer to use YAML to set up your Panasonic Viera TV, you can still do it. It also allows for some extra configuration. ```yaml # Example configuration.yaml entry -media_player: - - platform: panasonic_viera - host: 192.168.0.10 +panasonic_viera: + host: 192.168.1.10 + name: Living Room TV + turn_on_action: + - service: wake_on_lan.send_magic_packet + data: + mac: "AA:BB:CC:DD:99:1A" ``` {% configuration %} host: - description: The IP of the Panasonic Viera TV, e.g., `192.168.0.10`. + description: The IP address of your Panasonic Viera TV, e.g., `192.168.1.10`. required: true type: string +name: + description: The name you would like to give to the TV entity. + required: false + default: Panasonic Viera TV + type: string port: description: The port number of your Panasonic Viera TV. required: false default: 55000 type: integer -mac: - description: The MAC address of your Panasonic Viera TV, e.g., `AA:BB:CC:DD:99:1A`. - required: false - type: string -broadcast_address: - description: The broadcast address on which to send the Wake-On-Lan packet. +turn_on_action: + description: Defines an action to turn the TV on. Be aware that it might not work properly with some models. required: false - default: 255.255.255.255 - type: string -app_power: - description: Set to `true` if your Panasonic Viera TV supports "Turn on via App". - required: false - default: false - type: boolean -name: - description: The name you would like to give to the Panasonic Viera TV. - required: false - default: Panasonic Viera TV - type: string + type: list {% endconfiguration %} +When you restart Home Assistant, make sure the TV is turned on and connected to your local network. If it needs to be paired, head over to the **Configuration > Integrations** page to finish setup and type the PIN code that will be displayed on it. + ### Example `play_media` script -The `play_media` function can be used to open web pages and other media types (images, movies) in the TV web browser. +The `play_media` function can be used to open web pages and other media types (images, movies) via URLs in the TV web browser. ```yaml -# Example play_media script that can be triggered when someone is detected at the door -# +# Example play_media script that can be triggered when someone is detected at the door, where `image_url` is the URL of what you want to display script: front_door_camera: alias: "Show who's at the door" @@ -94,10 +68,32 @@ script: data: entity_id: media_player.living_room_tv media_content_type: "url" - media_content_id: "http://google.com" + media_content_id: "image_url" - delay: seconds: 5 - service: media_player.media_stop data: entity_id: media_player.living_room_tv ``` + +### Currently known supported models + +- TC-P60S60 +- TC-P65VT30 +- TX-32AS520E +- TX-32DSX609 +- TX-49DX650B +- TX-50DX700B +- TX-55CX700E +- TX-55CX680B +- TX-55EXW584 +- TX-65EXW784 +- TX-L42ET50 +- TX-P42STW50 +- TX-P50GT30Y +- TX-P50GT60E +- TH-32ES500 +- TX-42AS650 +- TX55ASW654 + +If your model is not on the list, give it a test. If everything works correctly then add it to the list on [GitHub](https://github.com/home-assistant/home-assistant.io/blob/current/source/_integrations/panasonic_viera.markdown). \ No newline at end of file From 5df1473c28eda1ef660e817691bffb344fcca3a8 Mon Sep 17 00:00:00 2001 From: joogps Date: Sun, 12 Apr 2020 01:31:57 -0300 Subject: [PATCH 2/6] Changing the explanation of the pairing process --- source/_integrations/panasonic_viera.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_integrations/panasonic_viera.markdown b/source/_integrations/panasonic_viera.markdown index 53179c578a91..c03304fa1a33 100644 --- a/source/_integrations/panasonic_viera.markdown +++ b/source/_integrations/panasonic_viera.markdown @@ -49,7 +49,7 @@ turn_on_action: type: list {% endconfiguration %} -When you restart Home Assistant, make sure the TV is turned on and connected to your local network. If it needs to be paired, head over to the **Configuration > Integrations** page to finish setup and type the PIN code that will be displayed on it. +When you restart Home Assistant, make sure the TV is turned on and connected to your local network. If your TV needs to be paired, you'll need to go to **Configuration > Integrations** to type the PIN code that will be displayed on it and finish setup. ### Example `play_media` script From 731db9f3352ee052be2c57d482ef460692d35ac2 Mon Sep 17 00:00:00 2001 From: joogps Date: Sun, 12 Apr 2020 18:27:13 +0000 Subject: [PATCH 3/6] Commiting changes --- source/_integrations/panasonic_viera.markdown | 26 ++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/source/_integrations/panasonic_viera.markdown b/source/_integrations/panasonic_viera.markdown index c03304fa1a33..7f0660e20f26 100644 --- a/source/_integrations/panasonic_viera.markdown +++ b/source/_integrations/panasonic_viera.markdown @@ -11,21 +11,16 @@ ha_domain: panasonic_viera The `panasonic_viera` platform allows you to control a Panasonic Viera TV. -### Setup +## Configuration To configure your Panasonic Viera TV, head to the **Configuration > Integrations** page. Then, click on the plus (+) button to add a new integration. Once the integration is loaded, with your TV turned on and connected to your local network, enter the IP address of your TV and a name of your choice. If your TV needs to be paired, you will be prompted to type the PIN code that will be displayed on it. -### YAML configuration -If you prefer to use YAML to set up your Panasonic Viera TV, you can still do it. It also allows for some extra configuration. +## Manual configuration +If you prefer to use YAML to set up your Panasonic Viera TV, you can still do it. It also allows for some extra settings. ```yaml # Example configuration.yaml entry panasonic_viera: host: 192.168.1.10 - name: Living Room TV - turn_on_action: - - service: wake_on_lan.send_magic_packet - data: - mac: "AA:BB:CC:DD:99:1A" ``` {% configuration %} @@ -49,7 +44,20 @@ turn_on_action: type: list {% endconfiguration %} -When you restart Home Assistant, make sure the TV is turned on and connected to your local network. If your TV needs to be paired, you'll need to go to **Configuration > Integrations** to type the PIN code that will be displayed on it and finish setup. +When you restart Home Assistant, make sure the TV is turned on and connected to your local network. If your TV needs to be paired, you'll need to go to **Configuration > Integrations** to type the PIN code that will be displayed on it and finish the setup. + +### Example `turn_on_action` + +```yaml +# Example turn_on_action configuration.yaml entry with Wake-on-LAN +panasonic_viera: + host: 192.168.1.10 + name: Living Room TV + turn_on_action: + - service: wake_on_lan.send_magic_packet + data: + mac: "AA:BB:CC:DD:99:1A" +``` ### Example `play_media` script From df53989ac8f2fb62521f7c617f692347ac84e80a Mon Sep 17 00:00:00 2001 From: joogps Date: Sun, 12 Apr 2020 17:43:26 -0300 Subject: [PATCH 4/6] Commiting changes --- source/_integrations/panasonic_viera.markdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/_integrations/panasonic_viera.markdown b/source/_integrations/panasonic_viera.markdown index 7f0660e20f26..c709e112c392 100644 --- a/source/_integrations/panasonic_viera.markdown +++ b/source/_integrations/panasonic_viera.markdown @@ -20,7 +20,7 @@ If you prefer to use YAML to set up your Panasonic Viera TV, you can still do it ```yaml # Example configuration.yaml entry panasonic_viera: - host: 192.168.1.10 + host: YOUR_TV_IP ``` {% configuration %} @@ -51,7 +51,7 @@ When you restart Home Assistant, make sure the TV is turned on and connected to ```yaml # Example turn_on_action configuration.yaml entry with Wake-on-LAN panasonic_viera: - host: 192.168.1.10 + host: YOUR_TV_IP name: Living Room TV turn_on_action: - service: wake_on_lan.send_magic_packet @@ -64,7 +64,7 @@ panasonic_viera: The `play_media` function can be used to open web pages and other media types (images, movies) via URLs in the TV web browser. ```yaml -# Example play_media script that can be triggered when someone is detected at the door, where `image_url` is the URL of what you want to display +# Example play_media script script: front_door_camera: alias: "Show who's at the door" @@ -76,7 +76,7 @@ script: data: entity_id: media_player.living_room_tv media_content_type: "url" - media_content_id: "image_url" + media_content_id: YOUR_URL - delay: seconds: 5 - service: media_player.media_stop From 260fee9bea439f889827a98a4e7e48ca5b62429a Mon Sep 17 00:00:00 2001 From: joogps Date: Sat, 18 Apr 2020 00:05:48 -0300 Subject: [PATCH 5/6] Resolving conflicts and updating 'turn_on_action' description --- source/_integrations/panasonic_viera.markdown | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/_integrations/panasonic_viera.markdown b/source/_integrations/panasonic_viera.markdown index c709e112c392..423793e407da 100644 --- a/source/_integrations/panasonic_viera.markdown +++ b/source/_integrations/panasonic_viera.markdown @@ -1,7 +1,6 @@ --- title: Panasonic Viera description: Instructions on how to integrate a Panasonic Viera TV with Home Assistant. -logo: panasonic.png ha_category: - Media Player ha_release: 0.17 @@ -39,7 +38,7 @@ port: default: 55000 type: integer turn_on_action: - description: Defines an action to turn the TV on. Be aware that it might not work properly with some models. + description: Defines an action to turn the TV on. If not specified, a power key signal will try to be sent to the TV. Be aware that it might not work properly with some models. required: false type: list {% endconfiguration %} From 572c0b3446443738195ba442ff123bad61739d91 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Mon, 20 Apr 2020 11:37:55 +0200 Subject: [PATCH 6/6] :pencil2: Tweaks --- source/_integrations/panasonic_viera.markdown | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/source/_integrations/panasonic_viera.markdown b/source/_integrations/panasonic_viera.markdown index 423793e407da..786a6324fd05 100644 --- a/source/_integrations/panasonic_viera.markdown +++ b/source/_integrations/panasonic_viera.markdown @@ -11,9 +11,15 @@ ha_domain: panasonic_viera The `panasonic_viera` platform allows you to control a Panasonic Viera TV. ## Configuration -To configure your Panasonic Viera TV, head to the **Configuration > Integrations** page. Then, click on the plus (+) button to add a new integration. Once the integration is loaded, with your TV turned on and connected to your local network, enter the IP address of your TV and a name of your choice. If your TV needs to be paired, you will be prompted to type the PIN code that will be displayed on it. + +To configure your Panasonic Viera TV, head to the **Configuration > Integrations** page. Click on the plus (+) button to add a new integration. + +Once the integration is loaded, with your TV turned on and connected to your local network, enter the IP address of your TV and a name of your choice. + +If your TV needs to be paired, you will be prompted to type the PIN code that will be displayed on it. ## Manual configuration + If you prefer to use YAML to set up your Panasonic Viera TV, you can still do it. It also allows for some extra settings. ```yaml @@ -103,4 +109,4 @@ script: - TX-42AS650 - TX55ASW654 -If your model is not on the list, give it a test. If everything works correctly then add it to the list on [GitHub](https://github.com/home-assistant/home-assistant.io/blob/current/source/_integrations/panasonic_viera.markdown). \ No newline at end of file +If your model is not on the list, give it a test. If everything works correctly, then add it to the list on [GitHub](https://github.com/home-assistant/home-assistant.io/blob/current/source/_integrations/panasonic_viera.markdown).