question

myvicrocks avatar image
myvicrocks asked

Which Flow is best - For notifying when grid is lost

Hi all,

Wanted to know what you all use thats the most accurate / reliable to build a flow to notify me when the grid is lost and the inverter starts inverting.


Just wanted to make sure I was using the correct, most accurate one.

Node-RED
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

2 Answers
nickdb avatar image
nickdb answered ·

Why don't you just use the native "monitor for grid failure" under GX system setup?

Will trigger a push notification for failure and recovery using the phone app and related email.

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

myvicrocks avatar image myvicrocks commented ·
I use that works really well, I want to spin off a bunch of home automation as well as notification in other systems, hence why I wanted to use it out of a flow - if that makes sense?
0 Likes 0 ·
nickdb avatar image
nickdb answered ·

So I just pull the AC-input state from the system node. If grid is lost it will be in the NA/invert state.

screenshot-2023-06-26-at-182419.png


And a function for displaying the state more meaningfully:

var status;

if ( msg.payload == '1' ) {

msg.payload = 'Grid is On'; }

if ( msg.payload == '0' ) {

msg.payload = 'Grid is Off'; }

if ( msg.payload == '240' ) {

msg.payload = 'Inverting'; }

return msg;





1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

myvicrocks avatar image myvicrocks commented ·
Rock star thank you @nickdb as always!
0 Likes 0 ·