Phoscon (Conbee) in Node-red

Hello,
im using node-red and Phoscon in Docker Containers on an Raspbi 3b+
I get a websocket Connection from Node Red to Phoscon. But i dont get the Api Key from the Phoscon App.
In this Topic was the same Problem:

If you installed it from docker, it will include the rest API. The next step is adding a temporary part to your >flow, or do it over curl instead if you prefer that. Set up an inject node on JSON input, based on the >following: http://dresden-elektronik.github.io/deconz-rest-doc/configuration/#aquireapikey >, then wire it to an >http->request node set to your phoscon/deconz install, and the output to a debug node. Deploy, go back >to the phoscon settings page and click the authenticate button, then inject on the flow and copy the api >key from the debug sidebar.

Can somebody Explain this in a bit more Detail?

I have NR running in docker, accessing the Conbee. I don't much understand the solution you posted either. However, I found I had to setup the NR docker container in host network mode for it to work, although I can't exactly remember why. It might have been because docker containers don't support multicast UDP. I hope this helps.

1 Like

Now i got it
this is the flow


grafik
grafik

[{"id":"136dae7f.a005f2","type":"http request","z":"cc28d1e6.8c90c","name":"","method":"POST","ret":"txt","url":"http://127.0.0.1:80/api","tls":"","x":410,"y":540,"wires":[["8220b4e9.a611c8"]]},{"id":"538e4e8e.f921b8","type":"inject","z":"cc28d1e6.8c90c","name":"","topic":"","payload":"{\"devicetype\":\"nodered\"}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":540,"wires":[["136dae7f.a005f2"]]},{"id":"8220b4e9.a611c8","type":"debug","z":"cc28d1e6.8c90c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":720,"y":560,"wires":[ ]}]

Tasks:

  1. unlock the Gateway for 3rd Party Apps ( for 60 seconds)
  2. click the Inject button
  3. read out the Username in the Debug Pane

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.