Custom Component: Generic SunSpec modbus TCP monitoring (inverter, meter etc)

The thread for my component is here: Custom Component: ABB/Power-One/FIMER PV Inverters - SunSpec Modbus TCP

You’ll find the instructions to configure the VSN300 in the first post. I use the VSN300.

I was about to start developing a general sunspec plugin when I found this thread.
Good work. Will test the plugin in future thoroughly.
We should continue to develop this plugin with combined force and replace the other Modbus Sunspec inverter plugins like solaredge-modbus
Maybe @erikarenhill is also interested in this?

1 Like

Hi, very promising plugin, congratulations.

I just started but at the beginning I do have 2 questions:

  1. It looks like my data are not always correct
    image
    Maybe I read it wrong but I am pretty sure that I do not have 11.6 kW and so very stable.
    Should I change something?

  2. Is there a possibility to write data?

Thanks, the integration is pretty much complete, there seem to be some issues with scaling factor in the pySunSpec2 library that this integration utilizes but other than it should be OK.
Ideas for new features are always welcome :slight_smile:

Hello and thank you!

That data doesn’t look quite right, does other sensors look OK?
It could be a scaling factor issue, what inverter model do you have?

No wrting is currently supported, i could have a look at that if there’s a need for it, do you have an example of a value you would like to be able to change?

It would be nice to get total increasing values out of measurement sensors by using the Riemann integral, so that they can be used for the energy dashboard.
Example: Setup E3DC PV Inverter in new Energy Management (HA 2021.8)

Some sensors are ok (Vref, Inverter Hz, Phase Voltage…) some definitelly not (VAMax, WMax, Inverter Amps, /Pase x). Looks like ok are those which are universal.

This is Fronius Symo 8.2. In regosters as IG+ 150V. What is for me strange but this same is when checking manually due to Fronius instructions and moreover in their instructions example IG+ 150V exist as well.
May be helpful - Basic Settings and Nameplate sets looks similar.

About writing - I found this project when looking for a solution of putting data from a smart-meter (other than Fronius) to the Inverter. So I would like to have the possibility to write data as energy consumption, from grid, to grid…

Seems like this stopped working after HA updated to 2021.11. When I try to add a device it shows all the sunspec models. When I click on the dropdown, I can select the models I want to support but it doesn’t work. Seems like a problem with the dropdown.

I downgraded to HA core 2021.10.7 and added the Sunspec device. After this I upgraded back to HA core 2021.11.4.

Thanks, I’ll take a look at this ASAP!
To increase the chance of me seeing bug reports it’s good to create an issue at the Github repo:

I will, thanks for this great Sunspec integration!

1 Like

I am trying to use “DC Energy Injected” and “DC Energy Absorbed” from Sunspec model 714 (DER DC Measurement) for the Energy monitor but when I add my device those entities are not being added to HA. I started looking at the code of this integration and also the Sunspec model_714.json file. Sunspec model_714.json file does not include a “units” value for any of its values and that seems to be the problem. I tried to find the model_714.json file to edit it manually but I could not find it. Anybody knows if this can be done? Thanks again

It looks like the SunSpec folks have missed to add units to the model specification file. This file (model_714.json) is used by the pySunSpec2 library which my integration relies on.
I have created an issue with them to get this fixed, you can upvote it here:

Thanks again. Do you know if the file can be modified locally in the mean time?

I was able to modify the model_714.json file. I found it somewhere in /mnt/data/docker/overlay2 by running the command: find /mnt/data/docker -name model_714.json. Now the entities in 714 are added correctly.

1 Like

I posted in the wrong Thread ! Edit went here Custom Component: ABB/Power-One/FIMER PV Inverters - SunSpec Modbus TCP - #98 by BinGraiban

The missing units for model 714 has been added in the latest version :slight_smile:

1 Like

I upgraded it and works fine, thank you! It has been working great for weeks. My HA energy panel looks great. Thanks!

1 Like

Hi there, I just started with HA so my knowledge about the structure isn’t very deep yet. I tested the sunspec integration to access my Elgris 3 phase smartmeter wich supports sunspec (and many other protocols).

All (around 50) entities appear, but most of them with wrong scale ( frequency 500000hz, current, voltage… Most of them 10e4 or 10e6 too large in scale. Watts are ok for example. Any ideas where I have to look to get this fixed? I’m running the HA core image on a RPI and installed the sunspec integration via Hacs.
Thanks, Benjamin

1 Like

Hello @TWM
Welcome to HA :slight_smile:
This sounds like a scaling factor problem, it’s possible that their implementation is not 100% correct.
Try to open an issue at https://github.com/sunspec/pysunspec2/issues , this is the library that this integration uses and the problem is either in that library or in the smart meter firmware.
Regards,
Johan