Brainstorming: how to build a reliable zigbee network well integrated in HA?

it looks that HA sees correctly all the sensor from deconz:

'sensors': {'1': {'config': {'configured': True,
                              'on': True,
                              'sunriseoffset': 30,
                              'sunsetoffset': -30},
                   'etag': 'be0a859e48bb0ccb1eb6e1a209d8fd82',
                   'manufacturername': 'Philips',
                   'modelid': 'PHDL00',
                   'name': 'Daylight',
                   'state': {'dark': False,
                             'daylight': True,
                             'lastupdated': '2019-01-29T07:34:14',
                             'status': 160},
                   'swversion': '1.0',
                   'type': 'Daylight',
                   'uniqueid': '00:21:2e:ff:ff:02:9d:93-01'},
             '10': {'config': {'battery': 100,
                               'on': True,
                               'reachable': True,
                               'temperature': 2600},
                    'ep': 1,
                    'etag': '18c0f3c2100904e31a7f938db2ba9ba9',
                    'manufacturername': 'dresden elektronik',
                    'modelid': 'lumi.sensor_motion.aq2',
                    'name': 'Alarm 10',
                    'state': {'alarm': None,
                              'lastupdated': 'none',
                              'lowbattery': None,
                              'tampered': None},
                    'swversion': '20170627',
                    'type': 'ZHAAlarm',
                    'uniqueid': '00:15:8d:00:02:b5:d1:80-01-0500'},
             '2': {'config': {'battery': 100,
                              'on': True,
                              'reachable': True,
                              'temperature': 2100},
                   'ep': 1,
                   'etag': '2b607bc87acf1f9b558f9dd658ced8a4',
                   'manufacturername': 'LUMI',
                   'modelid': 'lumi.sensor_wleak.aq1',
                   'name': 'water1',
                   'state': {'lastupdated': '2019-01-29T07:28:26',
                             'lowbattery': False,
                             'tampered': False,
                             'water': False},
                   'swversion': '20170721',
                   'type': 'ZHAWater',
                   'uniqueid': '00:15:8d:00:02:4d:84:eb-01-0500'},
             '3': {'config': {'battery': 100,
                              'on': True,
                              'reachable': True,
                              'temperature': 2500},
                   'ep': 1,
                   'etag': '465c1fe9c2c7e49e2cccd92921f5acd0',
                   'manufacturername': 'LUMI',
                   'modelid': 'lumi.sensor_wleak.aq1',
                   'name': 'water4',
                   'state': {'lastupdated': '2019-01-29T07:12:38',
                             'lowbattery': False,
                             'tampered': False,
                             'water': False},
                   'swversion': '20170721',
                   'type': 'ZHAWater',
                   'uniqueid': '00:15:8d:00:02:56:d0:cd-01-0500'},
             '4': {'config': {'battery': 100,
                              'on': True,
                              'reachable': True,
                              'temperature': 2100},
                   'ep': 1,
                   'etag': '4f9ec9bce62a9439ac9c7514e7ed15e8',
                   'manufacturername': 'LUMI',
                   'modelid': 'lumi.sensor_wleak.aq1',
                   'name': 'water3',
                   'state': {'lastupdated': '2019-01-29T07:13:15',
                             'lowbattery': False,
                             'tampered': False,
                             'water': False},
                   'swversion': '20170721',
                   'type': 'ZHAWater',
                   'uniqueid': '00:15:8d:00:02:2f:07:f7-01-0500'},
             '5': {'config': {'battery': 100, 'on': True, 'reachable': True},
                   'ep': 1,
                   'etag': '02dc0c3db173a654946606a6a9451b14',
                   'manufacturername': 'LUMI',
                   'mode': 1,
                   'modelid': 'lumi.sensor_switch',
                   'name': 'switch1',
                   'state': {'buttonevent': 1002,
                             'lastupdated': '2019-01-29T07:21:32'},
                   'type': 'ZHASwitch',
                   'uniqueid': '00:15:8d:00:02:c7:ca:84-01-0006'},
             '6': {'config': {'battery': 100, 'on': True, 'reachable': True},
                   'ep': 1,
                   'etag': '27457a223aef86469eeb376445435f7d',
                   'manufacturername': 'LUMI',
                   'mode': 1,
                   'modelid': 'lumi.sensor_switch',
                   'name': 'switch2',
                   'state': {'buttonevent': 1002,
                             'lastupdated': '2019-01-29T07:16:36'},
                   'type': 'ZHASwitch',
                   'uniqueid': '00:15:8d:00:02:c8:cb:9a-01-0006'},
             '7': {'config': {'battery': 100,
                              'on': True,
                              'reachable': True,
                              'temperature': 2500},
                   'ep': 1,
                   'etag': 'fae893708dfe9b358df59107d944fa1c',
                   'manufacturername': 'LUMI',
                   'modelid': 'lumi.sensor_wleak.aq1',
                   'name': 'water2',
                   'state': {'lastupdated': '2019-01-29T07:13:20',
                             'lowbattery': False,
                             'tampered': False,
                             'water': False},
                   'swversion': '20170721',
                   'type': 'ZHAWater',
                   'uniqueid': '00:15:8d:00:02:2f:07:db-01-0500'},
             '8': {'config': {'battery': 100,
                              'duration': 60,
                              'on': True,
                              'reachable': True,
                              'temperature': 2600},
                   'ep': 1,
                   'etag': '26e97d94b471c1799a1a5951cee7938b',
                   'manufacturername': 'dresden elektronik',
                   'modelid': 'lumi.sensor_motion.aq2',
                   'name': 'presence1',
                   'state': {'lastupdated': '2019-01-29T07:19:53',
                             'presence': False},
                   'swversion': '20170627',
                   'type': 'ZHAPresence',
                   'uniqueid': '00:15:8d:00:02:b5:d1:80-01-0406'},
             '9': {'config': {'battery': 100,
                              'on': True,
                              'reachable': True,
                              'temperature': 2600,
                              'tholddark': 12000,
                              'tholdoffset': 7000},
                   'ep': 1,
                   'etag': '26e97d94b471c1799a1a5951cee7938b',
                   'manufacturername': 'dresden elektronik',
                   'modelid': 'lumi.sensor_motion.aq2',
                   'name': 'LightLevel 9',
                   'state': {'dark': True,
                             'daylight': False,
                             'lastupdated': '2019-01-29T07:19:53',
                             'lightlevel': 0,
                             'lux': 0},
                   'swversion': '20170627',
                   'type': 'ZHALightLevel',
                   'uniqueid': '00:15:8d:00:02:b5:d1:80-01-0400'}}}

