question

fmac avatar image
fmac asked

Howto install Venus driver for Shelly energy meters

Hallo

yesterday I found this : https://github.com/victronenergy/dbus-shelly


a driver for shelly devices from Victron

I did some tests , but I can't install, the makefile is the problem for me

have you a howto or some links for me

Thanks

modifications
2 |3000

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

8 Answers
bonzai avatar image
bonzai answered ·
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 ·

Okay

Sorry, for me this is not the same

this :

https://github.com/victronenergy/dbus-shelly

is from victronenergy

I think this is "native"


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 ·

Okay

I got it

installed this https://github.com/victronenergy/dbus-shelly/archive/eccbe89f1e447e977cf3db597469ff219d259804.zip

this is a driver for Shelly 3EM from Victron, v0.2

the last version v0.4 is only for shelly gen 2 devices

and then you get this :

bildschirmfoto-2022-12-22-um-210448.pngbildschirmfoto-2022-12-22-um-210656.png

it is detected via mdns, the only thing to do is set the role :bildschirmfoto-2022-12-22-um-210903.png


Thanks to Victron

great Work


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.

kurtinge avatar image kurtinge commented ·
@fmac

Did you have to do things on the Shelly side? Can jo do a step-by-step for the whole implementation?

1 Like 1 ·
juf avatar image
juf answered ·

@fmac

what you mean with install?

unzip to which founder?


regards

8 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.

fmac avatar image fmac commented ·

Hallo

unzip all to /data/dbus-shelly

and to /data/dbus-shelly/ext unzip this : https://github.com/victronenergy/velib_python/archive/refs/heads/master.zip

and then run :

python dbus_shelly.py


-1 Like -1 ·
juf avatar image juf fmac commented ·

Thx so easy… ;-)

0 Likes 0 ·
fmac avatar image fmac juf commented ·
You got it working ?
1 Like 1 ·
juf avatar image juf fmac commented ·
No wait for Shelly
0 Likes 0 ·
marcopagano avatar image marcopagano fmac commented ·

Hello,

does anyone else have the problem with firmware 2.92 and the advice above to get this not to work?

Everytime i tried tp python dbus_shelly.py i get the the error module websockets:

File "dbus_shelly.py", line 8, in <module>

import websockets

ModuleNotFoundError: No module named 'websockets'

Thx in advance and br

0 Likes 0 ·
fmac avatar image fmac marcopagano commented ·
hallo

I think you have to install websockets

python -m pip install websockets

0 Likes 0 ·
marcopagano avatar image marcopagano fmac commented ·

hallo fmac,

thanks for yourt reply. I tried and got this error:

python -m pip install websockets

Traceback (most recent call last):

File "/usr/lib/python3.8/runpy.py", line 185, in _run_module_as_main

mod_name, mod_spec, code = _get_module_details(mod_name, _Error)

File "/usr/lib/python3.8/runpy.py", line 144, in _get_module_details

return _get_module_details(pkg_main_name, error)

File "/usr/lib/python3.8/runpy.py", line 111, in _get_module_details

__import__(pkg_name)

File "/usr/lib/python3.8/site-packages/pip-6.0.7-py3.8.egg/pip/__init__.py", line 13, in <module>

from pip.utils import get_installed_distributions, get_prog

File "/usr/lib/python3.8/site-packages/pip-6.0.7-py3.8.egg/pip/utils/__init__.py", line 22, in <module>

from pip._vendor import pkg_resources, six

File "/usr/lib/python3.8/site-packages/pip-6.0.7-py3.8.egg/pip/_vendor/pkg_resources/__init__.py", line 1649, in <module>

register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)

AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'


i am nearly done all i could do, but i don't get it to work :(


Maybe you have another idea...

Thanks in adv and br

0 Likes 0 ·
fmac avatar image fmac marcopagano commented ·

Sorry

pip3 install websockets

0 Likes 0 ·
li9urian avatar image
li9urian answered ·

I unzipped the 0.4 for the ShellyPro4PM ....when I run the dbus_shelly.py, the Shelly is registered but I did not get any energy data. The updated aiovelib is installed as well. Any advice? screenshot-2022-12-30-110236.jpg


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.

fmac avatar image fmac commented ·

Sorry no good news

I got a Shelly Plus 1PM

but the same for me

its connected, but no data for V, A or anythingbildschirmfoto-2023-01-03-um-201710.png

0 Likes 0 ·
kurtinge avatar image
kurtinge answered ·
Did you figure out this matter? I don't know if the above link is somekind of officially delievered from Vitron or what, but the more I read about the Shelly integration, the more I get confused. Is there a generic driver for all Shelly gen2 (those with bluetooth) or is there different types depending on the model?


2 |3000

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

glipschitz avatar image
glipschitz answered ·

I don't seem to be able to get this to run either.

Download from githib to /data

unzip to dbus-shelly/

python dbus_shelly.py 
root@nanopi:/data/dbus-shelly# python dbus_shelly.py 
Traceback (most recent call last):
  File "dbus_shelly.py", line 22, in <module>
    from aiovelib.service import Service
ModuleNotFoundError: No module named 'aiovelib'


Is there any updates or official documentation here from Victron?

3 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.

kurtinge avatar image kurtinge commented ·
Which Shelly device are you running?
0 Likes 0 ·
glipschitz avatar image glipschitz kurtinge commented ·

@kurtinge Shelly Pro3EM

0 Likes 0 ·
Jean Jacques de Jong avatar image Jean Jacques de Jong commented ·

You would need to add the aiovelib files in the ext directory - they are not included in the dbus-shelly zip. But don't bother, this driver, for gen2 devices, is already included in the latest Venus releases.

0 Likes 0 ·
kurtinge avatar image
kurtinge answered ·

Would this work for the Shelly 1PM Pro? I believe this is gen2 device

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

Experiments, Modifications and Adaptions. Mods (Modifications) can be made to Victron Software by the Community. Please use the modifications space for enthusiasts who want to push what is possible, without official Victron Support.