Connecting Xiaomi wireless switch to deCONZ


#1

I have Hass.io running with deCONZ and have successfully connected a Xiaomi temperature sensor and wired switch.

I can get readings from the sensor and control the wired switch (light switch) in Home Assistant. It can be turned on/off as expected. However, I am unable to connect the wireless switch to deCONZ after trying several times. I am using the same process to ‘try’ and connect/link the switch to deConz.

*The process used to connect the switch(s) to deCONZ:
Hold the switch button for 5-10 seconds until the two LEDs on the switch flash 3 times. Release the button and the switch pairs with deCONZ. (This connects the wired switch and should connect the wireless too?)

Any help on how to pair the wireless switch to deCONZ?

Wireless switch:
https://www.aliexpress.com/item/2018-Xiaomi-Smart-home-Aqara-Smart-Light-Control-ZiGBee-Wireless-Key-and-Wall-Switch-Via-Smarphone/32875713201.html?spm=a2g0s.9042311.0.0.27d34c4dnLGJJB


#2

Are you sure that you didn’t pair it successfully? Switches aren’t visible in the Gui, only as events


#3

I am NOT sure. The wired double switch paired and was visible in the Phoscon App GUI as 2 x lights. Theses lights where then switchable on/off in the HA interface.

I am attempting the same with the wireless switch and was hoping for the same outcome - but I am not getting it. If they are pairing ‘as events’, how do I know this? Where in Hass.io do I see the events and how do I add such a switch to the HA GUI so i can use it?


#4

Having read other posts online, I am more confused than ever. Here are some screenshots… Do I even have deCONZ setup correctly? I dont have any deconz folder? Should I have a deCONZ configurator? Where?


#5

Any help out there?


#6

Here are the logs of another attempt at a fresh install/setup of deCONZ on hassio.

I then attempted to connect the wireless switch which appeard to be connected to something. But what?

How can I control or use the ‘connected switch’ - its not in Phoscon, not in HA, I dont see any deCONZ folders/configurators that others mention? Totally lost here…

[Hass.io] Starting deCONZ Hass.io Addon…

[Hass.io] Current deCONZ version: 2.05.47

[Hass.io] Web UI port: 8080

[Hass.io] Websockets port: 8443

[Hass.io] deCONZ device: /dev/ttyS0

libpng warning: iCCP: known incorrect sRGB profile

This plugin does not support propagateSizeHints()

This plugin does not support propagateSizeHints()

This plugin does not support propagateSizeHints()

QString::arg: Argument missing: <html><head></head><body><title>Moved</title><h1>Moved</h1><p>moved to /pwa/index/html</p></body></html>, /pwa

11:22:28:935 HTTP Server listen on address 0.0.0.0, port: 8080, root: /usr/share/deCONZ/webapp/

11:22:28:989 CTRL. 3.16.211:22:29:057 COM: --dev: /dev/ttyS0

11:22:29:100 dev /dev/ttyAMA0

11:22:29:101 ZCLDB init file /data/.local/share/dresden-elektronik/deCONZ/zcldb.txt

11:22:29:318 parent process /bin/sh

11:22:29:318 gw run mode: normal

11:22:29:318 sd-card cid: 744a60555344202010ffffffff0123e7

11:22:29:320 DB sqlite version 3.16.2

11:22:29:322 DB PRAGMA page_count: 30

11:22:29:322 DB PRAGMA page_size: 4096

11:22:29:322 DB PRAGMA freelist_count: 0

11:22:29:322 DB file size 122880 bytes, free pages 0

11:22:29:322 DB PRAGMA user_version: 6

11:22:29:322 DB cleanup

11:22:29:322 DB create temporary views

11:22:29:329 don’t close database yet, keep open for 900 seconds

11:22:29:330 started websocket server at port 8443

11:22:29:336 discovery updated announce interval to 10 minutes

11:22:29:341 found node plugin: libde_rest_plugin.so - REST API Plugin

11:22:29:345 found node plugin: libde_signal_plugin.so - Signal Monitor Plugin

11:22:29:366 found node plugin: libstd_otau_plugin.so - STD OTAU Plugin

11:22:29:367 COM: --dev: /dev/ttyS0

11:22:29:405 dev /dev/ttyAMA0

11:22:29:537 Device firmware version 0x26050500

11:22:29:551 unlocked max nodes: 200

11:22:29:731 Device protocol version: 0x0103

11:22:29:749 new node - ext: 0x00212effff024835, nwk: 0x0000

