I feel so stupid.

Thank you so much for @Vinny.

I simply set up a maintenance to turn off the return pump and skimmer.
In the levels an ACW (with ATO). Added the shortcut in the dashboard to activate the automatic change manually and now everything works.

It's all so different I don't know why because I went to think of using logic programming.

Thanks for everything. As always you are very kind