Code Monkey home page Code Monkey logo

Comments (9)

pdbjjens avatar pdbjjens commented on September 23, 2024

@stevoboy
This problem typically shows up, when the SHM is not in the same subnet as the iobroker server. Thus the multicasts of the SHM do not reach the sma-em adapter. It is not necessary to make any config to the SHM. It generally multicasts its data right from the start. Rather you should check your network configuration. Multicasts are not generally forwarded by routers between subnets. Also some switches interfere with the multicasts. That is why SMA recommends to switch off IGMP V3 snooping. But I assume your problem roots in a router problem since from your report above I saw that your iobroker is in subnet 172.19.0.2 while the SHM is in 192.168.178.37 . I suggest that you look whether your router supports multicast forwarding and configure it accordingly. If this does not work I propose that you describe your problem in the iobroker forum e.g. https://forum.iobroker.net/topic/43011/test-adapter-sma-em-v0-6-x-latest
Maybe some other user can help.

from iobroker.sma-em.

stevoboy avatar stevoboy commented on September 23, 2024

@pdbjjens Thanks a lot for your help. I am still not able to fix the problem.
First thing I did, I connected all devices to the netgear switch, no success. Then I connected the Synology NAS with the iobroker and adapter with the SHM to the Fritzbox directly, no success.
Then I checked if the Switch, NAS and Fritzbox are in the same subnet. They are now - all 255.255.255.0.

Then I checked my switch if IGMP is active. It is:
image

I am not sure, if it is a problem within iobroker itself. The IP addresses used sound strange. Should they not all be similiar to the ones, my other devices are using 192.168.178.xxx?
image

from iobroker.sma-em.

stevoboy avatar stevoboy commented on September 23, 2024

I realized one thing last night, if the adapter is listening on port 9522, I must open a port in the docker container as well. I did that now:
image
Shouldnt the IP address not be found now when I ping it?
image

from iobroker.sma-em.

pdbjjens avatar pdbjjens commented on September 23, 2024

@stevoboy
Although the SHM protocol requires all network components to support IGMP V3, SMA recommends to switch off IGMP V3 snooping in switches. Fritzboxes do support IGMP V3 but since they do not support snooping they are generally o.k. In your netgear switch, deactivate IGMP-snooping altogether.
But I think that your main problem is in the network configuration of your docker installation. Unfortunately I am not familiar with docker. But I am sure that you will find lots of hints in the iobroker forum.

from iobroker.sma-em.

stevoboy avatar stevoboy commented on September 23, 2024

Okay, I switched off snooping on the Switch altogether - no success:
image

I guess also that the main issue is, that the iobroker runs on a different subnet mask than the rest of the devices which are running on 255.255.255.0. This is strange since the docker is running on the Synology NAS which is running on 255.255.255.0. To me it looks like ioBroker is opening an own subnet, that prohibits communication to our main subnet.

I am curious which device is behind this IP address 62.155.245.70.

from iobroker.sma-em.

pdbjjens avatar pdbjjens commented on September 23, 2024

@stevoboy
It seems that SMA multicast with docker containers is a general problem.
https://forum.iobroker.net/topic/38520/multicast-sma-em-usg-netztrennung
In https://smarthome.buanet.de/2019/05/iobroker-unter-docker-auf-der-synology-diskstation-v3/
it is clearly stated that the simple docker network bridged mode will not work for adapters which use multicast.
A solution seems to be to configure the docker network to use macvlan. A description can be found https://smarthome.buanet.de/2020/09/macvlan-ueber-portainer-einrichten/

from iobroker.sma-em.

stevoboy avatar stevoboy commented on September 23, 2024

Okay, that looks like I need to dig into that macvlan topic to get it running. It seems to be like something to spend some time on.
Sadly the Sunnyhome portal adapter does not work anymore - that would be much easier.

I come back as soon as I find some time to work on the macvlan approach. Thanks for so far for you help.

from iobroker.sma-em.

pdbjjens avatar pdbjjens commented on September 23, 2024

@stevoboy
Have you been able to solve your problem meanwhile? Please indicate whether I can close this issue

from iobroker.sma-em.

stevoboy avatar stevoboy commented on September 23, 2024

Yes, I solved the problem by reinstalling the docker container in host mode.

from iobroker.sma-em.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.