11:22:29:755 Node: id: 1, 00:21:2e:ff:ff:02:48:35 (0x00212EFFFF024835) scene: -110.000000, 115.000000

11:22:29:760 DB save zll database items 0x00000800

11:22:29:823 DB saved in 62 ms

11:22:30:042 Current channel 15

11:22:30:083 CTRL ANT_CTRL 0x03

11:22:30:160 Device protocol version: 0x0103

11:22:30:290 Current channel 15

11:22:30:330 CTRL ANT_CTRL 0x03

11:22:34:142 dev /dev/ttyAMA0

11:22:34:142 GW update firmware found: /usr/share/deCONZ/firmware/deCONZ_Rpi_0x262f0500.bin.GCF

11:22:34:142 GW firmware version: 0x26050500

11:22:34:142 GW firmware version shall be updated to: 0x262f0500

11:22:34:343 Announced to internet

11:22:34:343 discovery server date: Sun, 02 Dec 2018 11:22:34 GMT

11:22:34:343 local time seems to be ok

11:22:34:343 discovery found version 2.04.35 for update channel stable

11:22:34:884 DB save zll database items 0x00000080

11:22:34:940 DB saved in 56 ms

11:22:34:940 don’t close database yet, keep open for 900 seconds

11:22:38:891 discard sensor state push for 1: state/dark (already pushed)

11:22:38:892 discard sensor state push for 1: state/status (already pushed)

11:22:38:893 discard sensor state push for 1: state/lastupdated (already pushed)

11:22:46:206 New websocket 192.168.1.14:27232 (state: 3)

11:22:49:708 Websocket disconnected 192.168.1.14:27232 (state: 0)

11:22:50:962 New websocket 192.168.1.14:27235 (state: 3)

11:22:53:816 gateway unlocked

11:22:56:286 scan skip host .8

11:23:03:301 Content not completely loaded (got 0 of 0), wait 20ms

11:23:03:301 created username: 0353B643B9, devicetype: pydeconz

11:23:07:557 New websocket 127.0.0.1:60020 (state: 3)

11:23:08:052 DB save zll database items 0x00000084

11:23:08:571 DB saved in 519 ms

11:23:08:571 don’t close database yet, keep open for 900 seconds

11:23:09:089 scan finished

11:23:28:927 Current channel 15

11:23:53:885 gateway locked

11:24:20:370 Websocket disconnected 192.168.1.14:27235 (state: 0)

11:24:21:846 New websocket 192.168.1.14:27241 (state: 3)

11:24:21:855 Websocket disconnected 192.168.1.14:27241 (state: 0)

11:24:23:035 New websocket 192.168.1.14:27243 (state: 3)

11:24:26:520 Websocket disconnected 192.168.1.14:27243 (state: 0)

11:24:28:933 Current channel 15

11:24:29:040 New websocket 192.168.1.14:27250 (state: 3)

11:24:34:385 send permit join, duration: 59

11:24:43:935 dev /dev/ttyAMA0

11:24:43:935 GW firmware version: 0x26050500

11:24:43:935 GW firmware version shall be updated to: 0x262f0500

11:24:45:359 device announce 0x00158D00028108C0 (0xBBA5) mac capabilities 0x80

11:24:45:359 set fast probe address to 0x00158D00028108C0 (0xBBA5)

11:24:45:360 device announce 0x00158D00028108C0 (0xBBA5) mac capabilities 0x80I


#7

According to the first post it looks like deconz is correctly configured


#8

As I wrote earlier, remotes are only visible as events. There are clear examples with automations in the documentation


#9

Can you guide me on how I can toggle a wired switch with ‘this’ wireless switch? I have looked through the docs and I guess it is a Rule I need to create? Thanks.


#10

Look through the automation example https://www.home-assistant.io/components/deconz/#examples


#11

I have set up the following rule in the API with a POST.

When i toggle the wireless switch nothing happens the wired switch - the wired switch should toggle?

192.168.1.8:8080/api/22C65D763D/rules

{

"actions": [

{

"address": "/lights/1 ",

"body": {

"on": true

},

"method": "BIND"

}

],

"conditions": [

{

"address": "/sensors/2/state/buttonevent",

"operator": "eq",

"value": "4"

}

],

"name": "Switch hall upper lights On/Off"

}


#12

I am getting nowhere with this. There is so much confusion and nobody else online seems to have straight forward instructions which they have used successfully.

As things stand:
I have a wired switch paired to deconz and HA - I can toggle this switch in HA UI.
I have wireless switch which i believe is connected to deconz.

