Hello @stillerson,
I measure the output of a Hoymiles HM 800 inverter at the connection to the power circuit using a Shelly PM Mini Gen 3. Compared to the consumption from the grid, this Shelly delivers directly negative values.
The measured values can be displayed in SmartThings using @TAustin’s driver. (pic. 2, upper right - Photovoltaik Monitor)
Previously, I also pursued the goal of controlling simple processes based on surpluses.
For this, the remaining power consumption must necessarily be known and available in SmartThings. The HEM Gen5 from Aeotec seemed inexpensive and suitable for displaying total consumption, and can also display negative values. (pic.2, upper left - Energy Monitor)
Since space is very limited in my electrical sub-distribution board, I purchased the version with only one clamp, even though my electrical system has three phases. Unfortunately, the result was less than satisfactory. Mariano Colmenarejo’s driver was the first to make the Aotec HEM Gen5 usable for my purposes: simple routines can be switched on or off, or paused depending on excess power generation.
However, since I realized that, despite my best efforts, I was still feeding around 45% of the electricity I generated into the public grid without receiving any compensation, I’m now planning to integrate a battery. To avoid having to dismantle the installed PV system, I opted for an AC-coupled storage unit. This is simply connected between the inverter and the power circuit. In order for the inverter’s excess energy to be stored in the battery with the lowest possible losses, and for the storage unit to recognize how much power it should feed into the grid, the storage unit needs constantly updated consumption values.
For this, the battery of my choice supports various interfaces. My favorite here would be the Shelly Pro 3EM power meter with 3 clamps. And there again is my space problem in the control cabinet and the limitations of SmartThings are becoming clear. Home Assistant can work with this Shelly, but also with the HEM Gen5.
The battery control unit works with WiFi and Bluetooth, but not with Zwave. And then there’s also a shelly em emulator that could fool the battery into thinking, for example, that the HEM Gen5 data is coming from a Shelly Pro 3EM.
According to corresponding forum posts, the emulator is accepted by the battery and its data is used for targeted storage and discharge. Unfortunately, I lack knowledge in this area and if no one here in the community can help, my only option is to change power meters.
But I’m not in the mood to replace a functioning device just because another can do two more things or is a few seconds faster.
And then there is the problem of space in my distribution box.