but it creates just some out of them:

2019-01-29 08:57:21 DEBUG (MainThread) [pydeconz.deconzdevice] Daylight created as
{'_async_callbacks': [],
 '_battery': None,
 '_daylight': True,
 '_deconz_id': '/sensors/1',
 '_ep': None,
 '_etag': 'be0a859e48bb0ccb1eb6e1a209d8fd82',
 '_manufacturername': 'Philips',
 '_modelid': 'PHDL00',
 '_name': 'Daylight',
 '_on': True,
 '_reachable': None,
 '_sensor_class': None,
 '_sensor_icon': None,
 '_sensor_unit': None,
 '_status': 160,
 '_swversion': '1.0',
 '_type': 'Daylight',
 '_uniqueid': '00:21:2e:ff:ff:02:9d:93-01'}
2019-01-29 08:57:21 INFO (MainThread) [pydeconz.sensor] Unsupported sensor type ZHAAlarm (Alarm 10)
2019-01-29 08:57:21 DEBUG (MainThread) [pydeconz.deconzdevice] water1 created as
{'_async_callbacks': [],
 '_battery': 100,
 '_deconz_id': '/sensors/2',
 '_ep': 1,
 '_etag': '2b607bc87acf1f9b558f9dd658ced8a4',
 '_manufacturername': 'LUMI',
 '_modelid': 'lumi.sensor_wleak.aq1',
 '_name': 'water1',
 '_on': True,
 '_reachable': True,
 '_sensor_class': None,
 '_sensor_icon': None,
 '_sensor_unit': None,
 '_swversion': '20170721',
 '_type': 'ZHAWater',
 '_uniqueid': '00:15:8d:00:02:4d:84:eb-01-0500',
 '_water': False}
2019-01-29 08:57:21 DEBUG (MainThread) [pydeconz.deconzdevice] water4 created as
{'_async_callbacks': [],
 '_battery': 100,
 '_deconz_id': '/sensors/3',
 '_ep': 1,
 '_etag': '465c1fe9c2c7e49e2cccd92921f5acd0',
 '_manufacturername': 'LUMI',
 '_modelid': 'lumi.sensor_wleak.aq1',
 '_name': 'water4',
 '_on': True,
 '_reachable': True,
 '_sensor_class': None,
 '_sensor_icon': None,
 '_sensor_unit': None,
 '_swversion': '20170721',
 '_type': 'ZHAWater',
 '_uniqueid': '00:15:8d:00:02:56:d0:cd-01-0500',
 '_water': False}
2019-01-29 08:57:21 DEBUG (MainThread) [pydeconz.deconzdevice] water3 created as
{'_async_callbacks': [],
 '_battery': 100,
 '_deconz_id': '/sensors/4',
 '_ep': 1,
 '_etag': '4f9ec9bce62a9439ac9c7514e7ed15e8',
 '_manufacturername': 'LUMI',
 '_modelid': 'lumi.sensor_wleak.aq1',
 '_name': 'water3',
 '_on': True,
 '_reachable': True,
 '_sensor_class': None,
 '_sensor_icon': None,
 '_sensor_unit': None,
 '_swversion': '20170721',
 '_type': 'ZHAWater',
 '_uniqueid': '00:15:8d:00:02:2f:07:f7-01-0500',
 '_water': False}
