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
- Connect the TV to the network, ideally by Ethernet, and give it a DHCP reservation.
- 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).
- Note the TV's MAC address.
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"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_URLStep 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.