Controling Zigbee devices suing Deconz

Hello,
I have spend the day playing with vanilla Home Assistant and go some z-wave module to work. However, when it comes to zigbee, I am getting stuck !

I have a couple of IKEA tradfri light-bulbs I would like to control so I :

  • purchased a Conbee II Zigbee stick
  • installed Deconz through docker

My docker-compose file looks like that :

version: '3'
services:
  homeassistant:
    container_name: home-assistant
    image: homeassistant/home-assistant:stable
    volumes:
      - /opt/Docker/Home_Assistant/:/config
    devices:
      - /dev/ttyACM0:/dev/ttyACM0
      - /dev/ttyACM1:/dev/ttyACM1
    environment:
      - TZ=Europe/Paris
    restart: always
    network_mode: host
  nodered:
    container_name: node-red
    restart: unless-stopped
    image: nodered/node-red:latest
    depends_on:
      - "homeassistant"
    user: root
    volumes:
      - /opt/Docker/Node_Red/:/data
    ports:
      - "1880:1880"
  deconz:
    image: marthoc/deconz
    container_name: deconz
    network_mode: host
    restart: always
    volumes:
      - /opt/Docker/Deconz:/root/.local/share/dresden-elektronik/deCONZ
    devices:
      - /dev/ttyACM1:/dev/ttyACM1
    environment:
      - DECONZ_WEB_PORT=8080
      - DECONZ_WS_PORT=4443
      - DEBUG_INFO=1
      - DEBUG_APS=0
      - DEBUG_ZCL=0
      - DEBUG_ZDP=0
      - DEBUG_OTAU=0

With :

  • ttyACM0 being my z-wave stick
  • ttyACM1 being my Zigbee stick
    I can access the deconz gateway on 192.168.1.16:8080. I could also get Hone Assistant to “talk” to deconz and see the virtual sensor, but cannot see any light bulbs when trying to pair them in the Deconz interface. If there is a way to pair using HA, I did not find it.
    I am running the last of Deconz as displayed in the settings/gateway (v.2.05.72), but I am not sure which firmware since under the software version the frimware part indicates “not connected”

So I guess the reason I cannot find the lightbulbs is that my stick isnot working properly :face_with_monocle:

What do you think ? Any clue to help me out ?

Can you please post the logs from the deconz container (docker logs deconz)? Is your host machine connected through WiFi? Do you have the stick on an extension cable or directly attached to the machine? When you go to Phoson -> Lights and press “add new lights” are you not able to add your lights? You need to add the lights to deconz and HA then reads the lights from deconz.

Thank you so much for taking time to help me out.

My Host machine is an old laptop connected through wifi for now.
I am accessing it remotely with this PC (my main laptop) through ssh.

It is directly plugged into the host computer, no USB hub or extension cord used.

No I cannot find any device, I tried with the two lights I have but have failed so far.

That what I thought, Thanks for confirming

Here it is ! ( I had actually just googled how to get the logs :wink: )

