Zigbee Motion Detector unavailable

Hello, im felix and im quite new to Home Assistant and this community.
I have a problem with Home Assistant 0.88.1 and the Zigbee Conbee stick from Dresden Electronics.

What ive done sofar:

  1. Plugged the Conbee into the Raspberry 3B+, running HassOS 2.8.
  2. Installed deCONZ via official Addos and setup the config to “/dev/ttyUSB0”
  3. setup the Conbee at the Phoscon app and added two Xiaomi Aqara Motion Sensors. They showed up and i can see the stats and if it recognise motion. (it does)
  4. goes to “configuration - integration” and setup the “deCONZ Zigbee Gateway”.
    filled the ip: xxx.xxx.1.5 (raspis IP), and port: 9880. “The config creation for deCONZ-00xxxxxxxxx was successfull”
  5. at the deCONZ-config menu i can see the two Motion Sensors
    (and strangely a “PHDL00” daylight Sensor from Philips, which i never set up.)

And now im stucked. The two Motion Sensors always say “unavailable”.
Several reboots, complete new setups (list above) didnt help.

Does anyone have a clue what it can be?
here is a summary of my deconz related debug-log:

2019-02-28 10:57:26 DEBUG (MainThread) [pydeconz] {'config': {'UTC': '2019-02-28T09:57:26',
        'apiversion': '1.16.0',
        'backup': {'errorcode': 0, 'status': 'idle'},
        'bridgeid': 'XXXXXXX',
        'datastoreversion': '60',
        'devicename': 'ConBee',
        'dhcp': True,
        'factorynew': False,
        'fwversion': '0x262f0500',
        'gateway': '172.30.33.1',
        'internetservices': {'remoteaccess': 'disconnected'},
        'ipaddress': '172.30.33.X',
        'linkbutton': False,
        'localtime': '2019-02-28T10:57:26',
        'mac': '02:42:ac:1e:21:01',
        'modelid': 'deCONZ',
        'name': 'Hassio_GW',
        'netmask': '255.255.254.0',
        'networkopenduration': 60,
        'panid': XXXXX,
        'portalconnection': 'disconnected',
        'portalservices': False,
        'portalstate': {'communication': 'disconnected',
                        'incoming': False,
                        'outgoing': False,
                        'signedon': False},
        'proxyaddress': 'none',
        'proxyport': 0,
        'replacesbridgeid': None,
        'rfconnected': True,
        'starterkitid': '',
        'swupdate': {'checkforupdate': False,
                     'devicetypes': {'bridge': False,
                                     'lights': [],
                                     'sensors': []},
                     'notify': False,
                     'text': '',
                     'updatestate': 0,
                     'url': ''},
        'swupdate2': {'autoinstall': {'on': False, 'updatetime': ''},
                      'bridge': {'lastinstall': '2019-02-14T20:05:40',
                                 'state': 'allreadytoinstall'},
                      'checkforupdate': False,
                      'install': False,
                      'lastchange': '',
                      'lastinstall': '',
                      'state': 'allreadytoinstall'},
        'swversion': '2.5.59',
        'timeformat': '24h',
        'timezone': 'Etc/GMT-1',
        'uuid': 'XXXXXXXXX',
        'websocketnotifyall': True,
        'websocketport': 8080,
        'whitelist': {'0FDF472B77': {'create date': '2019-02-27T20:35:24',
                                     'last use date': '2019-02-27T20:52:48',
                                     'name': 'pydeconz'},
                      '2DD7300899': {'create date': '2019-02-27T20:31:49',
                                     'last use date': '2019-02-27T20:31:56',
                                     'name': 'pydeconz'},
                      '3FC0E0A96D': {'create date': '2019-02-27T21:37:46',
                                     'last use date': '2019-02-27T21:37:49',
                                     'name': 'pydeconz'},
                      '47A5ACEB24': {'create date': '2019-02-27T20:26:22',
                                     'last use date': '2019-02-27T22:53:43',
                                     'name': 'Phoscon#B1349x915'},
                      '505642DDE9': {'create date': '2019-02-28T09:56:03',
                                     'last use date': '2019-02-28T09:57:26',
                                     'name': 'pydeconz'},
                      '60BF672531': {'create date': '2019-02-28T09:37:00',
                                     'last use date': '2019-02-28T09:57:23',
                                     'name': 'Phoscon#B412x657'},
                      'A17C18D5E9': {'create date': '2019-02-27T22:45:20',
                                     'last use date': '2019-02-28T09:14:53',
                                     'name': 'pydeconz'},
                      'C996977599': {'create date': '2019-02-27T22:30:30',
                                     'last use date': '2019-02-27T22:30:32',
                                     'name': 'pydeconz'},
                      'CC0EB9C158': {'create date': '2019-02-27T21:51:52',
                                     'last use date': '2019-02-27T22:24:07',
                                     'name': 'pydeconz'}},
        'zigbeechannel': 15},
 'groups': {},
 'lights': {},
 'resourcelinks': {},
 'rules': {},
 'scenes': {},
 'schedules': {},
 'sensors': {'1': {'config': {'configured': True,
                          'on': True,
                          'sunriseoffset': 30,
                          'sunsetoffset': -30},
               'etag': 'XXXXX',
               'manufacturername': 'Philips',
               'modelid': 'PHDL00',
               'name': 'Daylight',
               'state': {'dark': False,
                         'daylight': True,
                         'lastupdated': '2019-02-28T09:51:18',
                         'status': 160},
               'swversion': '1.0',
               'type': 'Daylight',
               'uniqueid': 'XXXXX'},
         '2': {'config': {'battery': 100,
                          'duration': 90,
                          'on': True,
                          'reachable': True,
                          'temperature': 0},
               'ep': 1,
               'etag': 'XXXXX',
               'manufacturername': 'LUMI',
               'modelid': 'lumi.sensor_motion',
               'name': 'BM_Flur',
               'state': {'lastupdated': '2019-02-28T09:35:40',
                         'presence': False},
               'type': 'ZHAPresence',
               'uniqueid': 'XXXXXX'},
         '4': {'config': {'battery': 100,
                          'duration': 90,
                          'on': True,
                          'reachable': True,
                          'temperature': 0},
               'ep': 1,
               'etag': 'XXXXX',
               'manufacturername': 'LUMI',
               'modelid': 'lumi.sensor_motion',
               'name': 'Bewegungsmelder',
               'state': {'lastupdated': '2019-02-28T06:43:56',
                         'presence': False},
               'type': 'ZHAPresence',
               'uniqueid': 'XXXX'}}}`

Thanks for your time and help, felix

They are all marked as reachable which should translate to being available.

Could it be that the web socket doesn’t get setup after initial start? Do you have any additional debug logs?

web socket? this message comes over and over again:

2019-02-28 11:03:42 DEBUG (MainThread) [pydeconz.websocket] Websocket starting
2019-02-28 11:03:42 DEBUG (MainThread) [pydeconz.websocket] Websocket starting
2019-02-28 11:03:42 DEBUG (MainThread) [pydeconz.websocket] Reconnecting to deCONZ in 15.
2019-02-28 11:03:47 INFO (SyncWorker_5) [homeassistant.components.device_tracker.nmap_tracker] Scanning…
2019-02-28 11:03:48 INFO (SyncWorker_5) [homeassistant.components.device_tracker.nmap_tracker] nmap scan successful
2019-02-28 11:03:57 DEBUG (MainThread) [pydeconz.websocket] Websocket starting
2019-02-28 11:03:57 DEBUG (MainThread) [pydeconz.websocket] Websocket starting
2019-02-28 11:03:57 DEBUG (MainThread) [pydeconz.websocket] Reconnecting to deCONZ in 15.
2019-02-28 11:04:00 INFO (SyncWorker_15) [homeassistant.components.device_tracker.nmap_tracker] Scanning…
2019-02-28 11:04:01 INFO (SyncWorker_15) [homeassistant.components.device_tracker.nmap_tracker] nmap scan successful
2019-02-28 11:04:12 DEBUG (MainThread) [pydeconz.websocket] Websocket starting
2019-02-28 11:04:12 DEBUG (MainThread) [pydeconz.websocket] Websocket starting
2019-02-28 11:04:12 DEBUG (MainThread) [pydeconz.websocket] Reconnecting to deCONZ in 15.
2019-02-28 11:04:13 INFO (SyncWorker_7) [homeassistant.components.device_tracker.nmap_tracker] Scanning…
2019-02-28 11:04:14 INFO (SyncWorker_7) [homeassistant.components.device_tracker.nmap_tracker] nmap scan successful
2019-02-28 11:04:26 INFO (SyncWorker_0) [homeassistant.components.device_tracker.nmap_tracker] Scanning…
2019-02-28 11:04:27 INFO (SyncWorker_0) [homeassistant.components.device_tracker.nmap_tracker] nmap scan successful
2019-02-28 11:04:27 DEBUG (MainThread) [pydeconz.websocket] Websocket starting
2019-02-28 11:04:27 DEBUG (MainThread) [pydeconz.websocket] Websocket starting
2019-02-28 11:04:27 DEBUG (MainThread) [pydeconz.websocket] Reconnecting to deCONZ in 15.
2019-02-28 11:04:39 INFO (SyncWorker_12) [homeassistant.components.device_tracker.nmap_tracker] Scanning…
2019-02-28 11:04:40 INFO (SyncWorker_12) [homeassistant.components.device_tracker.nmap_tracker] nmap scan successful
2019-02-28 11:04:42 DEBUG (MainThread) [pydeconz.websocket] Websocket starting
2019-02-28 11:04:42 DEBUG (MainThread) [pydeconz.websocket] Websocket starting

i use nmap to track two IPs.

Thats the issue; web socket can’t connect, something is wrong with the web socket port on your deconz

hm, okay this could mean what?

After installing the fresh new 88.2 update and reinstall deCONZ i get this:

2019-02-28 21:08:31 DEBUG (MainThread) [pydeconz.websocket] Websocket starting
2019-02-28 21:08:31 INFO (MainThread) [homeassistant.setup] Setup of domain notify took 2.1 seconds.
2019-02-28 21:08:31 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.6 seconds.
2019-02-28 21:08:31 INFO (SyncWorker_18) [homeassistant.components.device_tracker.nmap_tracker] Scanning…
2019-02-28 21:08:31 INFO (MainThread) [homeassistant.loader] Loaded binary_sensor from homeassistant.components.binary_sensor
2019-02-28 21:08:31 INFO (MainThread) [homeassistant.setup] Setting up binary_sensor
2019-02-28 21:08:31 INFO (MainThread) [homeassistant.setup] Setup of domain binary_sensor took 0.0 seconds.
2019-02-28 21:08:31 INFO (MainThread) [homeassistant.loader] Loaded cover from homeassistant.components.cover
2019-02-28 21:08:31 INFO (MainThread) [homeassistant.loader] Loaded light from homeassistant.components.light
2019-02-28 21:08:31 INFO (MainThread) [homeassistant.loader] Loaded scene from homeassistant.components.scene
2019-02-28 21:08:31 INFO (MainThread) [homeassistant.setup] Setting up scene
2019-02-28 21:08:31 INFO (MainThread) [homeassistant.setup] Setup of domain scene took 0.0 seconds.
2019-02-28 21:08:31 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 0.5 seconds.
2019-02-28 21:08:31 INFO (MainThread) [homeassistant.loader] Loaded deconz.binary_sensor from homeassistant.components.deconz.binary_sensor
2019-02-28 21:08:31 INFO (MainThread) [homeassistant.loader] Loaded deconz.scene from homeassistant.components.deconz.scene
2019-02-28 21:08:31 INFO (MainThread) [homeassistant.setup] Setting up cover
2019-02-28 21:08:31 INFO (MainThread) [homeassistant.setup] Setup of domain cover took 0.0 seconds.
2019-02-28 21:08:31 INFO (MainThread) [homeassistant.setup] Setting up light
2019-02-28 21:08:31 DEBUG (MainThread) [pydeconz.websocket] Websocket starting
2019-02-28 21:08:31 DEBUG (MainThread) [pydeconz.websocket] Reconnecting to deCONZ in 15.
2019-02-28 21:08:31 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.deconz
2019-02-28 21:08:31 INFO (MainThread) [homeassistant.loader] Loaded deconz.cover from homeassistant.components.deconz.cover
2019-02-28 21:08:31 INFO (MainThread) [homeassistant.components.scene] Setting up scene.deconz
2019-02-28 21:08:31 INFO (MainThread) [homeassistant.setup] Setup of domain light took 0.0 seconds.
2019-02-28 21:08:31 INFO (MainThread) [homeassistant.loader] Loaded deconz.light from homeassistant.components.deconz.light
2019-02-28 21:08:31 INFO (MainThread) [homeassistant.components.cover] Setting up cover.deconz
2019-02-28 21:08:31 INFO (MainThread) [homeassistant.components.light] Setting up light.deconz
2019-02-28 21:08:31 INFO (MainThread) [homeassistant.setup] Setup of domain device_tracker took 0.7 seconds.
2019-02-28 21:08:32 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.7 seconds.
2019-02-28 21:08:32 INFO (MainThread) [homeassistant.setup] Setup of domain switch took 1.2 seconds.
2019-02-28 21:08:32 INFO (MainThread) [homeassistant.loader] Loaded deconz.switch from homeassistant.components.deconz.switch
2019-02-28 21:08:32 INFO (MainThread) [homeassistant.components.switch] Setting up switch.deconz
2019-02-28 21:08:32 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 2.8 seconds.
2019-02-28 21:08:32 INFO (MainThread) [homeassistant.loader] Loaded deconz.sensor from homeassistant.components.deconz.sensor
2019-02-28 21:08:32 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.deconz

and after that, the same as in my post before…

Yes so doing an update of hass doesn’t help here. You need to check out deconz why the port reported from deconz isn’t accessible from hass.

any tip where to start? im very new to home assistant.
Has it something to do with the REST API from
http://dresden-elektronik.github.io/deconz-rest-doc/websocket/ ?

How are you running deconz?

do you mean the system? on a Raspberry 3b+ with HassOS 2.8

in the System Log i found this:

19-02-28 20:08:44 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
19-02-28 20:08:44 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_nodered
19-02-28 20:08:44 ERROR (MainThread) [hassio.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].

does this have anything to do with deconz? im not using nodered anymore.

I did it. “If you look closely, you will find what you are looking for!”

The solution can be found here:

You have to take the deCONZ Add-on from marthoc.

  1. Open the Hass.io menu.
  2. Click ADD-ON STORE .
  3. Enter this URL in the Add new repository by URL box: GitHub - marthoc/hassio-addons: Hass.io Add-ons
  4. Click ADD .
  5. Find marthoc Hass.io Addons in the Add-on Store.
  6. Select the Add-on you wish to install.

Thank you Robban for your time and help!

1 Like

marthoc Deconz add-on is discontinued.
In the info tab of the add-on, the developer is referring to the officiall Deconz add-on.