Homey Community Forum

2 Aire conditioner and Solar Energy, Need help with Flow

Hello , hope to find help here.
questions is
I have Solar Panels for 5KW
1 - Aire (A) de 1KW ±
1 - Aire (B) de 3 KW ±
I want - make flow:
(when I have Solar generated energy - used energy ) mas de 1kw - turn ON Aire (A) As result will have ± 0 free energy
(When Solar generated energy - used energy + Aire (A)) mas de 3kw Switch off Aire (A) and Turn Aire (B)
When Solar generated energy - used energy + Aire (B)) mas de 1kw Switch ON Aire (A)
When solar energy - used energy + Aire A + Aire B - drop bellow 0, switch off Little one, and then Big One.

So idea , when I have free solar energy I want to use two Aire. but Big one (B) more important.
and when Solar energy drop bellow 0 , switch off (A) and if need more power, then switch (B)

Will be great, if someone can help