What I need:
Press the wireless switch and it toggles the wired switch.

This is a basic need (and my only need) - the reason I bought the Raspbee devices.
I cannot get this to work, and cannot find instructions on how to do it.

I am asking you to help me fulfill this simple task today. I don’t wish to be pointed to documentation. Troubleshoot with me and solve my problem please! I can give you login access to my system if you need it.

please help.


#13

Im helping you solve it. Im not solving it for you.

First thing you should do. Enable debug in hass for deconz per component documentation.

Then you can trigger your remote control and look in hass logs to see what event id the remote has.

When you have this information we can look at doing an automation.


If you want to do the automation in deconz you should create an issue on deconz GitHub because I have no experience with that.


#14

Here is details from the logs - created when i added (I think its added) the wireless switch.

2018-12-03 15:01:52 DEBUG (MainThread) [pydeconz] Unsupported event {‘config’: {‘on’: True, ‘reachable’: True, ‘temperature’: 2300}, ‘e’: ‘changed’, ‘id’: ‘3’, ‘r’: ‘sensors’, ‘t’: ‘event’, ‘uniqueid’: ‘00:15:8d:00:02:9b:1a:4c-04-0006’}
2018-12-03 15:01:52 DEBUG (MainThread) [pydeconz.websocket] Websocket data: {“config”:{“on”:true,“reachable”:true,“temperature”:2300},“e”:“changed”,“id”:“3”,“r”:“sensors”,“t”:“event”,“uniqueid”:“00:15:8d:00:02:9b:1a:4c-04-0006”}
2018-12-03 15:01:52 DEBUG (MainThread) [pydeconz.deconzdevice] lumi.ctrl_neutral2 4: update on with True
2018-12-03 15:01:52 DEBUG (MainThread) [pydeconz.deconzdevice] lumi.ctrl_neutral2 4: update reachable with True
2018-12-03 15:01:52 DEBUG (MainThread) [pydeconz.deconzdevice] lumi.ctrl_neutral2 4: update temperature with 2300
2018-12-03 15:01:52 DEBUG (MainThread) [pydeconz.websocket] Websocket data: {“config”:{“on”:true,“reachable”:true,“temperature”:2300},“e”:“changed”,“id”:“4”,“r”:“sensors”,“t”:“event”,“uniqueid”:“00:15:8d:00:02:9b:1a:4c-04-0006”}

NOTE:
When i press (toggle) the wireless switch no further logs are created? Would suggest that an event is not fired?


#15

Hmm, maybe you need to enable debug for all of hass. What we’re looking for is something with a xxxx code like 1001

If you could also share the init of deconz component, all devices should be listed there.


#16

I have logger: in my configuration.yaml file. What other files/logs do you need - where are they located?

