I have the attached image as my setup, and by comparing my grid invoice data with HA's energy dashboard the values for grid consumed/exported match, which to me indicates the green sensor is working fine.
I have then purchased and installed on my main distribution board another energy monitor (https://www.zigbee2mqtt.io/devices/TS0601_bidirectional_energy_meter.html#tuya-ts0601-bidirectional-energy-meter) for the purpose of having the house's total energy and power consumption values without having to create custom sensors based on produced power - exported power. But the value for consumed energy seems way off. Comparting HA's energy dashboard daily usage for say yesterday, it shows the house using 11,2kWh, while the ts0601 would be 19,3kWh (first value - last value of the day: 6817.9 - 6837.2).
Comparing the green and ts0601 monitors instant power (W) during nightime - so no solar being produced - it does seem like this new energy meter is always 100 to 150W off on the plus side (blue line on this comparigon graph). Could this be it? The review from SmartHomeScene (https://smarthomescene.com/reviews/tuya-zigbee-bi-directional-energy-meter-for-solar-panels-pj-mgw2201-review/) indicates that it should be precise and only a few % off from another sensor but it's not the case here.