Ok, let’s break this here and start fresh, I think we should work our way up here, not back and forth.
You have that TV you mentioned from Samsung and have the integration for SamsungTVs running in HA?
If yes, why can’t you turn on the TV? That should at least be possible. I have some weired issues with my AndroidTV, but on and off are the most basic functions, they should nearly always work.
How did you configure the integration from HA? If YAML, post the config
Are there any log informations or errors regarding that integration? If not, and it is not working, turn on the logger component and enable the debug log for the integration.
If no, what are you using to get the off state back?
I’d suggest we try first to solve the initial problem, why your TV is not working with the HA integration. If we can’t find a solution there, we can always come back to the automation.
But if you just want help with the automation, I’ll take a look at it. Just say so.
This integration was recognized automatically. It only gives me one entity which is the media_player entity. But I can only turn off the tv but not turn it on
No, no, the NUC has nothing to do with this. “Wake-on-lan” should be somewhere in the area “network” in the settings menu of your TV. Try looking for “WOL” as well, sometimes it gets shortened.
Wake-on-lan means, that your TV is not going to sleep totally, it still listens to a ping on the network addressed at it. If it gets that signal, it starts. This is a networking function, enabling is only necessary on the receiving side (your TV), not on the sending side (your NUC).
And let’s stay with the on thing, before we move on to HDMI-CEC. According to the docs, wake-on-lan is necessary, so we need to find this and enable it.
EDIT: Do you connect the TV through Wifi or ethernet?
first sorry the translation sometimes does not say what I want to express. When she said of the nuc it was because of the hdmi-cec. Unfortunately I search for all the configuration and I can’t find it. The tv is connected by lan.
I managed to turn on the TV from media player and not from ir. I uninstalled the integration of the TV and reconfigured it, I also put a fixed IP and it worked.