Smart way to manage IR products

I wonder if you’ve worked out a way to smart control IR blaster items.
Eg I can turn on my TV using an tuya scene. I can link a button in HA to that scene.

So it can look like
image

And when I click it calls the scene. But of course if you use the real IR remote, the TV turns off. Then the icon becomes opposite on the real state.

The TV was caught by DLNA so I thought there may be something there.
image

But it’s also dead
image

randomly.

Apart from this, I have other IR things, like the A/C. Any good way to get them into HA?