18:19:37:011 device state timeout ignored in state 2
18:19:38:011 reconnect network failed, try later
18:19:38:011 start reconnect to network
18:19:38:011 device state timeout ignored in state 2
18:19:39:011 device state timeout (handled)
18:19:39:512 wait reconnect 15 seconds
18:19:39:512 void zmMaster::handleStateIdle(zmMaster::MasterEvent) not connected goto OFF state
18:19:39:512 device state timeout ignored in state 1
18:19:40:511 wait reconnect 14 seconds
18:19:41:511 wait reconnect 13 seconds
18:19:42:511 wait reconnect 12 seconds
18:19:43:011 failed to reconnect to network try=1
18:19:43:511 wait reconnect 11 seconds
18:19:44:511 wait reconnect 10 seconds
18:19:45:512 wait reconnect 9 seconds
18:19:46:511 wait reconnect 8 seconds
18:19:47:511 wait reconnect 7 seconds
18:19:48:011 failed to reconnect to network try=2
18:19:48:511 wait reconnect 6 seconds
18:19:49:512 wait reconnect 5 seconds
18:19:50:511 wait reconnect 4 seconds
18:19:51:511 wait reconnect 3 seconds
18:19:52:511 wait reconnect 2 seconds
18:19:53:011 failed to reconnect to network try=3
18:19:53:511 wait reconnect 1 seconds
18:19:54:097 device state timeout ignored in state 2
18:19:55:048 device state timeout ignored in state 2
18:19:56:011 device state timeout ignored in state 2
18:19:57:012 device state timeout ignored in state 2
18:19:58:012 try to reconnect to network try=4
18:19:58:012 device state timeout ignored in state 2
18:19:59:011 device state timeout (handled)
18:19:59:511 wait reconnect 15 seconds
18:19:59:512 void zmMaster::handleStateIdle(zmMaster::MasterEvent) not connected goto OFF state
18:19:59:512 device state timeout ignored in state 1
18:20:00:511 wait reconnect 14 seconds
18:20:01:511 wait reconnect 13 seconds
18:20:02:511 wait reconnect 12 seconds
18:20:03:011 failed to reconnect to network try=5
18:20:03:511 wait reconnect 11 seconds
18:20:04:511 wait reconnect 10 seconds
18:20:05:511 wait reconnect 9 seconds
18:20:06:511 wait reconnect 8 seconds
18:20:07:512 wait reconnect 7 seconds
18:20:08:011 failed to reconnect to network try=6
18:20:08:512 wait reconnect 6 seconds
18:20:09:511 wait reconnect 5 seconds
18:20:10:511 wait reconnect 4 seconds
18:20:11:511 wait reconnect 3 seconds
18:20:12:512 wait reconnect 2 seconds
18:20:13:012 failed to reconnect to network try=7
18:20:13:511 wait reconnect 1 seconds
18:20:14:110 device state timeout ignored in state 2
18:20:15:061 device state timeout ignored in state 2
18:20:16:012 device state timeout ignored in state 2
18:20:17:012 device state timeout ignored in state 2
18:20:18:011 try to reconnect to network try=8
18:20:18:012 device state timeout ignored in state 2
18:20:19:011 device state timeout (handled)
18:20:19:512 wait reconnect 15 seconds
18:20:19:512 void zmMaster::handleStateIdle(zmMaster::MasterEvent) not connected goto OFF state
18:20:19:512 device state timeout ignored in state 1
18:20:20:511 wait reconnect 14 seconds
18:20:21:511 wait reconnect 13 seconds
18:20:22:512 wait reconnect 12 seconds
18:20:23:012 failed to reconnect to network try=9
18:20:23:511 wait reconnect 11 seconds
18:20:24:511 wait reconnect 10 seconds
18:20:25:511 wait reconnect 9 seconds
18:20:26:511 wait reconnect 8 seconds
18:20:27:511 wait reconnect 7 seconds
18:20:28:011 failed to reconnect to network try=10
18:20:28:511 wait reconnect 6 seconds
18:20:29:511 wait reconnect 5 seconds
18:20:30:511 wait reconnect 4 seconds
18:20:31:511 wait reconnect 3 seconds
18:20:32:511 wait reconnect 2 seconds
18:20:33:011 reconnect network failed, try later
18:20:33:012 start reconnect to network
18:20:33:512 wait reconnect 1 seconds
18:20:34:106 device state timeout ignored in state 2
18:20:35:057 device state timeout ignored in state 2
18:20:36:011 device state timeout ignored in state 2
18:20:37:011 device state timeout ignored in state 2
18:20:38:012 try to reconnect to network try=1
18:20:38:012 device state timeout ignored in state 2
18:20:39:011 device state timeout (handled)
18:20:39:511 wait reconnect 15 seconds
18:20:39:511 void zmMaster::handleStateIdle(zmMaster::MasterEvent) not connected goto OFF state
18:20:39:511 device state timeout ignored in state 1
18:20:40:512 wait reconnect 14 seconds
18:20:41:512 wait reconnect 13 seconds
18:20:42:511 wait reconnect 12 seconds
18:20:43:011 failed to reconnect to network try=2
18:20:43:511 wait reconnect 11 seconds
18:20:44:512 wait reconnect 10 seconds
18:20:45:511 wait reconnect 9 seconds
18:20:46:512 wait reconnect 8 seconds
18:20:47:511 wait reconnect 7 seconds
18:20:48:011 failed to reconnect to network try=3
18:20:48:511 wait reconnect 6 seconds
18:20:49:511 wait reconnect 5 seconds
18:20:50:511 wait reconnect 4 seconds
18:20:51:511 wait reconnect 3 seconds
18:20:52:511 wait reconnect 2 seconds
18:20:53:012 failed to reconnect to network try=4
18:20:53:511 wait reconnect 1 seconds
18:20:53:728 Announced to internet http://dresden-light.appspot.com/discover
18:20:54:109 device state timeout ignored in state 2
18:20:55:059 device state timeout ignored in state 2
18:20:56:011 device state timeout ignored in state 2
18:20:57:011 device state timeout ignored in state 2
18:20:58:011 try to reconnect to network try=5
18:20:58:011 device state timeout ignored in state 2
18:20:59:011 device state timeout (handled)
18:20:59:512 wait reconnect 15 seconds
18:20:59:512 void zmMaster::handleStateIdle(zmMaster::MasterEvent) not connected goto OFF state
18:20:59:512 device state timeout ignored in state 1
18:21:00:512 wait reconnect 14 seconds
18:21:01:512 wait reconnect 13 seconds
18:21:02:511 wait reconnect 12 seconds
18:21:03:012 failed to reconnect to network try=6
18:21:03:512 wait reconnect 11 seconds
18:21:04:511 wait reconnect 10 seconds
18:21:05:511 wait reconnect 9 seconds
18:21:06:511 wait reconnect 8 seconds
18:21:07:511 wait reconnect 7 seconds
18:21:08:011 failed to reconnect to network try=7
18:21:08:511 wait reconnect 6 seconds
18:21:09:511 wait reconnect 5 seconds
18:21:10:511 wait reconnect 4 seconds
18:21:11:511 wait reconnect 3 seconds
18:21:12:511 wait reconnect 2 seconds
18:21:13:012 failed to reconnect to network try=8
18:21:13:511 wait reconnect 1 seconds
18:21:14:106 device state timeout ignored in state 2
18:21:15:056 device state timeout ignored in state 2
18:21:16:011 device state timeout ignored in state 2
18:21:17:011 device state timeout ignored in state 2
18:21:18:012 try to reconnect to network try=9
18:21:18:012 device state timeout ignored in state 2
18:21:19:012 device state timeout (handled)
18:21:19:511 wait reconnect 15 seconds
18:21:19:511 void zmMaster::handleStateIdle(zmMaster::MasterEvent) not connected goto OFF state
18:21:19:511 device state timeout ignored in state 1
18:21:20:511 wait reconnect 14 seconds
18:21:21:512 wait reconnect 13 seconds
18:21:22:511 wait reconnect 12 seconds
18:21:23:011 failed to reconnect to network try=10
18:21:23:511 wait reconnect 11 seconds
18:21:24:511 wait reconnect 10 seconds
18:21:25:512 wait reconnect 9 seconds
18:21:26:511 wait reconnect 8 seconds
18:21:27:512 wait reconnect 7 seconds
18:21:28:012 reconnect network failed, try later
18:21:28:012 start reconnect to network
18:21:28:511 wait reconnect 6 seconds
18:21:29:511 wait reconnect 5 seconds
18:21:30:511 wait reconnect 4 seconds
18:21:31:511 wait reconnect 3 seconds
18:21:32:511 wait reconnect 2 seconds
18:21:33:011 failed to reconnect to network try=1
18:21:33:511 wait reconnect 1 seconds
18:21:34:118 device state timeout ignored in state 2
18:21:35:068 device state timeout ignored in state 2
18:21:36:018 device state timeout ignored in state 2
18:21:37:011 device state timeout ignored in state 2
18:21:38:011 try to reconnect to network try=2
18:21:38:012 device state timeout ignored in state 2
18:21:39:011 device state timeout (handled)
18:21:39:511 wait reconnect 15 seconds
18:21:39:511 void zmMaster::handleStateIdle(zmMaster::MasterEvent) not connected goto OFF state
18:21:39:511 device state timeout ignored in state 1
18:21:40:511 wait reconnect 14 seconds
18:21:41:511 wait reconnect 13 seconds
18:21:42:512 wait reconnect 12 seconds
18:21:43:012 failed to reconnect to network try=3
18:21:43:511 wait reconnect 11 seconds
18:21:44:511 wait reconnect 10 seconds
18:21:45:511 wait reconnect 9 seconds
18:21:46:511 wait reconnect 8 seconds
18:21:47:511 wait reconnect 7 seconds
18:21:48:011 failed to reconnect to network try=4
18:21:48:511 wait reconnect 6 seconds
18:21:49:511 wait reconnect 5 seconds
18:21:50:511 wait reconnect 4 seconds
18:21:51:511 wait reconnect 3 seconds
18:21:52:511 wait reconnect 2 seconds
18:21:53:012 failed to reconnect to network try=5
18:21:53:511 wait reconnect 1 seconds
18:21:54:098 device state timeout ignored in state 2
18:21:55:048 device state timeout ignored in state 2
18:21:56:011 device state timeout ignored in state 2
18:21:57:011 device state timeout ignored in state 2
18:21:58:012 try to reconnect to network try=6
18:21:58:012 device state timeout ignored in state 2
18:21:59:012 device state timeout (handled)
18:21:59:512 wait reconnect 15 seconds
18:21:59:512 void zmMaster::handleStateIdle(zmMaster::MasterEvent) not connected goto OFF state
18:21:59:512 device state timeout ignored in state 1
18:22:00:511 wait reconnect 14 seconds
18:22:01:511 wait reconnect 13 seconds
18:22:02:511 wait reconnect 12 seconds
18:22:03:012 failed to reconnect to network try=7
18:22:03:512 wait reconnect 11 seconds
18:22:04:511 wait reconnect 10 seconds
18:22:05:511 wait reconnect 9 seconds
18:22:06:511 wait reconnect 8 seconds
18:22:07:511 wait reconnect 7 seconds
18:22:08:011 failed to reconnect to network try=8
18:22:08:511 wait reconnect 6 seconds
18:22:09:511 wait reconnect 5 seconds
18:22:10:511 wait reconnect 4 seconds
18:22:11:511 wait reconnect 3 seconds
18:22:12:511 wait reconnect 2 seconds
18:22:13:011 failed to reconnect to network try=9
18:22:13:512 wait reconnect 1 seconds
18:22:14:106 device state timeout ignored in state 2
18:22:15:057 device state timeout ignored in state 2
18:22:16:011 device state timeout ignored in state 2
18:22:17:012 device state timeout ignored in state 2
18:22:18:012 try to reconnect to network try=10
18:22:18:012 device state timeout ignored in state 2
18:22:19:011 device state timeout (handled)
18:22:19:511 wait reconnect 15 seconds
18:22:19:512 void zmMaster::handleStateIdle(zmMaster::MasterEvent) not connected goto OFF state
18:22:19:512 device state timeout ignored in state 1
18:22:20:511 wait reconnect 14 seconds
18:22:21:511 wait reconnect 13 seconds
18:22:22:511 wait reconnect 12 seconds
18:22:23:011 reconnect network failed, try later
18:22:23:011 start reconnect to network
18:22:23:512 wait reconnect 11 seconds
18:22:24:511 wait reconnect 10 seconds
18:22:25:512 wait reconnect 9 seconds
18:22:26:511 wait reconnect 8 seconds
18:22:27:512 wait reconnect 7 seconds
18:22:28:011 failed to reconnect to network try=1
18:22:28:511 wait reconnect 6 seconds
18:22:29:511 wait reconnect 5 seconds
18:22:30:511 wait reconnect 4 seconds
18:22:31:511 wait reconnect 3 seconds
18:22:32:512 wait reconnect 2 seconds
18:22:33:012 failed to reconnect to network try=2
18:22:33:512 wait reconnect 1 seconds
18:22:34:108 device state timeout ignored in state 2
18:22:35:058 device state timeout ignored in state 2
18:22:36:012 device state timeout ignored in state 2
18:22:37:011 device state timeout ignored in state 2
18:22:38:011 try to reconnect to network try=3
18:22:38:011 device state timeout ignored in state 2
18:22:39:011 device state timeout (handled)
18:22:39:511 wait reconnect 15 seconds
18:22:39:511 void zmMaster::handleStateIdle(zmMaster::MasterEvent) not connected goto OFF state
18:22:39:511 device state timeout ignored in state 1
18:22:40:511 wait reconnect 14 seconds
18:22:41:511 wait reconnect 13 seconds
18:22:42:511 wait reconnect 12 seconds
18:22:43:011 failed to reconnect to network try=4
18:22:43:511 wait reconnect 11 seconds
18:22:44:511 wait reconnect 10 seconds
18:22:45:511 wait reconnect 9 seconds
18:22:46:511 wait reconnect 8 seconds
18:22:47:511 wait reconnect 7 seconds
18:22:48:011 failed to reconnect to network try=5
18:22:48:511 wait reconnect 6 seconds
18:22:49:512 wait reconnect 5 seconds
18:22:50:511 wait reconnect 4 seconds
18:22:51:511 wait reconnect 3 seconds
18:22:52:511 wait reconnect 2 seconds
18:22:53:012 failed to reconnect to network try=6
18:22:53:511 wait reconnect 1 seconds
18:22:54:107 device state timeout ignored in state 2
18:22:55:058 device state timeout ignored in state 2
18:22:56:011 device state timeout ignored in state 2
18:22:57:011 device state timeout ignored in state 2
18:22:58:011 try to reconnect to network try=7
18:22:58:011 device state timeout ignored in state 2
18:22:59:011 device state timeout (handled)
18:22:59:511 wait reconnect 15 seconds
18:22:59:511 void zmMaster::handleStateIdle(zmMaster::MasterEvent) not connected goto OFF state
18:22:59:511 device state timeout ignored in state 1
18:23:00:511 wait reconnect 14 seconds
18:23:01:511 wait reconnect 13 seconds
18:23:02:511 wait reconnect 12 seconds
18:23:03:012 failed to reconnect to network try=8
18:23:03:511 wait reconnect 11 seconds
18:23:04:511 wait reconnect 10 seconds
18:23:05:511 wait reconnect 9 seconds
18:23:06:511 wait reconnect 8 seconds
18:23:07:511 wait reconnect 7 seconds
18:23:08:011 failed to reconnect to network try=9
18:23:08:511 wait reconnect 6 seconds
18:23:09:511 wait reconnect 5 seconds
18:23:10:511 wait reconnect 4 seconds
18:23:11:511 wait reconnect 3 seconds
18:23:12:511 wait reconnect 2 seconds
18:23:13:012 failed to reconnect to network try=10
18:23:13:511 wait reconnect 1 seconds
18:23:14:103 device state timeout ignored in state 2
18:23:15:053 device state timeout ignored in state 2
18:23:16:011 device state timeout ignored in state 2
18:23:17:011 device state timeout ignored in state 2
18:23:18:011 reconnect network failed, try later
18:23:18:012 start reconnect to network
18:23:18:012 device state timeout ignored in state 2
18:23:19:011 device state timeout (handled)
18:23:19:511 wait reconnect 15 seconds
18:23:19:511 void zmMaster::handleStateIdle(zmMaster::MasterEvent) not connected goto OFF state
18:23:19:511 device state timeout ignored in state 1
18:23:20:512 wait reconnect 14 seconds
18:23:21:512 wait reconnect 13 seconds
18:23:22:511 wait reconnect 12 seconds
18:23:23:011 failed to reconnect to network try=1
18:23:23:511 wait reconnect 11 seconds
18:23:24:512 wait reconnect 10 seconds
18:23:25:511 wait reconnect 9 seconds
18:23:26:511 wait reconnect 8 seconds
18:23:27:511 wait reconnect 7 seconds
18:23:28:011 failed to reconnect to network try=2
18:23:28:512 wait reconnect 6 seconds
18:23:29:511 wait reconnect 5 seconds
18:23:30:511 wait reconnect 4 seconds
18:23:31:511 wait reconnect 3 seconds
18:23:32:511 wait reconnect 2 seconds
18:23:33:011 failed to reconnect to network try=3
18:23:33:511 wait reconnect 1 seconds
18:23:34:124 device state timeout ignored in state 2
18:23:35:075 device state timeout ignored in state 2
18:23:36:025 device state timeout ignored in state 2
18:23:37:012 device state timeout ignored in state 2
18:23:38:011 try to reconnect to network try=4
18:23:38:011 device state timeout ignored in state 2
18:23:39:011 device state timeout (handled)
18:23:39:511 wait reconnect 15 seconds
18:23:39:512 void zmMaster::handleStateIdle(zmMaster::MasterEvent) not connected goto OFF state
18:23:39:512 device state timeout ignored in state 1
18:23:40:511 wait reconnect 14 seconds
18:23:41:511 wait reconnect 13 seconds
18:23:42:511 wait reconnect 12 seconds
18:23:43:011 failed to reconnect to network try=5
18:23:43:511 wait reconnect 11 seconds
18:23:44:511 wait reconnect 10 seconds
18:23:45:511 wait reconnect 9 seconds
18:23:46:511 wait reconnect 8 seconds
18:23:47:511 wait reconnect 7 seconds
18:23:48:011 failed to reconnect to network try=6
18:23:48:511 wait reconnect 6 seconds
18:23:49:511 wait reconnect 5 seconds
18:23:50:511 wait reconnect 4 seconds
18:23:51:511 wait reconnect 3 seconds
18:23:52:511 wait reconnect 2 seconds
18:23:53:012 failed to reconnect to network try=7
18:23:53:511 wait reconnect 1 seconds
18:23:54:104 device state timeout ignored in state 2
18:23:55:054 device state timeout ignored in state 2
18:23:56:011 device state timeout ignored in state 2
18:23:57:011 device state timeout ignored in state 2
18:23:58:011 try to reconnect to network try=8
18:23:58:012 device state timeout ignored in state 2
18:23:59:011 device state timeout (handled)
18:23:59:511 wait reconnect 15 seconds
18:23:59:511 void zmMaster::handleStateIdle(zmMaster::MasterEvent) not connected goto OFF state
18:23:59:511 device state timeout ignored in state 1
18:24:00:511 wait reconnect 14 seconds
18:24:01:511 wait reconnect 13 seconds
18:24:02:511 wait reconnect 12 seconds
18:24:03:011 failed to reconnect to network try=9
18:24:03:512 wait reconnect 11 seconds
18:24:04:511 wait reconnect 10 seconds
18:24:05:511 wait reconnect 9 seconds
18:24:06:511 wait reconnect 8 seconds
18:24:07:511 wait reconnect 7 seconds
18:24:08:011 failed to reconnect to network try=10
18:24:08:511 wait reconnect 6 seconds
18:24:09:512 wait reconnect 5 seconds
18:24:10:511 wait reconnect 4 seconds
18:24:11:511 wait reconnect 3 seconds
18:24:12:511 wait reconnect 2 seconds
18:24:13:011 reconnect network failed, try later
18:24:13:011 start reconnect to network
18:24:13:511 wait reconnect 1 seconds
18:24:14:108 device state timeout ignored in state 2
18:24:15:058 device state timeout ignored in state 2
18:24:16:012 device state timeout ignored in state 2
18:24:17:012 device state timeout ignored in state 2
18:24:18:011 try to reconnect to network try=1
18:24:18:011 device state timeout ignored in state 2
18:24:19:011 device state timeout (handled)
18:24:19:511 wait reconnect 15 seconds
18:24:19:511 void zmMaster::handleStateIdle(zmMaster::MasterEvent) not connected goto OFF state
18:24:19:511 device state timeout ignored in state 1
18:24:20:511 wait reconnect 14 seconds
18:24:21:511 wait reconnect 13 seconds
18:24:22:511 wait reconnect 12 seconds
18:24:23:011 failed to reconnect to network try=2
18:24:23:511 wait reconnect 11 seconds
18:24:24:511 wait reconnect 10 seconds
18:24:25:511 wait reconnect 9 seconds
18:24:26:511 wait reconnect 8 seconds
18:24:27:511 wait reconnect 7 seconds
18:24:28:011 failed to reconnect to network try=3
18:24:28:511 wait reconnect 6 seconds
18:24:29:511 wait reconnect 5 seconds
18:24:30:511 wait reconnect 4 seconds
18:24:31:511 wait reconnect 3 seconds
18:24:32:512 wait reconnect 2 seconds
18:24:33:012 failed to reconnect to network try=4
18:24:33:511 wait reconnect 1 seconds
18:24:34:098 device state timeout ignored in state 2
18:24:35:048 device state timeout ignored in state 2
18:24:36:011 device state timeout ignored in state 2
18:24:37:011 device state timeout ignored in state 2
18:24:38:011 try to reconnect to network try=5
18:24:38:012 device state timeout ignored in state 2
18:24:39:011 device state timeout (handled)
18:24:39:511 wait reconnect 15 seconds
18:24:39:511 void zmMaster::handleStateIdle(zmMaster::MasterEvent) not connected goto OFF state
18:24:39:511 device state timeout ignored in state 1
18:24:40:511 wait reconnect 14 seconds
18:24:41:512 wait reconnect 13 seconds
18:24:42:511 wait reconnect 12 seconds
18:24:43:011 failed to reconnect to network try=6
18:24:43:512 wait reconnect 11 seconds
18:24:44:511 wait reconnect 10 seconds
18:24:45:511 wait reconnect 9 seconds
18:24:46:512 wait reconnect 8 seconds
18:24:47:511 wait reconnect 7 seconds
18:24:48:012 failed to reconnect to network try=7
18:24:48:511 wait reconnect 6 seconds
18:24:49:511 wait reconnect 5 seconds
18:24:50:511 wait reconnect 4 seconds
18:24:51:511 wait reconnect 3 seconds
18:24:52:511 wait reconnect 2 seconds
18:24:53:011 failed to reconnect to network try=8
18:24:53:511 wait reconnect 1 seconds
18:24:54:109 device state timeout ignored in state 2
18:24:55:060 device state timeout ignored in state 2
18:24:56:011 device state timeout ignored in state 2
18:24:57:011 device state timeout ignored in state 2
18:24:58:011 try to reconnect to network try=9
18:24:58:011 device state timeout ignored in state 2
18:24:59:011 device state timeout (handled)
18:24:59:512 wait reconnect 15 seconds
18:24:59:512 void zmMaster::handleStateIdle(zmMaster::MasterEvent) not connected goto OFF state
18:24:59:512 device state timeout ignored in state 1
18:25:00:511 wait reconnect 14 seconds
18:25:01:511 wait reconnect 13 seconds
18:25:02:512 wait reconnect 12 seconds
18:25:03:012 failed to reconnect to network try=10
18:25:03:511 wait reconnect 11 seconds
18:25:04:511 wait reconnect 10 seconds
18:25:05:511 wait reconnect 9 seconds
18:25:06:511 wait reconnect 8 seconds
18:25:07:511 wait reconnect 7 seconds
18:25:08:011 reconnect network failed, try later
18:25:08:011 start reconnect to network
18:25:08:512 wait reconnect 6 seconds
18:25:09:511 wait reconnect 5 seconds
18:25:10:511 wait reconnect 4 seconds
18:25:11:511 wait reconnect 3 seconds
18:25:12:512 wait reconnect 2 seconds
18:25:13:012 failed to reconnect to network try=1
18:25:13:511 wait reconnect 1 seconds
18:25:14:114 device state timeout ignored in state 2
18:25:15:064 device state timeout ignored in state 2
18:25:16:014 device state timeout ignored in state 2
18:25:17:011 device state timeout ignored in state 2
18:25:18:011 try to reconnect to network try=2
18:25:18:012 device state timeout ignored in state 2
18:25:19:011 device state timeout (handled)
18:25:19:511 wait reconnect 15 seconds
18:25:19:511 void zmMaster::handleStateIdle(zmMaster::MasterEvent) not connected goto OFF state
18:25:19:511 device state timeout ignored in state 1
18:25:20:511 wait reconnect 14 seconds
18:25:21:511 wait reconnect 13 seconds

