Im having a problem to turn on my Samsung Smart TV

I achieved this with the automation below:

  1. Wakeonlan enabled on Home Assistant.
  2. Remote control with mobile and remote control by IP on Samsung TV

This automation:

alias: "Power On TV da Suite"
description: Power On TV da Suite WakeOnLan
triggers:
  - device_id: 7e6a827a900be947f14294921b5d0fa5
    domain: samsungtv
    type: samsungtv.turn_on
    trigger: device
conditions: []
actions:
  - action: wake_on_lan.send_magic_packet
    metadata: {}
    data:
      mac: MAC_ADDRESS
      broadcast_port: 9
      broadcast_address: FIXED_IP_ADDRESS
  - action: media_player.turn_on
    metadata: {}
    data: {}
    target:
      entity_id: media_player.suite_tv
  - action: media_player.turn_on
    metadata: {}
    data: {}
    target:
      device_id: 19c86b4b872eefeec0ce7fec0f3803e9
mode: single

The first media_player.turn_on is the device of the “Samsung Smart TV integration”, and the second one is the device from the “Samsung Smarthings integration”