question

daza avatar image
daza asked

Any chance of some Shelly connectivity

Hi guys I know the Victron system can be hacked with a script which is great but looking into the future I can see this being an issue at least when Victron release of the new gui and possibly the next update of the OS, just wanted to know if Victron could just leave a window open for the implementation of shelly devices which are one of the most common devices used.

Maybe a similar way that Node-Red is imbedded in the VenusOS and maybe just tag that it is experimental just so we can have a lot more access to sensors that can go into the OS and maybe not to be the cause of systems bricking with bits of code that got coded out or people having to start again adding code.


I could be speaking out of turn here but think this would provide a good standard way of implementation.

@Guy Stewart (Victron Community Manager) @Matthias Lange - DE @mvader (Victron Energy) any chance that we can ever see some implementation like that? PS been looking at that new gui it looks really good and as soon as it drops I’ll be installing it.

shelly implimentation
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

5 Answers
olafd avatar image
olafd answered ·

Maybe this Addon fits what you are looking for (Power and Temperature) :

https://github.com/Telekatz/venus.dbus-shellyPlug

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

fmac avatar image
fmac answered ·
4 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

daza avatar image daza commented ·
Hi thanks yeah I know about the script that works but do you not have to inject it with every upgrade of Venus OS, what I’m asking Victron for is a way to pull any Shelly sensor in it temp, PM,EM and so on that won’t be erased with an update of OS.
0 Likes 0 ·
matt1309 avatar image matt1309 daza commented ·

Hi @Daza


Sounds like you're asking for a more polished Shelly implementation.


Not quite what you're after but just in case you weren't aware you can get scripts to remain installed over updates.

Custom drivers/scripts can be kept over updates if they have install/setup scripts saved in /data folder (this isn't removed during updates).


There's a bit more detail here: https://www.victronenergy.com/live/ccgx:root_access


I dont do anything super complex myself but I believe the idea is you have startup scripts stored in /data/rcS.local or /data/rc.local that will check if the script has been removed (ie you've had an update) and if it has then it restores the script.

My setup isn't advanced (just a heating oil tank sensor so my rc.local just re-adds the soft link ie ln -s command to the service stored in /data to /service)

Here's an example of one a bit more involved that you might be able to tweak:

https://github.com/fabian-lauer/dbus-shelly-3em-smartmeter/blob/main/install.sh

1 Like 1 ·
daza avatar image daza matt1309 commented ·

Yeah i thought the script would be erase or possibly block or brick an update, but yeah had a look at the 3EM and got my Shelly plus 1pm working but as I’m using it for load it just throws out all the readings as it’s saying it’s solar gen as all the scripts are for PV, and I can’t seem to find any script with shellys as AC load temp and humidity sensors, yeah I’m kinda after a way like how they add the ruuvi but guess that’s not going to happen

0 Likes 0 ·
matt1309 avatar image matt1309 daza commented ·
Was going to say you can probably tweak it to get temp by copying code and adding com.victronenergy.temperature but looks like someones already made it!!
0 Likes 0 ·
daza avatar image
daza answered ·

@OlafD thank you i have had a few messages with the dev and they are brilliant, They have implemented the shelly plus add-on module to also include temp of what you are monitoring and also the humidity now i have it all in the VRM

img-4479.png
img-4478.png


img-4479.png (312.0 KiB)
img-4478.png (772.7 KiB)
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

daza avatar image
daza answered ·

Does anyone know of any projects with the Shelly to emulate the EV charger? Ideally I would like not for the Victron to supply battery power to it as this is a grid connection before the inverter. Just to see the numbers in an EV box without Victron doing anything would be great.

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

matt1309 avatar image matt1309 commented ·

Shout if no one has one, I'm happy to help cobble one together.

I'm not aware of a shelly one but I've seen a few others on github that could be tweaked to use shelly http API. Does EV box have a http api, might even be able to skip the shelly and go direct if it does.

If it has it's own http api you may even be able to integrate more features like start/stop current limit controls natively in vrm.


Here's a generic one.
GitHub - trixing/venus.dbus-trixevse: Venus OS DBus Driver for custom Trixing EVSE Wall charger

Will need to update the data request come from a shelly/be in the form of shelly data and maybe remove the temp sensor this guy also adds, but a solid starting point.



1 Like 1 ·
daza avatar image
daza answered ·

Hi @matt1309 i wouldn’t even know where to start mate and I don’t hold any hope for Indra to have an API either, but I’ve sent them a message anyhow.

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Related Resources

Additional resources still need to be added for this topic