home-assistant / plugin-multicast

Multicast implementation for Home Assistant
Apache License 2.0
21 stars 12 forks source link

Using pimd #17

Open pvizeli opened 3 years ago

pvizeli commented 3 years ago

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

Vinzent82 commented 2 years ago

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?

ElFaro1 commented 2 years ago

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

jens-maus commented 2 years ago

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)

pvizeli commented 2 years ago

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

jens-maus commented 2 years ago

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.

gamer123 commented 2 years ago

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 commented 2 years ago

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

simabr commented 1 year ago

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.

campinge commented 1 year ago

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.

dn-gt commented 1 year ago

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?

katter commented 1 year ago

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

pvizeli commented 1 year ago

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

jens-maus commented 1 year ago

@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!

katter commented 1 year ago

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.

gamer123 commented 1 year ago

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

jens-maus commented 1 year ago

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

Meza100 commented 1 year ago

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

Rainerlan commented 1 year ago

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

MelleD commented 1 year ago

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?

Thorsten1982 commented 11 months ago

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

jens-maus commented 11 months ago

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.

MelleD commented 11 months ago

@jens-maus Thanks for update

Thorsten1982 commented 11 months ago

@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?

jens-maus commented 11 months ago

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.

MelleD commented 11 months ago

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?

jens-maus commented 11 months ago

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

MelleD commented 11 months ago

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 :)

hmax-72 commented 3 months ago

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

agners commented 3 months ago

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.