-
Notifications
You must be signed in to change notification settings - Fork 23
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-08-27
|
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. |
Working fine for me for 3-phase ESS since early april for 1x grid and 2x solar inverter. Thanks for that. Would be great if Martijn can add support. |
It seems like @mansr has incorporated some of the changes introduced here (support for input registers), so there's some hope that the intent is to merge this at some point 🙏 |
How can i uninstall this settings ? Please explain |
I don't think you can remove saved Modbus TCP devices unless they become unreachable/unconnectable. When they are unreachable you're offered to delete it in the main menu. |
Can you explane me With Files i Must dealte ? Greetings Luca Am 08.07.2024 um 18:15 schrieb Sam Stenvall ***@***.***>:
I don't think you can remove saved Modbus TCP devices unless they become unreachable/unconnectable. When they are unreachable you're offered to delete it in the main menu.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
This is not a support forum I'm afraid. You'll need to replace the files affectes with the .bak versions you created if you followed the instructions. You can also update VenusOS, that will remove any modifications. |
Think I found something. I am using the beta's for EVCS (2x) on Venus combined with your modifications. It seems my 2 chargers are no longer detected normally. Only one shows up in an auto-scan Discovered devices whereas the other is now listed under saved devices next to my 3 Shelly's. |
That's what happens when you apply older changes to a newer version of VenusOS. I haven't updated this code since version 3.30. |
This support worked perfectly on Raspy 4 until Venus firmware 3.40, but unfortunately not anymore since the new 3.41. or do I have to re-run the installation script after every Venus update? |
Yes, you need to re-apply the patches after every update. I haven't tested this with VenusOS 3.40 or newer yet so I can't guarantee that everything still works. |
The latest version of Venus OS (3.41) seems to still use v1.51 of this particular component, so my changes should still apply cleanly. I'll update to 3.41 myself today at some point. |
Verified that the changes and instructions in #4 (comment) still work against v3.41. |
@mpvader any updates on the plan for merging this? |
To whom it may concern I've just created a PR that adds support for Venus OS 3.50+ (current beta). |
I get the following error: With Venus OS v3.42.
|
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:
triphase
profile is supportedEnergy 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:
![2023-10-16_22-39](https://private-user-images.githubusercontent.com/1106133/275634735-828431f4-a18c-4eb1-a7b7-7121c301dbe9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0Mjc3MzMsIm5iZiI6MTczOTQyNzQzMywicGF0aCI6Ii8xMTA2MTMzLzI3NTYzNDczNS04Mjg0MzFmNC1hMThjLTRlYjEtYTdiNy03MTIxYzMwMWRiZTkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTNUMDYxNzEzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MDQ0NjIzNmEwNTNiOTA5N2IyMzQ1ZGQ2NTdhNTE4ZjcxNTQ4NDdmMzYxMmRhMTg5Yzc5ZGI4NGQzMDc1ZDk0NCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.E9eTwSuZrKJNMH9C5ibVkbYlxmDb7X0T7WFr8tFpw74)
![2023-10-16_22-39_1](https://private-user-images.githubusercontent.com/1106133/275634760-a4b34f45-bb9b-4767-9c56-eb5d95c12f88.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0Mjc3MzMsIm5iZiI6MTczOTQyNzQzMywicGF0aCI6Ii8xMTA2MTMzLzI3NTYzNDc2MC1hNGIzNGY0NS1iYjliLTQ3NjctOWM1Ni1lYjVkOTVjMTJmODgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTNUMDYxNzEzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MjczOTE2Nzk3OTMwNWYzZDk5OWQ0YzU4MWViMjI5NjZhM2Y4ZWZiNzNmZTQ4MDFjNThhZDg4Y2NmYzM3NTM5ZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.2IDm4mb0Fm0U6whZ13AsSVdFFo9CpquUq0YwynMlBQs)
![2023-10-16_22-42](https://private-user-images.githubusercontent.com/1106133/275634998-4fdaa47e-4dc6-478c-893a-7fd58741a379.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6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