-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Shelly Pro3EM using Modbus TCP #4
base: master
Are you sure you want to change the base?
Conversation
262b365
to
a8a8028
Compare
Doesn't seem to make any sense to implement |
@mansr anything I can do to get this merged? |
pinging @mpvader as well |
Hi Jalle19, I would like to try your script, unfortunately I have no idea how to install the script. Do you perhaps have a few pointers for me here? What do I have to do to install your script on my Venus OS? Are configurations necessary? Or did I just miss these tips? Thank you in advance!! greeting |
This would be great to test, but please add som details about how to implement this |
I'll have to rebase this branch onto the latest changes, I can write a short guide after that |
a8a8028
to
0a444e7
Compare
@xsven80x @amadirnjul here are instructions on how to test this: Updated 2024-04-05
|
That’s awesome. Can this also be used for the Shelly Plus 1PM Mini, as well? |
@amadirnjul no, since it doesn't support Modbus |
I have two Shelly's installed in my sailboat. I thought it was the Plus 1PM mini and the Pro 3EM, but the last one is the Pro 1PM. This does also not support Modbus as far as I know. I better make the electrician to swap it out or I also might dig into the Pro 1 PM support for the Venus. Anyway, thanks alot |
It would be fairly trivial to make a Modbus TCP proxy for various Shelly's that would expose them as a supported Shelly energy meter (currently only the Pro3EM since it's the only device with Modbus support). Would be nice if someone who maintains this repository could comment here on the status of this pull request, @mansr ? |
Shelly Pro devices are weird in that way, they use only input register, not holding registers
Only supported model is Shelly Pro3EM at the moment
These are exposed by a separate "EMData" component so I initially missed them
Rebased on top of the latest master (used by VenusOS 3.30). I'm really disappointed with Victron Energy for not responding at all to this pull request. @mansr keeps releasing new versions while completely ignoring all pull requests here. Rebasing after every release is painstaking and error-prone, especially when the lower levels of the project are in constant motion. I would really appreciate some feedback on this change. |
|
Hi, Matthijs here from Victron. The decision to includes this or not lies with me. I don’t have time to look into this the coming 2 weeks but will look into it thereafter. One concern I have is that by making things work out of the box, customers also expect it to work out of the box and turn to us if it doesn’t. and while shelly support is nice, we already support lots of energy meters and more and more types doesn’t bring extra functionality for users. However I also see the advantages.. Talk to you later! Matthijs |
@mpvader thanks for getting back to me! I appreciate your concerns about maintainability, however, most of the implementation is the same regardless of energy meter - it's just the particular registers that differ. Up until quite recently there was no genuine Victron-branded energy meter on the market, so to me it seemed logical to add support for new third-party meters. Now that there's an official (and most likely superior, technically) product these third-party meters could perhaps me supported in the sense that the software supports them, but there is no guarantee that it will work. Either way, Shelly products are quite popular and I believe this addition would greatly benefit the community. Looking forward to further feedback from you. |
Been using this in a three-phase ESS setup for over a week now without any issues. @mpvader have you had time to consider this PR? |
Would be nice to have this added. |
The https://github.com/victronenergy/dbus-shelly implementation has several shortcomings, among others:
NotifyStatus
to all connected clients)I realized that there is already great boilerplate and plumbing available for Modbus devices, so why not use that since the new Shelly Pro3EM supports Modbus TCP.
Compared to
dbus-shelly
, this:Some caveats:
Energy readings (forward, reverse) are not available from the device itselfDevice name getsThis is apparently correct, see e.g. https://device.report/allterco-robotics/spem-003cebeuBEU
added to the end for some unknown reason. Might be that we need a custom method for reading strings from these devices.Would be great to get some feedback on this!
Screenshots: