AC Out 2 programming

I’ve been strugling with my set of MP2 connected in parallel to define a set of assistants to have the AC Out 2 ON whenever the AC In is present and to have the AC Out 2 OFF whenever the aux 1 in closed (drived the Cerbo GX relay 1) and AC In not present.

I have the Cerbo GX to drive the relay 1 closed between 22:00 and 08:00 (off peak prices - AC In is not ignored) and relay 1 open between 08:00 and 22:00 (on peak prices - AC In is ignored).

However the AC Out 2 doesn’t have the desired behaviour.

Thank you for you support.

What exactly is the desired behaviour how is it not going to plan.

When you combine conditions they both have to be true for the action to happen.

Ac2 out by default is on when ac in is available and off when it is not available.

The desired behaviour of AC Out 2 is to be ON all the time except if Aux 1 is closed (during 22:00 to 08:00) and AC In is off.

I have it sorted by adding another assistant to turn AC Out2 ON when Aux 1 was open.

Thank you for your time.