How to turn on tv from HA?

@kojot I have a Philips TV 50PUS7304 and it’s working just fine.

What you have to try is the following:

  1. Install Philips TV integration.…i think is standard in HA, you don’t need custom integration.
    You need the IP address and I choose API version 6, but you can follow instructions to find the API’s of you TV

  2. Make an automation to Wake On Lan the TV

alias: REPLACE with the name of the automation
description: []
trigger:
  - platform: device
    device_id: REPLACE with the ID of the TV entity
    domain: philips_js
    type: turn_on
condition: []
action:
  - service: wake_on_lan.send_magic_packet
    data:
      mac: REPLACE with the MAC of the fixed IP of your TV
mode: single
  1. You make a card, something like this, but can be also something simple if you want only to wake up the TV

type: media-control
entity: media_player.REPLACE with your TV entity
name: REPLACE with a name of your TV

PS: I also have some lines in configuration.yaml, but i think in the latest version of HA you don’t need it anymore. If it dosen’t work let me know.
PS2: The MAC address of you TV must be the one for Wired/WI-Fi depending on your situation

When I press the power button on the card sometimes it take a little longer to respond (10 - 30 sec), but in most of the cases is working just fine.