FezVrasta / node-red-matter

Create Virtual Devices with Ease for the Matter Protocol!
43 stars 9 forks source link

Possible to use when nodered runs in docker? #14

Open andrasg opened 8 months ago

andrasg commented 8 months ago

Is it possible to use this while nodered is running in docker? I wasn't able to add my accessory defined using this plugin to the iOS Home app. I tried mapping a static udp port into the docker container and specifying it in the Matter server config, but still no luck.

Does the communication need broadcast to work? If yes, any other way than to run the nodered container with host networking?

andrasg commented 8 months ago

I thought mdns was the issue, got mdns sorted out using an mdns-repeater, but of course this is not enough, as the advertised service's address is on the bridged docker network... my phone sitting on the lan can't find a way to that network.

FezVrasta commented 8 months ago

I never attempted to make this run on Docker, I'm unable to help unfortunately.

Apollon77 commented 8 months ago

Should work with docjker in Host mode or macvlan

willi-d commented 7 months ago

Confirmed. I was able to succesfully configure a docker container. macvlan mode for the network. NodeRED 3.1.5

Configured ports:

1880:1880
5440:5440 udp

5440 was chosen because of Alexa.