In the end, after so much research, testing and waiting, I got tired and decided to throw in the towel because I couldn't find anything that would make my ambilight work in libreelec like coreelec does.
The other day searching the internet I found a fantastic system that DOES NOT need any add-on for the ambilight to work, since it is an HDMI capture device and functional with any device that is connected to said port. In this way, it does not matter which operating system we are using and from which device. Connects to HDMI and issue solved.
Here I leave you a link where you can see what it is and if you are interested, do like me. Buy one and that's it. I'm still waiting because shipping to my area can take up to a month, but I'm sure it will work.
I bought it from this link in case anyone is interested but it is available in several stores. It's all about searching for it.
https://seku.pw/a/141/AmbilightTuya CUPON $7 DESCUENTO: DOMOTICA7
greetings