I think these are the other details you refer to - the deconz config?
Log
[Hass.io] Starting deCONZ Hass.io Addon…
[Hass.io] Current deCONZ version: 2.05.47
[Hass.io] Web UI port: 8080
[Hass.io] Websockets port: 8443
[Hass.io] deCONZ device: /dev/ttyS0
libpng warning: iCCP: known incorrect sRGB profile
This plugin does not support propagateSizeHints()
This plugin does not support propagateSizeHints()
This plugin does not support propagateSizeHints()
15:42:47:270 HTTP Server listen on address 0.0.0.0, port: 8080, root: /usr/share/deCONZ/webapp/
15:42:47:326 CTRL. 3.16.215:42:47:387 COM: --dev: /dev/ttyS0
15:42:47:424 dev /dev/ttyAMA0
15:42:47:425 ZCLDB init file /data/.local/share/dresden-elektronik/deCONZ/zcldb.txt
15:42:47:608 parent process /bin/sh
15:42:47:608 gw run mode: normal
15:42:47:609 sd-card cid: 744a60555344202010ffffffff0123e7
15:42:47:610 DB sqlite version 3.16.2
15:42:47:612 DB PRAGMA page_count: 30
15:42:47:612 DB PRAGMA page_size: 4096
15:42:47:612 DB PRAGMA freelist_count: 0
15:42:47:612 DB file size 122880 bytes, free pages 0
15:42:47:612 DB PRAGMA user_version: 6
15:42:47:612 DB cleanup
15:42:47:612 DB create temporary views
15:42:47:621 don’t close database yet, keep open for 900 seconds
15:42:47:622 started websocket server at port 8443
15:42:47:627 discovery updated announce interval to 10 minutes
15:42:47:632 found node plugin: libde_rest_plugin.so - REST API Plugin
15:42:47:636 found node plugin: libde_signal_plugin.so - Signal Monitor Plugin
15:42:47:653 found node plugin: libstd_otau_plugin.so - STD OTAU Plugin
15:42:47:654 COM: --dev: /dev/ttyS0
15:42:47:689 dev /dev/ttyAMA0
15:42:47:740 discard sensor state push for 1: state/dark (already pushed)
15:42:47:808 Device firmware version 0x26050500
15:42:47:821 discard sensor state push for 1: state/status (already pushed)
15:42:47:822 unlocked max nodes: 200
15:42:47:823 discard sensor state push for 1: state/lastupdated (already pushed)
15:42:48:004 Device protocol version: 0x0103
15:42:48:022 new node - ext: 0x00212effff024835, nwk: 0x0000
15:42:48:028 Node: id: 1, 00:21:2e:ff:ff:02:48:35 (0x00212EFFFF024835) scene: -110.000000, 115.000000
15:42:48:031 Node: id: 2, 00:15:8d:00:02:81:08:c0 (0x00158D00028108C0) scene: -112.000000, 49.000000
15:42:48:048 Node: id: 3, 00:15:8d:00:02:a1:8a:76 (0x00158D0002A18A76) scene: -18.000000, -30.000000
15:42:48:079 Node: id: 4, 00:15:8d:00:02:7c:3e:0e (0x00158D00027C3E0E) scene: 127.000000, 67.000000
15:42:48:095 DB save zll database items 0x00000880
15:42:48:169 DB saved in 74 ms
15:42:48:266 DB save zll database items 0x00000800
15:42:48:320 DB saved in 54 ms
15:42:48:525 don’t close database yet, keep open for 900 seconds
15:42:48:526 LightNode 1: hall lower added
15:42:48:527 don’t close database yet, keep open for 900 seconds
15:42:48:528 LightNode 2: hall upper added
15:42:48:528 SensorNode 2 set node 0x00158d0002a18a76
15:42:48:528 SensorNode id: 2 (Switch 3) no longer available
15:42:48:529 DB save zll database items 0x00000800
15:42:48:716 DB saved in 187 ms
15:42:49:798 DB save zll database items 0x00000800
15:42:49:855 DB saved in 56 ms
15:42:50:099 CTRL [00:21:2e:ff:ff:02:48:35] found reference in zll.db
15:42:50:101 CTRL [00:15:8d:00:02:a1:8a:76] found reference in zll.db
15:42:50:102 CTRL [00:15:8d:00:02:9b:1a:4c] found reference in zll.db
15:42:50:116 don’t close database yet, keep open for 900 seconds
15:42:50:116 LightNode 3: kitchen added
15:42:50:117 don’t close database yet, keep open for 900 seconds
15:42:50:117 LightNode 4: dining added
15:42:50:118 SensorNode 4 set node 0x00158d00029b1a4c
15:42:50:118 SensorNode id: 4 (lumi.ctrl_neutral2 4) no longer available
15:42:50:118 DB save zll database items 0x00000800
15:42:50:182 DB saved in 64 ms
15:42:50:246 don’t close database yet, keep open for 900 seconds
15:42:50:295 don’t close database yet, keep open for 900 seconds
15:42:50:344 don’t close database yet, keep open for 900 seconds
15:42:50:393 don’t close database yet, keep open for 900 seconds
15:42:50:441 don’t close database yet, keep open for 900 seconds
15:42:50:498 don’t close database yet, keep open for 900 seconds
15:42:50:546 don’t close database yet, keep open for 900 seconds
15:42:50:594 don’t close database yet, keep open for 900 seconds
15:42:50:734 Current channel 15
15:42:50:774 CTRL ANT_CTRL 0x03
15:42:50:851 Device protocol version: 0x0103
15:42:50:981 Current channel 15
15:42:51:021 CTRL ANT_CTRL 0x03
15:42:51:548 New websocket 192.168.1.14:58806 (state: 3)
15:42:52:927 dev /dev/ttyAMA0


#17

All logs are from the hass log, not the add-on logs.:+1:


#18

