I’ve implemented a custom PV-Inverter, but even though its active power is printed correctly in the debug log (added correctly to the production), it does not show up in the user interface. However, if I implement a Meter with Metertype.PRODUCTION with otherwise the same methods, it also shows up in the user interface.
This seems weird to me, since in the PV-Inverter interface the Metertype is set to PRODUCTION by default, so I don’t see the difference.
Is this a bug or is it intended that only meters show up in the UI?
without seeing the code I can only guess where the error is. Be aware that, in order to be recognized as a valid implementation of an OSGi service, you have to explicitely implement all interfaces in your component - even though this would not be strictly required in Java.
Example: the KACO blueplanet PV-Inverter explicitely implements the ManagedSymmetricPvInverter and SymmetricMeter.
This information is evaluated in the UI, when deciding which components to list e.g. in the Production widget on the Live screen:
thank you for the prompt reply. I have, indeed, implemented both the ManagedSymmetricPvInverter and the SymmetricMeter. I have attached the full code here. The device basically fills the OpenEMS channels with information gathered from an external API request (implemented in the class “SolarwebAPIRequestPV”).
Ok, then it should indeed work already. Strange. Do you have a full example in a git repository, so that I could have a more detailed look?
As a sidenote - but I am aware this is not your priority right now:
The EventHandler should never block the cycle, so any calls to external APIs should be done in a separate worker thread. See the Discovergy Meter implementation as an example.
Add Fronius to the compatibility list would we very good to have. Why are you using the Solar-API? From my understanding Fronius also has a Modbus/TCP interface, most likely even SunSpec, which might be easier to implement in OpenEMS, as a lot of this functionality is already there.
Ad 1.: This is really useful, I have already implemented an AbstractWorker which updates the values regularly.
Ad 2.: To be honest, this just was the task given to me (I am an MA student) and due to the whole Covid situation there was no hardware for me to implement and test it on. But you are absolutely right, this package just reads values and does not support any “back channel” to control the real devices, so a Modbus/TCP support would be really useful.
Have you resolve your problem ?
Because I’m in the same case than you but for me it’s with a custom “meter consumption” not an inverter.
In the UI, I can see that my meter is giving the same data than my Modbus/TCP support but I don’t have any graphic representation on the “Energy Monitor”.
@SimonH: As FENECON we might have customers who have Fronius PV Inverters and then - if they agree - I would be able to establish a remote connection for you, to implement it directly. Would that be an option, or can you access the Fronius in your lab by now? I would really recommending to go the Modbus/SunSpec way, as it will be easier to implement. Solar-API is also possible of course, but I did not yet have time to look into your code.
@LucasU: Sorry, this is actually a pending TODO, that separate Consumption-Meters are not taken into account for calculating the sum. See