Are these USB 3.0 ports? Do you have a spare extension cable laying around? It’s always recommended to put the ConBee on an extension cable to avoid possible interference. USB 3.0 also causes interference with the ConBee.

What do you get when you enter lsusb on the host machine?

Yes, It was a USB3 port.

$ lsusb
Bus 002 Device 003: ID 8086:0189 Intel Corp. 
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 008: ID 1cf1:0030 Dresden Elektronik 
Bus 003 Device 002: ID 0658:0200 Sigma Designs, Inc. 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0408:2fb1 Quanta Computer, Inc. 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I’ll try on a USB2 port to see if there is a difference, but on my future production server, I will be connected to a USB3 hub (only two ports available and one is connected to USB–>ethernet adaptator) , so I hope it is not the issue.

No change with a USB2 port, and

Bus 002 Device 007: ID 1cf1:0030 Dresden Elektronik 

seems to be the stick

It may cause issues, I had problems with an USB 3.0 port on my NUC as well until I put the stick on an extension cord.

Do you see /dev/ttyACM1 on the host machine?

Well noted, I’ll try to get my hand on a extension cord ASAP.
I do see the ACM :

ls /dev/tty* | grep AC
/dev/ttyACM1
/dev/ttyACM2

but it seems since I switched them they changed their id

