# deconz on balena

**URL:** <https://forums.balena.io/t/deconz-on-balena/148105>\
**Category:** Product support\
**Created:** [July 2, 2020, 7:57am UTC](https://forums.balena.io/t/deconz-on-balena/148105 "2020-07-02T07:57:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![peteretep](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/peteretep/32/3037_2.png) [@peteretep](https://forums.balena.io/u/peteretep)\
**Post date:** [July 2, 2020, 7:57am UTC](https://forums.balena.io/t/deconz-on-balena/148105/1 "2020-07-02T07:57:26Z")

</div>

I wish to run deconz on Balena to monitor and control zigbee sensors.

I am using deconz with a Raspbee II device - [https://www.phoscon.de/en/raspbee2](https://www.phoscon.de/en/raspbee2)

There is a deconz docker image available - [https://github.com/marthoc/docker-deconz](https://github.com/marthoc/docker-deconz)  
I have managed to get the docker image running on balena, but it is unable to see the raspbee device.

I believe the issue is with enabling the serial port hardware.  
I am using balena in local mode, which I believe enables the serial port hardware by default.

Has anyone successfully run deconz on balena as part of a multi container application?

---

<div class="post-metadata">

**Author:** ![peteretep](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/peteretep/32/3037_2.png) [@peteretep](https://forums.balena.io/u/peteretep)\
**Post date:** [July 2, 2020, 1:33pm UTC](https://forums.balena.io/t/deconz-on-balena/148105/4 "2020-07-02T13:33:38Z")

</div>

Sorted. I wasn’t running the container in privileged mode

---

<div class="post-metadata">

**Author:** ![AlidaOdendaal](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/alidaodendaal/32/1641_2.png) [@AlidaOdendaal](https://forums.balena.io/u/AlidaOdendaal)\
**Post date:** [July 2, 2020, 1:38pm UTC](https://forums.balena.io/t/deconz-on-balena/148105/5 "2020-07-02T13:38:20Z")

</div>

Hi @peteretep

Glad to see that your problem is sorted!

Kind regards  
Alida

---

<div class="post-metadata">

**Author:** ![peteretep](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/peteretep/32/3037_2.png) [@peteretep](https://forums.balena.io/u/peteretep)\
**Post date:** [July 3, 2020, 12:47pm UTC](https://forums.balena.io/t/deconz-on-balena/148105/7 "2020-07-03T12:47:23Z")

</div>

spoke too soon - the raspbee device is connecting and disconnecting.  
Unsure if it is related to balena, but it works in another setup.

---

<div class="post-metadata">

**Author:** ![dtischler](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dtischler/32/2483_2.png) [@dtischler](https://forums.balena.io/u/dtischler)\
**Post date:** [July 3, 2020, 6:25pm UTC](https://forums.balena.io/t/deconz-on-balena/148105/8 "2020-07-03T18:25:21Z")

</div>

Hi Peter, ‘privileged’ would likely be necessary as you have found when running multiple containers, but, in single-container mode, the container is granted privileged permissions by default. I am not 100% confident this will help, but, it might be worth trying to run just that container, by itself, to see if it behaves any better. Simply to help isolate if it is truly a “privileged” issue you are facing.

---

<div class="post-metadata">

**Author:** ![peteretep](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/peteretep/32/3037_2.png) [@peteretep](https://forums.balena.io/u/peteretep)\
**Post date:** [July 6, 2020, 3:39pm UTC](https://forums.balena.io/t/deconz-on-balena/148105/10 "2020-07-06T15:39:00Z")

</div>

Thanks for the reply. Have changed my docker-compose file to just run the deconz container, and I am still experiencing the disconnect.  
This is with privileged: true in the docker-compose file.

When I remove the privileged:true it behaves the same, I am still experiencing the disconnect.

It has the same behavior as a multi container docker-compose setup

---

<div class="post-metadata">

**Author:** ![jtonello](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jtonello/32/3246_2.png) [@jtonello](https://forums.balena.io/u/jtonello)\
**Post date:** [July 6, 2020, 5:15pm UTC](https://forums.balena.io/t/deconz-on-balena/148105/11 "2020-07-06T17:15:54Z")

</div>

Hi Peter,

When you say the Raspbee device is connecting and disconnecting, is the deconz service restarting or is the connection to the Raspbee working for a few moments and then not? I noticed in the repo you referenced that the service is looking for a `devices: - /dev/ttyUSB0`. Is that interface available and usable? It’s likely that if you’re using the Raspbee via GPIO, you’ll need to set `ENV UDEV=1` in your Dockerfile to interact with the device via GPIO (and not USB) as in [this example](https://github.com/balena-io-playground/balena-rpi-nodejs-basic-gpio/blob/master/Dockerfile.template).

John
