We are connected to the grid, have 14 solarpanels, a Victron Multiplus-II, a Victron Cerbo GX box, 12 KWH BYD batteries and the Homey Victron app installed on Homey Pro 23.
We live in central Portugal, and often during thunderstorms the connection to the grid is lost, sometimes for a couple of minutes, sometimes for a couple of hours.
I want to be able to recognize when the grid is lost, because then I want to switch off the Victron EV charger and our water boilers, and, when the connection to the grid is back again, switch them on again.
How can I recognize when the connection with the grid is lost and back on again? I have tried using warnings, but I can“t get that working.