Use udev rules to map the stick to a fix address by using the device-id. This way it will always be the same no matter in which port you stick the ConBee. Take a look here
Is the docker user in the dialout group?

I Don’t see any DOCKER user in in /etc/passwd
And I an the only user in the DOCKER group.
If I try to see members of dialout group, it’s quite empty

I’ll Add the udev rules once I get home

So I added the udev rules and they are working :

$ ls /dev/tty*
/dev/tty    /dev/tty2   /dev/tty31  /dev/tty43  /dev/tty55  /dev/ttyACM0    /dev/ttyS18  /dev/ttyS3
/dev/tty0   /dev/tty20  /dev/tty32  /dev/tty44  /dev/tty56  /dev/ttyACM1    /dev/ttyS19  /dev/ttyS30
/dev/tty1   /dev/tty21  /dev/tty33  /dev/tty45  /dev/tty57  /dev/ttyprintk  /dev/ttyS2   /dev/ttyS31
/dev/tty10  /dev/tty22  /dev/tty34  /dev/tty46  /dev/tty58  /dev/ttyS0      /dev/ttyS20  /dev/ttyS4
/dev/tty11  /dev/tty23  /dev/tty35  /dev/tty47  /dev/tty59  /dev/ttyS1      /dev/ttyS21  /dev/ttyS5
/dev/tty12  /dev/tty24  /dev/tty36  /dev/tty48  /dev/tty6   /dev/ttyS10     /dev/ttyS22  /dev/ttyS6
/dev/tty13  /dev/tty25  /dev/tty37  /dev/tty49  /dev/tty60  /dev/ttyS11     /dev/ttyS23  /dev/ttyS7
/dev/tty14  /dev/tty26  /dev/tty38  /dev/tty5   /dev/tty61  /dev/ttyS12     /dev/ttyS24  /dev/ttyS8
/dev/tty15  /dev/tty27  /dev/tty39  /dev/tty50  /dev/tty62  /dev/ttyS13     /dev/ttyS25  /dev/ttyS9
/dev/tty16  /dev/tty28  /dev/tty4   /dev/tty51  /dev/tty63  /dev/ttyS14     /dev/ttyS26  /dev/ttyZIGBEE
/dev/tty17  /dev/tty29  /dev/tty40  /dev/tty52  /dev/tty7   /dev/ttyS15     /dev/ttyS27  /dev/ttyZWAVE
/dev/tty18  /dev/tty3   /dev/tty41  /dev/tty53  /dev/tty8   /dev/ttyS16     /dev/ttyS28
/dev/tty19  /dev/tty30  /dev/tty42  /dev/tty54  /dev/tty9   /dev/ttyS17     /dev/ttyS29

