AC Ignore with assistants but also switch the programmable relay

So what i would like to achieve with the image below is:

  • ignore ac in
  • switch the primary programmable relay on the same conditions as ignore ac in (this is needed to shut down my solar inverter, i don’t want to inject into the grid)

Can someone comment on this? thanks!

I think this should work, can anyone comment on this?