# \[SOLVED\] Phoscon (Conbee) integration in Node-RED

**URL:** <https://discourse.nodered.org/t/solved-phoscon-conbee-integration-in-node-red/21693>\
**Category:** General\
**Created:** [14 February 2020 12:06 UTC](https://discourse.nodered.org/t/solved-phoscon-conbee-integration-in-node-red/21693 "2020-02-14T12:06:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![broken.pipe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/broken.pipe/32/59647_2.png) [@broken.pipe](https://discourse.nodered.org/u/broken.pipe)\
**Post date:** [14 February 2020 12:06 UTC](https://discourse.nodered.org/t/solved-phoscon-conbee-integration-in-node-red/21693/1 "2020-02-14T12:06:56Z")

</div>

Hello everybody! I am currently checking if i can use Node-RED as a standalone application (instead of Home Assistant). I have a conbee 2 stick and use it to control several thermostats and lights. For the Conbee stick to work i need an API key from Phoscon (the Gateway GUI). Can I call this GUI from Node-RED to create the key? Is it generally useful to use Node-RED standalone, or does it make more sense to use it in an environment like IOBroker?

Already many thanks for your advice

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [14 February 2020 12:51 UTC](https://discourse.nodered.org/t/solved-phoscon-conbee-integration-in-node-red/21693/2 "2020-02-14T12:51:48Z")

</div>

Node-RED is **_mainly_** used stand-alone.

You can almost certainly do what you want though you may have to finesse the authentication if it uses anything complex.

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [14 February 2020 14:57 UTC](https://discourse.nodered.org/t/solved-phoscon-conbee-integration-in-node-red/21693/3 "2020-02-14T14:57:10Z")

</div>

I have this set up. You install Deconz on the same device, or another if you prefer. Running from docker-compose was the easiest for me. Once this runs, go into the Phoscon web interface -\> advanced, and there should be something about third party access. Next, install the deconz nodes from the palette in node-red: [https://flows.nodered.org/node/node-red-contrib-deconz](https://flows.nodered.org/node/node-red-contrib-deconz)

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

Drag a deconz-event node into your flow and set up the configuration, pointing it to your Phoscon install. Set it up with the API key you just got. Since the API key setting up is just a one time thing you can remove the inject/request/debug thing again. If you deploy, the deconz-event will now give a message on every event deconz outputs, including but not limited to sensor values and battery levels of connected devices. Mine is currently set up with Innr lamps, and ikea trådfri/symfonisk remotes.

---

<div class="post-metadata">

**Author:** ![broken.pipe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/broken.pipe/32/59647_2.png) [@broken.pipe](https://discourse.nodered.org/u/broken.pipe)\
**Post date:** [14 February 2020 17:00 UTC](https://discourse.nodered.org/t/solved-phoscon-conbee-integration-in-node-red/21693/4 "2020-02-14T17:00:59Z")

</div>

Thank you felix, this was the the solution. I was able to retrieve the API Key 🙂  
i am not a big friend of docker. i have installed my own vncserver and run the deconz gui on :0

```auto
apt install tightvncserver
su - pi -c '/usr/bin/tightvncserver :0'
systemctl restart deconz-gui.service

```

---

<div class="post-metadata">

**Author:** ![broken.pipe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/broken.pipe/32/59647_2.png) [@broken.pipe](https://discourse.nodered.org/u/broken.pipe)\
**Post date:** [14 February 2020 17:07 UTC](https://discourse.nodered.org/t/solved-phoscon-conbee-integration-in-node-red/21693/5 "2020-02-14T17:07:43Z")

</div>

I just have to figure out why I can't find any devices.

 ![vnc](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/5/a500b11138f8e27aa40b4e195cfcabbe363a93d0.png)

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [14 February 2020 17:08 UTC](https://discourse.nodered.org/t/solved-phoscon-conbee-integration-in-node-red/21693/6 "2020-02-14T17:08:08Z")

</div>

I’m not the biggest fan of docker either, but I’ve made an exception for deconz. Docker can be a good tool as long as you’re able to properly administrate it and use it for the right tasks. I’ve used the docker swarm in the past for tasks that had to be executed/run from 15+ machines in parallel.  
I’m not the biggest fan of the old deconz VNC gui either, but I had to use it to get my symfonisk connected. Here’s to hoping that connecting will survive the move 🤞

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [14 February 2020 17:10 UTC](https://discourse.nodered.org/t/solved-phoscon-conbee-integration-in-node-red/21693/7 "2020-02-14T17:10:04Z")

</div>

The daylight device you see is a virtual device created by Phoscon. Are you certain that the install you’re connecting with is the same one as shown in the GUI? I can’t think of a reason why not as that conbee stick can’t be in use on two different installs at the same time, but that’s strange and I haven’t seen that behaviour before.

---

<div class="post-metadata">

**Author:** ![broken.pipe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/broken.pipe/32/59647_2.png) [@broken.pipe](https://discourse.nodered.org/u/broken.pipe)\
**Post date:** [14 February 2020 17:11 UTC](https://discourse.nodered.org/t/solved-phoscon-conbee-integration-in-node-red/21693/8 "2020-02-14T17:11:11Z")

</div>

The devices aren't reset. I configured them in Home Assistant.

Edit: Had to reset them. They are now in Node-RED 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [28 February 2020 17:11 UTC](https://discourse.nodered.org/t/solved-phoscon-conbee-integration-in-node-red/21693/9 "2020-02-28T17:11:16Z")

</div>

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