the :

  • ttyZIGBEE
  • ttyZWAVE

are both of my stick
in my docker-config file I mapped them as :

  - /dev/ttyZIGBEE:/dev/ttyUSB0
  - /dev/ttyZWAVE:/dev/ttyACM0

But in the end, nothing really changed, I still cant pair my devices

the logfile is bad though

2020-01-04 22:35:16 ERROR (MainThread) [homeassistant.components.deconz] Error connecting to deCONZ gateway at 192.168.1.16
2020-01-04 22:35:16 WARNING (MainThread) [homeassistant.config_entries] Config entry for deconz not ready yet. Retrying in 80 seconds.
2020-01-04 22:36:37 ERROR (MainThread) [homeassistant.components.deconz] Error connecting to deCONZ gateway at 192.168.1.16
2020-01-04 22:36:37 WARNING (MainThread) [homeassistant.config_entries] Config entry for deconz not ready yet. Retrying in 80 seconds.
2020-01-04 22:37:58 ERROR (MainThread) [homeassistant.components.deconz] Error connecting to deCONZ gateway at 192.168.1.16
2020-01-04 22:37:58 WARNING (MainThread) [homeassistant.config_entries] Config entry for deconz not ready yet. Retrying in 80 seconds.

Update : I had chaged the port from 80 to 8080 for deconz so that is why I had HA error , it is bettter now

