Repository navigation
FYI: alternative SunSpec/Modbus TCP integration #139
Replies: 5 comments
|
Thank you! and wow - It is funny and coincidental that you bring this up. In fact, during a conversation with APsystems, this is exactly the modbus path we decided upon and APsystems is currently working on. The removal of the web pages was the trigger for this (due to security concerns). For testing purposes I will wait for the official firmware update containing the modbus features. |
|
Absolutely on the other hand there are many many more security concerns and they are not all located in the web pages. I could argue that this package is quite a bit more safe 🙃 You can keep using firmware upgrades. They are incremental in nature and i am not in the way of those. The package can also work on ECU-R. The updating mechanism is slightly different However that mechanism is available on all ECUs |
|
This is the actual HACS sunspec https://github.com/CJNE/ha-sunspec |
|
@HAEdwin if APSystems like it I could also explain what I've done. Maybe they'd like to adopt my approach that would make a lot of things easier. I have now implemented all SunSpec elements, including writable ones which puts them in the same space as Enphase / SMA etc. I understand how Grid profiles are applied (they are not writeable through my implementation for obvious reasons). I have reporting on if settings have been applied, are in flight, or have failed. This all works on ECU-Rs (most likely also non PROs) and will work on ECU-C. As I dont have access to multi phase inverters or an ECU-C I have not implemented the extension available from that hardware. What is different from your integration or not available:
Deliberately not exposed :
|
|
@bolkedebruin That sure will be a good thing to do, I'll point them to https://github.com/bolkedebruin/apsystems-sunspec The complete range of ECUs:
Thanks for your work! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi @HAEdwin,
First — thanks for maintaining this. It's been the de-facto APsystems integration for HA for a long time, and the binary-protocol decode work behind it is real reverse-engineering, not a wrapper around a vendor SDK.
I wanted to flag an alternative path that might be useful for some users — especially multi-microinverter sites, or people who also want the data in Victron Cerbo, Grafana,
Node-RED, etc.
I've published apsystems-sunspec — a small Go binary that runs directly on the ECU. It reads the same /home/database.db, /home/historical_data.db and /tmp/parameters_app.conf files your integration parses, and re-publishes the data as a standards-compliant SunSpec / Modbus TCP register bank. From HA's side you point the cgarwood/homeassistant-sunspec component at it.
A few practical differences vs. polling the ECU's HTTP / TCP-8899 endpoints from HA:
Not at all meant to replace what you've built — yours is the simpler path for users who just want APsystems data in HA without managing another binary on the ECU. I'm sharing
in case it's a useful pointer for those hitting some of the protocol-quirk edge cases that come up in your issue tracker.
Happy to answer questions or take patches.
Cheers, Bolke
Links:
https://github.com/bolkedebruin/apsystems-sunspec/releases/download/v0.1.1/apsystems-sunspec-v0.1.1-dropbear.tar.bz2
https://github.com/bolkedebruin/apsystems-sunspec/releases/download/v0.1.1/apsystems-sunspec-v0.1.1.tar.bz2
Instructions:
https://github.com/bolkedebruin/apsystems-sunspec/blob/main/README.md
All reactions