-
Notifications
You must be signed in to change notification settings - Fork 16
Description
I have a motion sensor I am trying to pair with the hub on a Raspberry Pi 4 (Linux raspberrypi 5.4.83-v7l+ #1379 SMP Mon Dec 14 13:11:54 GMT 2020 armv7l GNU/Linux). I gave read and write privileges to the user using sudo chmod g+rw /dev/hidraw0. The sample is able to find the hub plugged into the Pi, but when I go to pair it is not finding the motion sensor. Here is the flow I have tried:
sudo python sample.py --device /dev/hidraw0 --debug- Option P for pairing
- After put into pairing mode, I hold the button on the side of the sensor until the light flashes 3 times, then release
- The script will say "No sensor found!" every time without pairing to a sensor
Is there a way to enter a sensor strictly by MAC? If not, I am just wondering what I am doing wrong. Here are the debugging logs:
Openning wyzesense gateway ['/dev/hidraw0']
DEBUG 2021-01-18 17:48:38,609 Start Inquiry...
DEBUG 2021-01-18 17:48:38,609 ===> Sending: Packet: Cmd=4327, Payload=
DEBUG 2021-01-18 17:48:38,611 Sending: aa55430327016c
DEBUG 2021-01-18 17:48:38,710 Trying to parse: 55aa43042801016f
DEBUG 2021-01-18 17:48:38,710 Received: 55aa43042801016f
DEBUG 2021-01-18 17:48:38,710 <=== Received: Packet: Cmd=4328, Payload=01
DEBUG 2021-01-18 17:48:38,726 Inquiry returns 1
DEBUG 2021-01-18 17:48:38,727 Start GetEnr...
DEBUG 2021-01-18 17:48:38,727 ===> Sending: Packet: Cmd=4302, Payload=30303030303030303030303030303030
DEBUG 2021-01-18 17:48:38,727 Sending: aa55431302303030303030303030303030303030300457
DEBUG 2021-01-18 17:48:38,811 Trying to parse: 55aa431303e2b1b3f327fbb487a45b716a4e948fa20adb
DEBUG 2021-01-18 17:48:38,811 Received: 55aa431303e2b1b3f327fbb487a45b716a4e948fa20adb
DEBUG 2021-01-18 17:48:38,811 <=== Received: Packet: Cmd=4303, Payload=e2b1b3f327fbb487a45b716a4e948fa2
DEBUG 2021-01-18 17:48:38,843 GetEnr returns e2b1b3f327fbb487a45b716a4e948fa2
DEBUG 2021-01-18 17:48:38,843 Start GetMAC...
DEBUG 2021-01-18 17:48:38,844 ===> Sending: Packet: Cmd=4304, Payload=
DEBUG 2021-01-18 17:48:38,844 Sending: aa554303040149
DEBUG 2021-01-18 17:48:38,912 Trying to parse: 55aa430b053737393236334545031e
DEBUG 2021-01-18 17:48:38,912 Received: 55aa430b053737393236334545031e
DEBUG 2021-01-18 17:48:38,913 <=== Received: Packet: Cmd=4305, Payload=3737393236334545
DEBUG 2021-01-18 17:48:38,961 GetMAC returns 779263EE
DEBUG 2021-01-18 17:48:38,962 Dongle MAC is [779263EE]
DEBUG 2021-01-18 17:48:38,962 Start GetVersion...
DEBUG 2021-01-18 17:48:38,962 ===> Sending: Packet: Cmd=5316, Payload=
DEBUG 2021-01-18 17:48:38,963 Sending: aa55530316016b
DEBUG 2021-01-18 17:48:39,013 Trying to parse: 55aa5316ff026755aa531c17302e302e302e33302056312e3420446f6e676c65205544335507c5
DEBUG 2021-01-18 17:48:39,014 Received: 55aa5316ff0267
DEBUG 2021-01-18 17:48:39,014 <=== Received: Packet: Cmd=53FF, Payload=ACK(5316)
DEBUG 2021-01-18 17:48:39,014 Trying to parse: 55aa531c17302e302e302e33302056312e3420446f6e676c65205544335507c5
DEBUG 2021-01-18 17:48:39,014 Received: 55aa531c17302e302e302e33302056312e3420446f6e676c65205544335507c5
DEBUG 2021-01-18 17:48:39,015 <=== Received: Packet: Cmd=5317, Payload=302e302e302e33302056312e3420446f6e676c652055443355
DEBUG 2021-01-18 17:48:39,015 ===> Sending: Packet: Cmd=53FF, Payload=ACK(5317)
DEBUG 2021-01-18 17:48:39,015 Sending: aa555317ff0268
DEBUG 2021-01-18 17:48:39,029 GetVersion returns 0.0.0.30 V1.4 Dongle UD3U
DEBUG 2021-01-18 17:48:39,029 Dongle version: 0.0.0.30 V1.4 Dongle UD3U
DEBUG 2021-01-18 17:48:39,029 ===> Sending: Packet: Cmd=5314, Payload=ff
DEBUG 2021-01-18 17:48:39,030 Sending: aa55530414ff0269
DEBUG 2021-01-18 17:48:39,117 Trying to parse: 55aa5314ff026555aa530e3500000000000000000314ff02ab55aa530315016a
DEBUG 2021-01-18 17:48:39,117 Received: 55aa5314ff0265
DEBUG 2021-01-18 17:48:39,117 <=== Received: Packet: Cmd=53FF, Payload=ACK(5314)
DEBUG 2021-01-18 17:48:39,117 Trying to parse: 55aa530e3500000000000000000314ff02ab55aa530315016a
DEBUG 2021-01-18 17:48:39,118 Received: 55aa530e3500000000000000000314ff02ab
DEBUG 2021-01-18 17:48:39,118 <=== Received: Packet: Cmd=5335, Payload=00000000000000000314ff
DEBUG 2021-01-18 17:48:39,118 ===> Sending: Packet: Cmd=53FF, Payload=ACK(5335)
DEBUG 2021-01-18 17:48:39,118 Sending: aa555335ff0286
INFO 2021-01-18 17:48:39,120 LOG: time=1970-01-01T01:00:00, data=14ff
DEBUG 2021-01-18 17:48:39,120 Trying to parse: 55aa530315016a
DEBUG 2021-01-18 17:48:39,121 Received: 55aa530315016a
DEBUG 2021-01-18 17:48:39,121 <=== Received: Packet: Cmd=5315, Payload=
DEBUG 2021-01-18 17:48:39,122 ===> Sending: Packet: Cmd=53FF, Payload=ACK(5315)
DEBUG 2021-01-18 17:48:39,122 Sending: aa555315ff0266
Gateway info:
MAC:779263EE
VER:0.0.0.30 V1.4 Dongle UD3U
ENR:e2b1b3f327fbb487a45b716a4e948fa2
P to pair
U to unpair
L to list
X to exit
Action:DEBUG 2021-01-18 17:48:39,225 Trying to parse: 55aa530315016a55aa5303320187
DEBUG 2021-01-18 17:48:39,226 Received: 55aa530315016a
DEBUG 2021-01-18 17:48:39,226 <=== Received: Packet: Cmd=5315, Payload=
DEBUG 2021-01-18 17:48:39,227 ===> Sending: Packet: Cmd=53FF, Payload=ACK(5315)
DEBUG 2021-01-18 17:48:39,227 Sending: aa555315ff0266
DEBUG 2021-01-18 17:48:39,230 Trying to parse: 55aa5303320187
DEBUG 2021-01-18 17:48:39,230 Received: 55aa5303320187
DEBUG 2021-01-18 17:48:39,231 <=== Received: Packet: Cmd=5332, Payload=
DEBUG 2021-01-18 17:48:39,231 ===> Sending: Packet: Cmd=53FF, Payload=ACK(5332)
DEBUG 2021-01-18 17:48:39,232 Sending: aa555332ff0283
DEBUG 2021-01-18 17:48:39,234 ===> Sending: Packet: Cmd=5333, Payload=00000177169cedc2
DEBUG 2021-01-18 17:48:39,235 Sending: aa55530b3300000177169cedc20469
DEBUG 2021-01-18 17:48:39,338 Trying to parse: 55aa5303320187
DEBUG 2021-01-18 17:48:39,338 Received: 55aa5303320187
DEBUG 2021-01-18 17:48:39,339 <=== Received: Packet: Cmd=5332, Payload=
DEBUG 2021-01-18 17:48:39,339 ===> Sending: Packet: Cmd=53FF, Payload=ACK(5332)
DEBUG 2021-01-18 17:48:39,340 Sending: aa555332ff0283
DEBUG 2021-01-18 17:48:39,342 ===> Sending: Packet: Cmd=5333, Payload=00000177169cee2e
DEBUG 2021-01-18 17:48:39,342 Sending: aa55530b3300000177169cee2e03d6
DEBUG 2021-01-18 17:48:39,345 Trying to parse: 55aa5333ff0284
DEBUG 2021-01-18 17:48:39,345 Received: 55aa5333ff0284
DEBUG 2021-01-18 17:48:39,345 <=== Received: Packet: Cmd=53FF, Payload=ACK(5333)
DEBUG 2021-01-18 17:48:39,447 Trying to parse: 55aa5333ff0284
DEBUG 2021-01-18 17:48:39,447 Received: 55aa5333ff0284
DEBUG 2021-01-18 17:48:39,448 <=== Received: Packet: Cmd=53FF, Payload=ACK(5333)
P
DEBUG 2021-01-18 17:49:26,857 Start Scan...
DEBUG 2021-01-18 17:49:26,858 ===> Sending: Packet: Cmd=531C, Payload=01
DEBUG 2021-01-18 17:49:26,859 Sending: aa5553041c010173
DEBUG 2021-01-18 17:49:26,907 Trying to parse: 55aa531cff026d55aa530e3500000177169d9f19031c01039855aa53031d0172
DEBUG 2021-01-18 17:49:26,908 Received: 55aa531cff026d
DEBUG 2021-01-18 17:49:26,908 <=== Received: Packet: Cmd=53FF, Payload=ACK(531C)
DEBUG 2021-01-18 17:49:26,909 Trying to parse: 55aa530e3500000177169d9f19031c01039855aa53031d0172
DEBUG 2021-01-18 17:49:26,910 Received: 55aa530e3500000177169d9f19031c010398
DEBUG 2021-01-18 17:49:26,910 <=== Received: Packet: Cmd=5335, Payload=00000177169d9f19031c01
DEBUG 2021-01-18 17:49:26,910 ===> Sending: Packet: Cmd=53FF, Payload=ACK(5335)
DEBUG 2021-01-18 17:49:26,911 Sending: aa555335ff0286
INFO 2021-01-18 17:49:26,914 LOG: time=2021-01-18T17:49:24.633000, data=1c01
DEBUG 2021-01-18 17:49:26,915 Trying to parse: 55aa53031d0172
DEBUG 2021-01-18 17:49:26,916 Received: 55aa53031d0172
DEBUG 2021-01-18 17:49:26,916 <=== Received: Packet: Cmd=531D, Payload=
DEBUG 2021-01-18 17:49:26,916 ===> Sending: Packet: Cmd=53FF, Payload=ACK(531D)
DEBUG 2021-01-18 17:49:26,917 Sending: aa55531dff026e
DEBUG 2021-01-18 17:50:26,925 Sensor discovery timeout...
DEBUG 2021-01-18 17:50:26,926 ===> Sending: Packet: Cmd=531C, Payload=00
DEBUG 2021-01-18 17:50:26,927 Sending: aa5553041c000172
DEBUG 2021-01-18 17:50:27,014 Trying to parse: 55aa531cff026d55aa530e3500000177169e7ec2031c00042055aa53031d0172
DEBUG 2021-01-18 17:50:27,015 Received: 55aa531cff026d
DEBUG 2021-01-18 17:50:27,015 <=== Received: Packet: Cmd=53FF, Payload=ACK(531C)
DEBUG 2021-01-18 17:50:27,016 Trying to parse: 55aa530e3500000177169e7ec2031c00042055aa53031d0172
DEBUG 2021-01-18 17:50:27,017 Received: 55aa530e3500000177169e7ec2031c000420
DEBUG 2021-01-18 17:50:27,017 <=== Received: Packet: Cmd=5335, Payload=00000177169e7ec2031c00
DEBUG 2021-01-18 17:50:27,018 ===> Sending: Packet: Cmd=53FF, Payload=ACK(5335)
DEBUG 2021-01-18 17:50:27,018 Sending: aa555335ff0286
INFO 2021-01-18 17:50:27,021 LOG: time=2021-01-18T17:50:21.890000, data=1c00
DEBUG 2021-01-18 17:50:27,021 Trying to parse: 55aa53031d0172
DEBUG 2021-01-18 17:50:27,022 Received: 55aa53031d0172
DEBUG 2021-01-18 17:50:27,022 <=== Received: Packet: Cmd=531D, Payload=
DEBUG 2021-01-18 17:50:27,023 ===> Sending: Packet: Cmd=53FF, Payload=ACK(531D)
DEBUG 2021-01-18 17:50:27,023 Sending: aa55531dff026e
DEBUG 2021-01-18 17:50:27,026 Trying to parse: 55aa53031d0172
DEBUG 2021-01-18 17:50:27,026 Received: 55aa53031d0172
DEBUG 2021-01-18 17:50:27,027 <=== Received: Packet: Cmd=531D, Payload=
DEBUG 2021-01-18 17:50:27,027 ===> Sending: Packet: Cmd=53FF, Payload=ACK(531D)
DEBUG 2021-01-18 17:50:27,028 Sending: aa55531dff026e
No sensor found!
DEBUG 2021-01-18 17:50:27,044 No sensor found!
P to pair
U to unpair
L to list
X to exit
Action:P
DEBUG 2021-01-18 17:50:39,782 Start Scan...
DEBUG 2021-01-18 17:50:39,783 ===> Sending: Packet: Cmd=531C, Payload=01
DEBUG 2021-01-18 17:50:39,784 Sending: aa5553041c010173
DEBUG 2021-01-18 17:50:39,874 Trying to parse: 55aa531cff026d55aa530e3500000177169eaea3031c01043255aa53031d0172
DEBUG 2021-01-18 17:50:39,875 Received: 55aa531cff026d
DEBUG 2021-01-18 17:50:39,875 <=== Received: Packet: Cmd=53FF, Payload=ACK(531C)
DEBUG 2021-01-18 17:50:39,876 Trying to parse: 55aa530e3500000177169eaea3031c01043255aa53031d0172
DEBUG 2021-01-18 17:50:39,877 Received: 55aa530e3500000177169eaea3031c010432
DEBUG 2021-01-18 17:50:39,878 <=== Received: Packet: Cmd=5335, Payload=00000177169eaea3031c01
DEBUG 2021-01-18 17:50:39,879 ===> Sending: Packet: Cmd=53FF, Payload=ACK(5335)
DEBUG 2021-01-18 17:50:39,880 Sending: aa555335ff0286
INFO 2021-01-18 17:50:39,882 LOG: time=2021-01-18T17:50:34.147000, data=1c01
DEBUG 2021-01-18 17:50:39,882 Trying to parse: 55aa53031d0172
DEBUG 2021-01-18 17:50:39,885 Received: 55aa53031d0172
DEBUG 2021-01-18 17:50:39,885 <=== Received: Packet: Cmd=531D, Payload=
DEBUG 2021-01-18 17:50:39,886 ===> Sending: Packet: Cmd=53FF, Payload=ACK(531D)
DEBUG 2021-01-18 17:50:39,887 Sending: aa55531dff026e
DEBUG 2021-01-18 17:50:39,891 Trying to parse: 55aa53031d0172
DEBUG 2021-01-18 17:50:39,892 Received: 55aa53031d0172
DEBUG 2021-01-18 17:50:39,893 <=== Received: Packet: Cmd=531D, Payload=
DEBUG 2021-01-18 17:50:39,893 ===> Sending: Packet: Cmd=53FF, Payload=ACK(531D)
DEBUG 2021-01-18 17:50:39,894 Sending: aa55531dff026e
DEBUG 2021-01-18 17:51:39,901 Sensor discovery timeout...
DEBUG 2021-01-18 17:51:39,902 ===> Sending: Packet: Cmd=531C, Payload=00
DEBUG 2021-01-18 17:51:39,902 Sending: aa5553041c000172
DEBUG 2021-01-18 17:51:39,991 Trying to parse: 55aa531cff026d55aa530e3500000177169f8e76031c0003e555aa53031d0172
DEBUG 2021-01-18 17:51:39,992 Received: 55aa531cff026d
DEBUG 2021-01-18 17:51:39,992 <=== Received: Packet: Cmd=53FF, Payload=ACK(531C)
DEBUG 2021-01-18 17:51:39,993 Trying to parse: 55aa530e3500000177169f8e76031c0003e555aa53031d0172
DEBUG 2021-01-18 17:51:39,994 Received: 55aa530e3500000177169f8e76031c0003e5
DEBUG 2021-01-18 17:51:39,994 <=== Received: Packet: Cmd=5335, Payload=00000177169f8e76031c00
DEBUG 2021-01-18 17:51:39,994 ===> Sending: Packet: Cmd=53FF, Payload=ACK(5335)
DEBUG 2021-01-18 17:51:39,995 Sending: aa555335ff0286
INFO 2021-01-18 17:51:39,997 LOG: time=2021-01-18T17:51:31.446000, data=1c00
DEBUG 2021-01-18 17:51:39,998 Trying to parse: 55aa53031d0172
DEBUG 2021-01-18 17:51:39,998 Received: 55aa53031d0172
DEBUG 2021-01-18 17:51:39,999 <=== Received: Packet: Cmd=531D, Payload=
DEBUG 2021-01-18 17:51:39,999 ===> Sending: Packet: Cmd=53FF, Payload=ACK(531D)
DEBUG 2021-01-18 17:51:40,000 Sending: aa55531dff026e
DEBUG 2021-01-18 17:51:40,002 Trying to parse: 55aa53031d0172
DEBUG 2021-01-18 17:51:40,003 Received: 55aa53031d0172
DEBUG 2021-01-18 17:51:40,003 <=== Received: Packet: Cmd=531D, Payload=
DEBUG 2021-01-18 17:51:40,003 ===> Sending: Packet: Cmd=53FF, Payload=ACK(531D)
DEBUG 2021-01-18 17:51:40,004 Sending: aa55531dff026e
No sensor found!
DEBUG 2021-01-18 17:51:40,019 No sensor found!
P to pair
U to unpair
L to list
X to exit
Action:x