2020-01-04 22:51:06 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.deconz
2020-01-04 22:51:06 INFO (MainThread) [homeassistant.components.climate] Setting up climate.deconz
2020-01-04 22:51:06 INFO (MainThread) [homeassistant.components.cover] Setting up cover.deconz
2020-01-04 22:51:06 INFO (MainThread) [homeassistant.components.light] Setting up light.deconz
2020-01-04 22:51:06 INFO (MainThread) [homeassistant.components.scene] Setting up scene.deconz
2020-01-04 22:51:06 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.deconz
2020-01-04 22:51:06 INFO (MainThread) [homeassistant.components.switch] Setting up switch.deconz
2020-01-04 22:51:06 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.deconz entity: sensor.daylight

but I still cant add items to deconz.

Why do you pass Conbee to Home assistant container? It should be passed only to deconz.

I guess you are right,
I change my docker-conpose file to

version: '3'
services:
  homeassistant:
    container_name: home-assistant
    image: homeassistant/home-assistant:stable
    volumes:
      - /opt/Docker/Home_Assistant/:/config
    devices:
      - /dev/ttyZWAVE:/dev/ttyACM0
    environment:
      - TZ=Europe/Paris
    restart: always
    network_mode: host
  nodered:
    container_name: node-red
    restart: unless-stopped
    image: nodered/node-red:latest
    depends_on:
      - "homeassistant"
    user: root
    volumes:
      - /opt/Docker/Node_Red/:/data
    ports:
      - "1880:1880"
  deconz:
    image: marthoc/deconz
    container_name: deconz
    network_mode: host
    restart: always
    volumes:
      - /opt/Docker/Deconz:/root/.local/share/dresden-elektronik/deCONZ
    devices:
      - /dev/ttyZIGBEE:/dev/ttyUSB0
    environment:
      - DECONZ_WEB_PORT=8080
      - DECONZ_WS_PORT=4443
      - DEBUG_INFO=1
      - DEBUG_APS=0
      - DEBUG_ZCL=0
      - DEBUG_ZDP=0
      - DEBUG_OTAU=0

