-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
I've been playing with the sample.py script. I have a whole bunch of sensors, all but one of which reliably generate output like:
[2019-10-14 17:09:08][77835FCF]StateEvent: sensor_type=switch, state=open, battery=94, signal=85
[2019-10-14 17:09:10][77835FCF]StateEvent: sensor_type=switch, state=close, battery=94, signal=94
I keep getting this output when one of my sensors changes state:
[2019-10-14 17:09:08][]StateEvent: sensor_type=switch, state=open, battery=94, signal=85
When I change line 32 in sample.py from:
s = "[%s][%s]" % (e.Timestamp.strftime("%Y-%m-%d %H:%M:%S"), e.MAC)
to:
s = "[%s][%r]" % (e.Timestamp.strftime("%Y-%m-%d %H:%M:%S"), e.MAC)
The data in e.MAC is shown on screen as "u\x00\x00\x00\x00\x00\x00\x00\x00". I'm not really sure what this means. I changed the code in the unpair function (because it won't run unless given precisely eight digits) to just send "\x00\x00\x00\x00\x00\x00\x00\x00" to the hub and that seems to unpair the device. I can pair it up again just fine, but it still has that empty/nonsense MAC ID.
This misbehaving (?) sensor may have something to do with the issue I created earlier.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels