Check if at least two out of five booleans are true

And a fourth might be to have separate flows polling the relays and storing their values in variables, then a flow to retrieve the values, sum them, then function to determine the output state yes|no.