But in the end it doest change anything

the logs trying to pain light-bulb and switch

22:37:14:201 DB sqlite version 3.16.2
22:37:14:202 DB PRAGMA page_count: 30
22:37:14:202 DB PRAGMA page_size: 4096
22:37:14:202 DB PRAGMA freelist_count: 0
22:37:14:202 DB file size 122880 bytes, free pages 0
22:37:14:202 DB PRAGMA user_version: 6
22:37:14:202 DB cleanup
22:37:14:202 DB create temporary views
22:37:14:205 don't close database yet, keep open for 900 seconds
22:37:14:206 started websocket server at port 4443
22:37:14:207 GW firmware update not supported on x86 linux headless
22:37:14:208 found node plugin: libde_rest_plugin.so - REST API Plugin
22:37:14:209 found node plugin: libde_signal_plugin.so - Signal Monitor Plugin
22:37:14:213 found node plugin: libstd_otau_plugin.so - STD OTAU Plugin
This plugin does not support propagateSizeHints()
This plugin does not support propagateSizeHints()
22:37:18:032 New websocket 192.168.1.16:47326 (state: 3) 
22:37:20:233 Announced to internet http://dresden-light.appspot.com/discover
22:37:34:445 start reconnect to network
22:37:39:445 failed to reconnect to network try=1
22:37:44:445 failed to reconnect to network try=2
22:37:44:449 New websocket 192.168.1.248:57502 (state: 3) 
22:37:49:445 failed to reconnect to network try=3
22:37:54:445 failed to reconnect to network try=4
22:37:59:445 failed to reconnect to network try=5
22:38:04:445 failed to reconnect to network try=6
22:38:09:444 failed to reconnect to network try=7
22:38:14:445 failed to reconnect to network try=8
22:38:19:445 failed to reconnect to network try=9
22:38:24:445 failed to reconnect to network try=10
22:38:29:445 reconnect network failed, try later
22:38:29:445 start reconnect to network
22:38:34:445 failed to reconnect to network try=1
22:38:39:445 failed to reconnect to network try=2
22:38:44:446 failed to reconnect to network try=3
22:38:49:445 failed to reconnect to network try=4
22:38:54:445 failed to reconnect to network try=5
22:38:59:445 failed to reconnect to network try=6
22:39:04:446 failed to reconnect to network try=7
22:39:09:445 failed to reconnect to network try=8
22:39:14:445 failed to reconnect to network try=9
22:39:19:445 failed to reconnect to network try=10
22:39:24:445 reconnect network failed, try later
22:39:24:445 start reconnect to network

