The whole reason for this not working is that the TV’s go into deep sleep and turn off the network port.
The only way to get this working is to send a WOL packet (at least 16 packets) to the IP address with mac on port 9 to wake the network port up on the TV then it will power on even if it shows it off in the app.
The WOL packet is the ONLY way to reliably wake the LAN port up before turning it on.
Its interesting that after sending a WOL packet to the TV i can ask alexa to turn the TV on, she tells me that command doesnt work on device TV but the TV still turns on