Help setting up energy to measure solar, house usage and grid feed out with a single shellyEM

I would make a change on your diagram. I would put one clamp onto HOUSE side and one on the METER side. Difference in value will be your solar production regardless of + or - values. However I am getting great help from @ardysusilo in this thread when it comes to flipping values and having them work in your favor.