Project: Panasonic Viera TV in Home Assistant: PIN pairing, Wake-on-LAN turn on, and a door camera script

Discuss Application Development and Smaart Home Integrations for Panasonic Viera Smart TVs
Post Reply
User avatar
ZerOne
Site Admin
Posts: 292
Joined: Sun Dec 13, 2020 8:21 am

A practical project to add a Panasonic Viera TV to Home Assistant, turn it on with Wake-on-LAN and show a web page or camera view when someone is at the door. It follows the Home Assistant Panasonic Viera docs as at October 2026. I have not run it on a Panasonic TV, so test each step. If your TV runs Fire TV, see the overview post in this forum, since this integration may not apply.

Safety: put the TV on an IoT VLAN with a DHCP reservation and do not expose it to the internet. Think about privacy before displaying a camera view on a screen in a shared room.

Step 1: TV settings
  1. Connect the TV to the network, ideally by Ethernet, and give it a DHCP reservation.
  2. Enable "Powered On By Apps" under Network > TV Remote App Settings, if your TV has it (the docs say to enable it so the TV can be turned on or controlled while off).
  3. Note the TV's MAC address.
Step 2: add the integration and pair

Turn the TV on. In Home Assistant go to Settings > Devices & services > Add Integration > Panasonic Viera and enter the TV's IP address. If the TV needs pairing, it displays a PIN that you type into Home Assistant.

Step 3: turn on with Wake-on-LAN (YAML)

The docs give an example using the Wake on LAN integration:

Code: Select all

panasonic_viera:
  host: YOUR_TV_IP
  name: Living Room TV
  turn_on_action:
    - action: wake_on_lan.send_magic_packet
      data:
        mac: "AA:BB:CC:DD:99:1A"
Use your TV's real MAC address and IP. Restart Home Assistant afterwards, with the TV on and connected, and finish pairing in Settings > Devices & services if prompted. If your TV does not respond to Wake-on-LAN, the default (a power key signal) might work on some models, according to the docs.

Step 4: show a page or camera view

The docs say play_media can open web pages and other media types (images, movies) via URLs in the TV's web browser. Their example script turns the TV on and then plays a URL:

Code: Select all

script:
  front_door_camera:
    alias: "Show who's at the door"
    sequence:
      - action: media_player.turn_on
        target:
          entity_id: media_player.living_room_tv
      - action: media_player.play_media
        target:
          entity_id: media_player.living_room_tv
        data:
          media_content_type: "url"
          media_content_id: YOUR_URL
Which URLs work depends on what the TV's browser can display, so test with a simple web page first, then a snapshot image from your camera system. Avoid putting a username or password into the URL, since URLs can be seen in logs and on screen. If your camera system needs a login, use a view that is only reachable on your trusted LAN and not through the internet.

Step 5: trigger it sensibly

Run the script from your doorbell press, not from motion alone, so the TV does not light up all night. Add a condition for time of day or TV-in-use, and think about whether someone sitting in the room would mind.

Troubleshooting ideas
  • TV unavailable after Home Assistant restart: the docs say the TV must be on and connected when Home Assistant restarts, and you may need to finish pairing under Devices & services.
  • Cannot turn on: check Powered On By Apps and use Wake-on-LAN.
  • Page does not load: test a simpler page, and check that the TV can reach the URL.
Discussion: has anyone got a camera view onto a Panasonic TV this way? Which formats worked, and which model?
Post Reply

Return to “Panasonic Viera Smart TV Discussion”