g30r93g / homebridge-panasonic

A Homebridge plugin for Panasonic Viera TV's. Written to support the new Homekit TV accessory.
MIT License
21 stars 3 forks source link
homebridge homebridge-plugin homekit homekit-tv-accessory panasonic panasonic-tv panasonic-viera tv

Homebridge plugin for Panasonic TV's

PyPI license Codacy Badge

A Homebridge plugin for Panasonic Viera TV's. Written to support the new HomeKit TV accessory.

Archive Message

Hi all. After several months of inactivity, I've looked at the work this plugin needs, and the progress made by Antonio Meireles in the homebridge-vieramatic plugin and I feel that there is little need for this plugin. Any notable differences (if any) between this plugin and homebridge-vieramatic will be identified and PR'd.

I'd like to thank all of you who opened issues and used this plugin, as well as the Homebridge community for questions and pointers.

Requirements

  1. iOS 12.2 or later
  2. Homebridge v0.4.46 or later

TV Setup

Go to Menu -> Network -> TV Remote App Settings and make sure the following settings are on:

It is possible that the TV may not support power on by standby. To check this, install Panasonic's mobile app and try turning the TV on and off.

Installation

  1. Install homebridge -> http://homebridge.io
  2. Install this plugin -> sudo npm install -g homebridge-panasonic-viera-tv
  3. Update your config.json file

Sample Config

Please configure the inputs section according to your input switching list and ensure that when using an application that the appID is included.

"accessories": [
    {
        "accessory": "Panasonic-TV",
        "name": "YOUR_TV_NAME_HERE",
        "ipaddress": "YOUR_TV_IP_ADDRESS_HERE",
        "model": "YOUR_TV_MODEL_HERE_(OPTIONAL)",
        "serialNumber": "YOUR_TV_SERIAL_NUMBER_HERE_(OPTIONAL)",
        "inputs": [
            {"id": "TV", "name": "TV", "type": "TV"},
            {"id": "HDMI 1", "name": "Apple TV", "type": "HDMI"},
            {"id": "HDMI 2", "name": "Fire TV Stick", "type": "HDMI"},
            {"id": "Netflix", "name": "Netflix", "type": "APPLICATION", "appID": "0010000200000001"}
        ]
    }
]

App List

This is a partial list of apps that are on Viera TV's. Make sure that the app exists on your TV.

App Name App ID
Netflix 0010000200000001
YouTube 0070000200170001
Amazon Prime Video 0010000100170001
Plex 0076010507000001
BBC iPlayer 0020000A00170010
BBC News 0020000A00170006
BBC Sport 0020000A00170007
ITV Hub 0387878700000124
TuneIn 0010001800000001
AccuWeather 0070000C00000001
All 4 0387878700000125
Demand 5 0020009300000002
Rakuten TV 0020002A00000001
CHILI 0020004700000001
STV Player 0387878700000132
Digital Concert Hall 0076002307170001
Apps Market 0387878700000102
Browser 0077777700160002
Calendar 0387878700150020
VIERA Link 0387878700000016
Recorded TV 0387878700000013
Freeview Catch Up 0387878700000109

If you want to find the App ID for an app yourself, follow these steps:

  1. Install Wireshark
  2. Install Panasonic TV Remote on your mobile device
  3. Use your mobile device as a network interface in Wireshark
  4. Use the Panasonic TV Remote app launcher to open the application you want
  5. Filter results by 'http' and find the request to open YouTube (It will be in the XML with a tag called X_LaunchApp)
  6. Find the app ID. It will look something like <X_LaunchKeyword>product_id=000000000</X_LaunchKeyword>. product_id is the app ID