2019-01-29 08:57:21 DEBUG (MainThread) [pydeconz.deconzdevice] switch1 created as
{'_async_callbacks': [],
 '_battery': 100,
 '_buttonevent': 1002,
 '_deconz_id': '/sensors/5',
 '_ep': 1,
 '_etag': '02dc0c3db173a654946606a6a9451b14',
 '_manufacturername': 'LUMI',
 '_modelid': 'lumi.sensor_switch',
 '_name': 'switch1',
 '_on': True,
 '_reachable': True,
 '_sensor_class': None,
 '_sensor_icon': None,
 '_sensor_unit': None,
 '_swversion': None,
 '_type': 'ZHASwitch',
 '_uniqueid': '00:15:8d:00:02:c7:ca:84-01-0006'}
2019-01-29 08:57:21 DEBUG (MainThread) [pydeconz.deconzdevice] switch2 created as
{'_async_callbacks': [],
 '_battery': 100,
 '_buttonevent': 1002,
 '_deconz_id': '/sensors/6',
 '_ep': 1,
 '_etag': '27457a223aef86469eeb376445435f7d',
 '_manufacturername': 'LUMI',
 '_modelid': 'lumi.sensor_switch',
 '_name': 'switch2',
 '_on': True,
 '_reachable': True,
 '_sensor_class': None,
 '_sensor_icon': None,
 '_sensor_unit': None,
 '_swversion': None,
 '_type': 'ZHASwitch',
 '_uniqueid': '00:15:8d:00:02:c8:cb:9a-01-0006'}
2019-01-29 08:57:21 DEBUG (MainThread) [pydeconz.deconzdevice] water2 created as
{'_async_callbacks': [],
 '_battery': 100,
 '_deconz_id': '/sensors/7',
 '_ep': 1,
 '_etag': 'fae893708dfe9b358df59107d944fa1c',
 '_manufacturername': 'LUMI',
 '_modelid': 'lumi.sensor_wleak.aq1',
 '_name': 'water2',
 '_on': True,
 '_reachable': True,
 '_sensor_class': None,
 '_sensor_icon': None,
 '_sensor_unit': None,
 '_swversion': '20170721',
 '_type': 'ZHAWater',
 '_uniqueid': '00:15:8d:00:02:2f:07:db-01-0500',
 '_water': False}
2019-01-29 08:57:21 DEBUG (MainThread) [pydeconz.deconzdevice] presence1 created as
{'_async_callbacks': [],
 '_battery': 100,
 '_dark': None,
 '_deconz_id': '/sensors/8',
 '_ep': 1,
 '_etag': '26e97d94b471c1799a1a5951cee7938b',
 '_manufacturername': 'dresden elektronik',
 '_modelid': 'lumi.sensor_motion.aq2',
 '_name': 'presence1',
 '_on': True,
 '_presence': False,
 '_reachable': True,
 '_sensor_class': None,
 '_sensor_icon': None,
 '_sensor_unit': None,
 '_swversion': '20170627',
 '_type': 'ZHAPresence',
 '_uniqueid': '00:15:8d:00:02:b5:d1:80-01-0406'}
2019-01-29 08:57:21 DEBUG (MainThread) [pydeconz.deconzdevice] LightLevel 9 created as
{'_async_callbacks': [],
 '_battery': 100,
 '_dark': True,
 '_deconz_id': '/sensors/9',
 '_ep': 1,
 '_etag': '26e97d94b471c1799a1a5951cee7938b',
 '_lightlevel': 0,
 '_manufacturername': 'dresden elektronik',
 '_modelid': 'lumi.sensor_motion.aq2',
 '_name': 'LightLevel 9',
 '_on': True,
 '_reachable': True,
 '_sensor_class': None,
 '_sensor_icon': None,
 '_sensor_unit': None,
 '_swversion': '20170627',
 '_type': 'ZHALightLevel',
 '_uniqueid': '00:15:8d:00:02:b5:d1:80-01-0400'}

Any idea?

Nope, I donā€™t see what the difference between ZHAAlarm and ZHAPresence is.

https://github.com/dresden-elektronik/deconz-rest-plugin/issues/1017

You should comment on that thread @mauog

I am wondering why deconz recognized just one of the devices but not the othersā€¦ and then why I had to re-pair it more times until it was well recognizedā€¦

Iā€™ve just paired a couple of SP120. All worked like a charm.
Nice product!
Thank You for your suggestion.

1 Like