plugin-multicast icon indicating copy to clipboard operation
plugin-multicast copied to clipboard

Using pimd

Open pvizeli opened this issue 4 years ago • 29 comments

Using pimd to support all mutlicast protocols https://github.com/troglobit/pimd

pvizeli avatar Apr 01 '21 11:04 pvizeli

Hello as I currently can not run home assistant with the RasperryMatic add on (see ticket linked above) I´d like to ask whether this enhancement is far away or something already on the horizon?

Vinzent82 avatar Nov 28 '21 16:11 Vinzent82

Hello, is there a time horizon for a solution? I would like to continue with HA.

ElFaro1 avatar Dec 29 '21 07:12 ElFaro1

Hi @pvizeli. Are there any chances to see pimd support in plugin-multicast soon? It would really help the RaspberryMatic add-on to finally support the HmIPW-DRAP and HmIP-HAP gateway which rely on multicast UDP network traffic and thus cannot be used in combination with the Add-on due to the missing multicast UDP routing (see https://github.com/jens-maus/RaspberryMatic/issues/1373)

jens-maus avatar Mar 13 '22 13:03 jens-maus

Currently, I don't have any manpower that can work on this. I guess somewhat around Q3 could be realistic

pvizeli avatar Mar 14 '22 12:03 pvizeli

Currently, I don't have any manpower that can work on this. I guess somewhat around Q3 could be realistic

Thanks for the info. If you can, however, assist me to some extend I can try to work on pimd integration within plugin_multicast myself. So if you could quickly summarize what you might think might be required here and how to do that I can indeed try to work on it an prepare a PR. But as said, I would need some assistance on that matter from you, I guess.

jens-maus avatar Mar 23 '22 09:03 jens-maus

From my point of view it is very important to have this feature for RaspberryMatic Addon to use the better IP wired devices. I do have a full testbench and can do some testing if needed.

gamer123 avatar May 05 '22 13:05 gamer123

@pvizeli is Q3 still realistic ? Is there a way to support or assist you ?

gamer123 avatar Jul 27 '22 08:07 gamer123

Just wanted to install the RasperryMatic add on (which is even the offically recommended addon) but can't do so because my setup requires HmIP-HAP to be used as range extenders. Please take you time for the issue.

simabr avatar Aug 11 '22 20:08 simabr

hello @pvizeli, thank you for the work done so far! I just wanted to check in and see if there was any success in finding manpower to solve this problem. I just switched to HA and am amazed by it, but now had to find out that I cannot integrate it with my DRAP.

campinge avatar Sep 16 '22 13:09 campinge

Hello, I just identified I cannot reach my Homematic IP Wired DRAP due to this limitation. I would be also curious whether I need to find an alternative to the Raspberrymatic addon or whether we can expect a solution in foreseeable time?

dn-gt avatar Sep 24 '22 16:09 dn-gt

@pvizeli For helping you with a start: I am running HA OS on an Odroid. The kernel of HAOS build root is compiled to not support Multicast forwarding though # CONFIG_IP_MROUTE is not set which gives you:

net.ipv4.conf.all.mc_forwarding = 0
net.ipv4.conf.default.mc_forwarding = 0
net.ipv4.conf.docker0.mc_forwarding = 0
net.ipv4.conf.dummy0.mc_forwarding = 0
net.ipv4.conf.eth0.mc_forwarding = 0
net.ipv4.conf.hassio.mc_forwarding = 0
net.ipv4.conf.lo.mc_forwarding = 0

(and so forth for eth/veth...) which will result in pimd telling you: Cannot enable multicast routing in kernel: Protocol not available

If I have some time I will look at this further. Only issue is, that I do not have a Test-Env here...

katter avatar Sep 28 '22 08:09 katter

You can make an PR against https://github.com/home-assistant/operating-system/blob/dev/buildroot-external/kernel/hassos.config - then it will be in nightly for testing it. Thanks for help out @katter

pvizeli avatar Sep 28 '22 08:09 pvizeli

@katter

If I have some time I will look at this further. Only issue is, that I do not have a Test-Env here...

First of all, thanks for doing the initial step in looking into this and that you already identified that some changes to HomeAssistantOS are required for pimd to work correctly. Please let me know as soon as you feel you have a first working test environment or potentially working pimd setup so that I can see if I could give you a hand regarding pimd integration in plugin-multicast. This is indeed highly appreciated!

jens-maus avatar Sep 28 '22 10:09 jens-maus

With last nights dev build of Home Assistant OS I can now start pimd in the home assistant_multicast container after installing the apk from alpines edge/testing repo. Now we can start testing the functionality. It's probably more difficult to then later proof that it doesn't mess up something else.

katter avatar Sep 30 '22 11:09 katter

@jens-maus Thanks for working on this feature, have you seen this ?

gamer123 avatar Oct 06 '22 03:10 gamer123

@katter

With last nights dev build of Home Assistant OS I can now start pimd in the home assistant_multicast container after installing the apk from alpines edge/testing repo. Now we can start testing the functionality. It's probably more difficult to then later proof that it doesn't mess up something else.

Did you have any progress on getting pimd compiled/integrated in plugin-multicast yet? Would be great if you could quickly document your steps here that you took to get an own plugin-multicast container compiled with pimd included so that I could potentially take over the work and try it myself...

jens-maus avatar Oct 20 '22 14:10 jens-maus

hi @pvizeli / hi @jens-maus is there some new news? I tried to integrate one of my HmIP-HAP, but now I saw, that there is the problem with the pimd. It is possible to extend the range with the power plugs 'til the problem is solved? How long could it take until it's solved?

Thanks and kind regards, Stefan

Meza100 avatar Dec 18 '22 22:12 Meza100

I would very much appreciate a fix, too! Any idea when this might be fixed?

Rainerlan avatar Feb 08 '23 18:02 Rainerlan

I have read both tickets completely. What is still unclear to me. Is there currently any idea to solve the problem or is the solution still completely unclear?

MelleD avatar May 15 '23 17:05 MelleD

@MelleD That's the same question I'm asking myself.

Thorsten1982 avatar Aug 28 '23 13:08 Thorsten1982

To answer here: IMHO this PR is obsolete since using pimd is not the right approach to get udp multicasting support running in addon containers within HA. For this macvlan support has to be added/enabled for HA addon to be used. But this is another story completely separated for the potential pimd usecase.

jens-maus avatar Aug 28 '23 13:08 jens-maus

@jens-maus Thanks for update

MelleD avatar Aug 28 '23 13:08 MelleD

@jens-maus Thanks for the info. You can't quite see through what really needs to be done to make it work. Is there a way to show the developers that there are many users who want an implementation?

Thorsten1982 avatar Aug 28 '23 13:08 Thorsten1982

No, you can only wait and see if/when the HA developers are implementing macvlan support for addon containers. Until this happens continue to use my supplied workaround patch (https://github.com/jens-maus/RaspberryMatic/wiki/Installation-HomeAssistant#hmip-haphmipw-drap-support-patch) to get a HmIP-DRAP/HmIP-HAP working with a RaspberryMatic HA add-on container or simply switch to a full fledged RaspberryMatic VM or host system until this functionality has been added by the HA devs.

jens-maus avatar Aug 28 '23 13:08 jens-maus

No, you can only wait and see if/when the HA developers are implementing macvlan support for addon containers.

Is there a open ticket for this request?

MelleD avatar Aug 28 '23 13:08 MelleD

No, you can only wait and see if/when the HA developers are implementing macvlan support for addon containers.

Is there a open ticket for this request?

No, but I have direct contact to them and they are already working on it more or less...

jens-maus avatar Aug 28 '23 13:08 jens-maus

No, but I have direct contact to them and they are already working on it more or less...

Otherwise I would have subscribed to it :)

MelleD avatar Aug 28 '23 14:08 MelleD

Hi! Any update on that? I would really appreciate if it would be possible to migrate my RaspberryMatic-Setup to the HA-AddOn but support for HmIP-DRAP is essential for me (therefore also this enhancement).

hmax-72 avatar Apr 25 '24 09:04 hmax-72

Using pimd did not really work out as intended (see #61). The plan is to use macvlan support, but support for it in Supervisor is not yet implemented. See also this architecture discussion: https://github.com/home-assistant/architecture/discussions/1034.

agners avatar Apr 25 '24 09:04 agners

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Dec 18 '24 05:12 github-actions[bot]