I tried with a USB3 dock 1 USB --> 4 USB with only the conbee stick in it but I still have the same issue,
I verified my ced user was part of the dialout group

I was reading conbee troubleshooting and it seems communication between ConBee II and deCONZ is not working as the frimware displays not connected.

I though I should try updating the firmware and used the script provided in the deconz docker container

docker run -it --rm --entrypoint "/firmware-update.sh" --privileged --cap-add=ALL -v /dev:/dev -v /lib/modules:/lib/modules -v /sys:/sys marthoc/deconz
-------------------------------------------------------------------
 
             marthoc/deconz Firmware Flashing Script
 
                       Version: 0.5
 
-------------------------------------------------------------------
 
 
Listing attached devices...
 
GCFFlasher V3_06 (c) dresden elektronik ingenieurtechnik gmbh
Path             | Vendor | Product | Serial     | Type
-----------------+--------+---------+------------+-------
/dev/ttyACM0     | 0x1CF1 | 0x0030  |            | ConBee II 
/dev/ttyACM2     | 0x1CF1 | 0x0030  |            | ConBee II 
 
Enter the full device path, or press Enter now to exit.
 
Device Path : /dev/ttyACM0
 
-------------------------------------------------------------------
 
Firmware available for flashing:
 
deCONZ_ConBeeII_0x26490700.bin.GCF
deCONZ_ConBeeII_0x264a0700.bin.GCF
deCONZ_Rpi_0x26330500.bin.GCF
 
Enter the firmware file name from above, including extension,
or press Enter now to exit.
 
File Name : deCONZ_ConBeeII_0x26490700.bin.GCF    
 
-------------------------------------------------------------------
 
Device: /dev/ttyACM0
 
Firmware File: deCONZ_ConBeeII_0x26490700.bin.GCF
 
Are the above device and firmware values correct?
Enter Y to proceed, any other entry to exit: Y
 
Flashing...
 
GCFFlasher V3_06 (c) dresden elektronik ingenieurtechnik gmbh
Reboot device /dev/ttyACM0 (ConBee II)
deCONZ firmware version 264A0700
action: update firmware after 6958 ms
flashing 158985 bytes: |=====error: timeout flashing firmware after 3004 ms
 
Flashing Error! Please re-run this script...
 

it fails, could it be a hardware problem ?

So I made some test connecting my conbee II direcly to my laptop, installing deconz, and there it work, I can detect and add lights.

So I guess the key is working and it is rather a soft problem. It may be the user owning the container not being in the dialout group, but there is not docker user, and [ced, root] are part of the dialout group so I am not sure who could be missing…

Ok that’s good at least we know the stick is working.

Can you try changing your docker-compose part for deconz to this:

  deconz:
    image: marthoc/deconz
    container_name: deconz
    restart: always
    ports:
      - "8080:8080"
      - "5900:5900"
    volumes:
      - /opt/Docker/Deconz:/root/.local/share/dresden-elektronik/deCONZ
    devices:
      - /dev/ttyZIGBEE
    environment:
      - DECONZ_WEB_PORT=8080
      - DECONZ_WS_PORT=4443
      - DEBUG_INFO=1
      - DEBUG_APS=0
      - DEBUG_ZCL=0
      - DEBUG_ZDP=0
      - DEBUG_OTAU=0
      - DECONZ_DEVICE=/dev/ttyZIGBEE
1 Like

Thank you so much !!
it seems to work ! I can now see the firmware in the setting part, let me try to pair something…
it works ! :star_struck:
What is your guess ? the - DECONZ_DEVICE=/dev/ttyZIGBEE was needed ?
or, at some point the port 5900 disappeared from my config, could it be that ?

It’s probably the DECONZ_DEVICE, it forces deconz to look for the stick at the address you specify.

Actually port 5900 is only used for VNC, so if you don’t need it you can remove it. However VNC access is quite nice, it allows you to view the mesh created from your devices and also helps in trouble shooting. If you want to enable it, add these to the environment part of deconz:
DECONZ_VNC_MODE=1
DECONZ_VNC_PASSWORD=your_super_secret_password