Here are all the logs:
2018-12-03 16:09:48 DEBUG (MainThread) [pydeconz.utils] Sending {} to http://127.0.0.1:8080/api/0353B643B9
2018-12-03 16:09:49 DEBUG (MainThread) [pydeconz.utils] HTTP request response: {‘config’: {‘UTC’: ‘2018-12-03T16:09:49’, ‘apiversion’: ‘1.16.0’, ‘backup’: {‘errorcode’: 0, ‘status’: ‘idle’}, ‘bridgeid’: ‘00212EFFFF024835’, ‘datastoreversion’: ‘60’, ‘devicename’: ‘RaspBee’, ‘dhcp’: True, ‘factorynew’: False, ‘fwversion’: ‘0x26050500’, ‘gateway’: ‘192.168.1.1’, ‘internetservices’: {‘remoteaccess’: ‘disconnected’}, ‘ipaddress’: ‘192.168.1.8’, ‘linkbutton’: False, ‘localtime’: ‘2018-12-03T16:09:49’, ‘mac’: ‘b8:27:eb:f7:44:13’, ‘modelid’: ‘deCONZ’, ‘name’: ‘Phoscon-GW’, ‘netmask’: ‘255.255.255.0’, ‘networkopenduration’: 60, ‘panid’: 10621, ‘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’: ‘’, ‘state’: ‘allreadytoinstall’}, ‘checkforupdate’: False, ‘install’: False, ‘lastchange’: ‘’, ‘lastinstall’: ‘’, ‘state’: ‘allreadytoinstall’}, ‘swversion’: ‘2.5.47’, ‘timeformat’: ‘12h’, ‘timezone’: ‘Etc/GMT’, ‘uuid’: ‘39fd436f-5b0a-4b79-b0ad-8d80630dc630’, ‘websocketnotifyall’: True, ‘websocketport’: 8443, ‘whitelist’: {‘0353B643B9’: {‘create date’: ‘2018-12-02T11:23:03’, ‘last use date’: ‘2018-12-03T16:09:49’, ‘name’: ‘pydeconz’}, ‘0D335EE6A6’: {‘create date’: ‘2018-12-02T11:17:07’, ‘last use date’: ‘2018-12-03T16:09:46’, ‘name’: ‘Phoscon#B1920x938’}, ‘22C65D763D’: {‘create date’: ‘2018-12-03T10:08:28’, ‘last use date’: ‘2018-12-03T16:08:23’, ‘name’: ‘my application’}}, ‘zigbeechannel’: 15}, ‘groups’: {‘1’: {‘action’: {‘bri’: 127, ‘colormode’: ‘hs’, ‘ct’: 0, ‘effect’: ‘none’, ‘hue’: 0, ‘on’: False, ‘sat’: 127, ‘scene’: None, ‘xy’: [0, 0]}, ‘class’: ‘Other’, ‘devicemembership’: [], ‘etag’: ‘3b8dee02c07678a03443a5fedede11d2’, ‘id’: ‘1’, ‘lights’: [], ‘name’: ‘hall’, ‘scenes’: [], ‘state’: {‘all_on’: False, ‘any_on’: False}, ‘type’: ‘LightGroup’}}, ‘lights’: {}, ‘resourcelinks’: {}, ‘rules’: {‘3’: {‘actions’: [{‘address’: ‘/lights/1/state’, ‘body’: {‘on’: True}, ‘method’: ‘BIND’}], ‘conditions’: [{‘address’: ‘/sensors/2/state/buttonevent’, ‘operator’: ‘eq’, ‘value’: ‘4’}], ‘created’: ‘2018-12-03T13:51:59’, ‘etag’: ‘b38cab97476de0413c7495f50aca74e2’, ‘lasttriggered’: ‘none’, ‘name’: ‘Switch hall upper lights On/Off’, ‘owner’: ‘22C65D763D’, ‘periodic’: 0, ‘status’: ‘enabled’, ‘timestriggered’: 0}}, ‘schedules’: {}, ‘sensors’: {}}
2018-12-03 16:09:49 DEBUG (MainThread) [pydeconz] {‘config’: {‘UTC’: ‘2018-12-03T16:09:49’,
‘apiversion’: ‘1.16.0’,
‘backup’: {‘errorcode’: 0, ‘status’: ‘idle’},
‘bridgeid’: ‘00212EFFFF024835’,
‘datastoreversion’: ‘60’,
‘devicename’: ‘RaspBee’,
‘dhcp’: True,
‘factorynew’: False,
‘fwversion’: ‘0x26050500’,
‘gateway’: ‘192.168.1.1’,
‘internetservices’: {‘remoteaccess’: ‘disconnected’},
‘ipaddress’: ‘192.168.1.8’,
‘linkbutton’: False,
‘localtime’: ‘2018-12-03T16:09:49’,
‘mac’: ‘b8:27:eb:f7:44:13’,
‘modelid’: ‘deCONZ’,
‘name’: ‘Phoscon-GW’,
‘netmask’: ‘255.255.255.0’,
‘networkopenduration’: 60,
‘panid’: 10621,
‘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’: ‘’,
‘state’: ‘allreadytoinstall’},
‘checkforupdate’: False,
‘install’: False,
‘lastchange’: ‘’,
‘lastinstall’: ‘’,
‘state’: ‘allreadytoinstall’},
‘swversion’: ‘2.5.47’,
‘timeformat’: ‘12h’,
‘timezone’: ‘Etc/GMT’,
‘uuid’: ‘39fd436f-5b0a-4b79-b0ad-8d80630dc630’,
‘websocketnotifyall’: True,
‘websocketport’: 8443,
‘whitelist’: {‘0353B643B9’: {‘create date’: ‘2018-12-02T11:23:03’,
‘last use date’: ‘2018-12-03T16:09:49’,
‘name’: ‘pydeconz’},
‘0D335EE6A6’: {‘create date’: ‘2018-12-02T11:17:07’,
‘last use date’: ‘2018-12-03T16:09:46’,
‘name’: ‘Phoscon#B1920x938’},
‘22C65D763D’: {‘create date’: ‘2018-12-03T10:08:28’,
‘last use date’: ‘2018-12-03T16:08:23’,
‘name’: ‘my application’}},
‘zigbeechannel’: 15},
‘groups’: {‘1’: {‘action’: {‘bri’: 127,
‘colormode’: ‘hs’,
‘ct’: 0,
‘effect’: ‘none’,
‘hue’: 0,
‘on’: False,
‘sat’: 127,
‘scene’: None,
‘xy’: [0, 0]},
‘class’: ‘Other’,
‘devicemembership’: [],
‘etag’: ‘3b8dee02c07678a03443a5fedede11d2’,
‘id’: ‘1’,
‘lights’: [],
‘name’: ‘hall’,
‘scenes’: [],
‘state’: {‘all_on’: False, ‘any_on’: False},
‘type’: ‘LightGroup’}},
‘lights’: {},
‘resourcelinks’: {},
‘rules’: {‘3’: {‘actions’: [{‘address’: ‘/lights/1/state’,
‘body’: {‘on’: True},
‘method’: ‘BIND’}],
‘conditions’: [{‘address’: ‘/sensors/2/state/buttonevent’,
‘operator’: ‘eq’,
‘value’: ‘4’}],
‘created’: ‘2018-12-03T13:51:59’,
‘etag’: ‘b38cab97476de0413c7495f50aca74e2’,
‘lasttriggered’: ‘none’,
‘name’: ‘Switch hall upper lights On/Off’,
‘owner’: ‘22C65D763D’,
‘periodic’: 0,
‘status’: ‘enabled’,
‘timestriggered’: 0}},
‘schedules’: {},
‘sensors’: {}}
2018-12-03 16:09:49 DEBUG (MainThread) [pydeconz.config] Deconz config loaded {’_apiversion’: ‘1.16.0’, ‘_bridgeid’: ‘00212EFFFF024835’, ‘_linkbutton’: False, ‘_mac’: ‘b8:27:eb:f7:44:13’, ‘_modelid’: ‘deCONZ’, ‘_name’: ‘Phoscon-GW’, ‘_networkopenduration’: 60, ‘_panid’: 10621, ‘_swversion’: ‘2.5.47’, ‘_uuid’: ‘39fd436f-5b0a-4b79-b0ad-8d80630dc630’, ‘_websocketport’: 8443, ‘_zigbeechannel’: 15}
2018-12-03 16:09:49 DEBUG (MainThread) [pydeconz.deconzdevice] hall created as
{’_all_on’: False,
‘_any_on’: False,
‘_async_callbacks’: [],
‘_async_set_state_callback’: <bound method DeconzSession.async_put_state of <pydeconz.DeconzSession object at 0x732801f0>>,
‘_bri’: 127,
‘_class’: ‘Other’,
‘_colormode’: ‘hs’,
‘_ct’: 0,
‘_deconz_id’: ‘/groups/1’,
‘_devicemembership’: [],
‘_effect’: ‘none’,
‘_etag’: ‘3b8dee02c07678a03443a5fedede11d2’,
‘_hidden’: None,
‘_hue’: 0,
‘_id’: ‘1’,
‘_lights’: [],
‘_lightsequence’: None,
‘_manufacturername’: None,
‘_modelid’: None,
‘_multideviceids’: None,
‘_name’: ‘hall’,
‘_on’: False,
‘_reachable’: True,
‘_sat’: 127,
‘_scenes’: {},
‘_swversion’: None,
‘_type’: ‘LightGroup’,
‘_uniqueid’: None,
‘_x’: 0,
‘_y’: 0}
2018-12-03 16:09:49 DEBUG (MainThread) [pydeconz.websocket] Websocket starting
2018-12-03 16:09:49 DEBUG (MainThread) [pydeconz.websocket] Websocket running
2018-12-03 16:14:51 DEBUG (MainThread) [pydeconz] Unsupported event {‘config’: {‘on’: True, ‘reachable’: True, ‘temperature’: 2300}, ‘e’: ‘changed’, ‘id’: ‘4’, ‘r’: ‘sensors’, ‘t’: ‘event’, ‘uniqueid’: ‘00:15:8d:00:02:9b:1a:4c-04-0006’}
2018-12-03 16:14:51 DEBUG (MainThread) [pydeconz.websocket] Websocket data: {“config”:{“on”:true,“reachable”:true,“temperature”:2300},“e”:“changed”,“id”:“4”,“r”:“sensors”,“t”:“event”,“uniqueid”:“00:15:8d:00:02:9b:1a:4c-04-0006”}
2018-12-03 16:17:45 DEBUG (MainThread) [pydeconz.websocket] Websocket starting
2018-12-03 16:17:45 DEBUG (MainThread) [pydeconz.websocket] Reconnecting to deCONZ in 15.
2018-12-03 16:18:00 DEBUG (MainThread) [pydeconz.websocket] Websocket starting
2018-12-03 16:18:00 DEBUG (MainThread) [pydeconz.websocket] Websocket running


#19

It doesn’t look like you have any device paired at the moment.


#20

**I had paired wired switches but i have removed them for now as i concentrate on getting the wireless switch(s) paired.

Here are the logs from deCONZ as i attempt to pair a wireless switch - again. There is activity happening - why would it not be pairing?

Log
Log
20:45:12:157 New websocket 192.168.1.14:5891 (state: 3)
20:45:14:164 Websocket disconnected 192.168.1.14:5891 (state: 0)
20:45:15:350 New websocket 192.168.1.14:5899 (state: 3)
20:45:16:215 Websocket disconnected 192.168.1.14:5899 (state: 0)
20:45:17:509 New websocket 192.168.1.14:5908 (state: 3)
20:45:17:754 Websocket disconnected 192.168.1.14:5908 (state: 0)
20:45:19:030 New websocket 192.168.1.14:5915 (state: 3)
20:45:30:500 Current channel 15
20:45:52:883 ZCL attribute report 0x00158D00024787B6 for cluster 0x0402, ep 0x01
20:45:52:883 APS-DATA.indication from unknown node 0x00158D00024787B6
20:45:52:902 ZCL attribute report 0x00158D00024787B6 for cluster 0x0405, ep 0x01
20:45:52:902 APS-DATA.indication from unknown node 0x00158D00024787B6
20:45:52:924 ZCL attribute report 0x00158D00024787B6 for cluster 0x0403, ep 0x01
20:45:52:924 APS-DATA.indication from unknown node 0x00158D00024787B6
20:46:30:500 Current channel 15
20:46:58:509 dev /dev/ttyAMA0
20:46:58:509 GW firmware version: 0x26050500
20:46:58:509 GW firmware version shall be updated to: 0x262f0500
20:47:30:501 Current channel 15
20:48:30:492 Current channel 15
20:48:53:523 Remove websocket 127.0.0.1:46794 after error Unknown error
20:49:08:499 dev /dev/ttyAMA0
20:49:08:500 GW firmware version: 0x26050500
20:49:08:500 GW firmware version shall be updated to: 0x262f0500
20:49:14:224 New websocket 127.0.0.1:46838 (state: 3)
20:49:30:502 Current channel 15
20:49:37:213 Websocket disconnected 192.168.1.14:5915 (state: 0)
20:49:38:757 New websocket 192.168.1.14:6324 (state: 3)
20:49:43:421 gateway unlocked
20:50:30:492 Current channel 15
20:50:43:458 gateway locked
20:51:18:509 dev /dev/ttyAMA0
20:51:18:509 GW firmware version: 0x26050500
20:51:18:509 GW firmware version shall be updated to: 0x262f0500
20:51:30:502 Current channel 15
20:52:30:500 Current channel 15
20:52:33:757 Announced to internet
20:52:33:758 discovery server date: Mon, 03 Dec 2018 20:52:33 GMT
20:52:33:758 local time seems to be ok
20:53:28:505 dev /dev/ttyAMA0
20:53:28:505 GW firmware version: 0x26050500
20:53:28:505 GW firmware version shall be updated to: 0x262f0500
20:53:30:501 Current channel 15
20:53:49:413 gateway unlocked
20:54:17:061 created username: 1CA02B1F03, devicetype: myapplication
20:54:22:312 DB save zll database items 0x00000004
20:54:22:357 DB saved in 45 ms
20:54:22:357 don’t close database yet, keep open for 900 seconds
20:54:30:501 Current channel 15
20:54:49:458 gateway locked
20:55:30:502 Current channel 15
20:55:38:503 dev /dev/ttyAMA0
20:55:38:504 GW firmware version: 0x26050500
20:55:38:504 GW firmware version shall be updated to: 0x262f0500
20:55:55:925 ZCL attribute report 0x00158D00024787B6 for cluster 0x0000, ep 0x01
20:55:55:926 0x00158D00024787B6 extract Xiaomi special
20:55:55:926 01 battery 2975 (0x0B9F)
20:55:55:926 04 unknown 5032 (0x13A8)
20:55:55:926 05 RSSI dB (?) 19 (0x0013)
20:55:55:926 06 LQI (?) 4294967296 (0x0100000000)
20:55:55:926 64 temperature 1873
20:55:55:926 65 humidity 6187
20:55:55:926 66 pressure 1004
20:55:55:926 0a unknown 0 (0x0000)
20:55:55:926 APS-DATA.indication from unknown node 0x00158D00024787B6
20:56:30:500 Current channel 15
20:57:30:500 Current channel 15
20:57:48:508 dev /dev/ttyAMA0
20:57:48:508 GW firmware version: 0x26050500
20:57:48:508 GW firmware version shall be updated to: 0x262f0500
20:58:30:502 Current channel 15
20:59:17:621 ZCL attribute report 0x00158D00024787B6 for cluster 0x0402, ep 0x01
20:59:17:621 APS-DATA.indication from unknown node 0x00158D00024787B6
20:59:17:637 ZCL attribute report 0x00158D00024787B6 for cluster 0x0405, ep 0x01
20:59:17:637 APS-DATA.indication from unknown node 0x00158D00024787B6
20:59:17:656 ZCL attribute report 0x00158D00024787B6 for cluster 0x0403, ep 0x01
20:59:17:656 APS-DATA.indication from unknown node 0x00158D00024787B6
20:59:30:502 Current channel 15
20:59:40:822 Websocket disconnected 192.168.1.14:6324 (state: 0)
20:59:42:214 New websocket 192.168.1.14:7180 (state: 3)
20:59:47:958 send permit join, duration: 59
20:59:49:644 ZCL attribute report 0x00158D00027C3E0E for cluster 0x0012, ep 0x01
20:59:49:984 don’t close database yet, keep open for 900 seconds
20:59:51:640 ZCL attribute report 0x00158D00027C3E0E for cluster 0x0000, ep 0x01
20:59:58:506 dev /dev/ttyAMA0
20:59:58:506 GW firmware version: 0x26050500
20:59:58:506 GW firmware version shall be updated to: 0x262f0500
21:00:01:947 device announce 0x00158D00027C3E0E (0xD9EE) mac capabilities 0x80
21:00:01:947 set fast probe address to 0x00158D00027C3E0E (0xD9EE)
21:00:01:947 device announce 0x00158D00027C3E0E (0xD9EE) mac capabilities 0x80
21:00:01:947 set fast probe address to 0x00158D00027C3E0E (0xD9EE)
21:00:01:948 0x1FB3 nwk changed to 0xD9EE
21:00:01:997 ZCL attribute report 0x00158D00027C3E0E for cluster 0x0000, ep 0x01
21:00:01:997 0x00158D00027C3E0E skip Xiaomi attribute 0x0005
21:00:02:785 ZCL attribute report 0x00158D00027C3E0E for cluster 0x0000, ep 0x01
21:00:02:785 0x00158D00027C3E0E extract Xiaomi special
21:00:02:785 01 battery 3145 (0x0C49)
21:00:02:785 03 temperature 24 °C
21:00:02:785 04 unknown 424 (0x01A8)
21:00:02:785 05 RSSI dB (?) 7 (0x0007)