yujinakayama / homebridge-switchbot

Homebridge plugin for SwitchBot
29 stars 4 forks source link

Accessory [Homebridge] Error setting Characteristic "On" to value 1: undefined #4

Closed DJay-X closed 5 years ago

DJay-X commented 5 years ago

@yujinakayama First of all I would like to politely ask if you made the plugin exclusively for yourself and are therefore not interested in any further development or compatibility for other users, or if you have the time, desire and opportunity for future adjustments? Of course a use only by you and no "support" for others is also absolutely okay, only for the community to know then also good. Not that we hope in vain for adjustments, also invest time from our side into the research as well and inform you here. At least in my case, I don't want to bother you.

Now to the issue I noticed on my system. I run your plugin on a Pi Zero W. And it seems to work from installation to a quick test. Unfortunately it only works to trigger the switch one to two time only, then doing nothing. The log is not showing much and no error. But not sure how I get more details.

Anyway, basic is working for a moment 1-2 switch then not responding. But the App (Eve HomeKit) is not showing an error and I still can switch but without reaction on the SwitchBot.

Also I noticed, when I enable "light switch Add-on" mode to have the on/off feature in SwitchBot App, the Plugin isn't doing anything at all. Is it not compatible with this mode?

Thanks again for the time you are investing and for your reply, at least for the first point if you have a passion for the further development of the plugin.

Aug 24 22:09:44 pi-zero homebridge[1281]: Sat, 24 Aug 2019 20:09:44 GMT Accessory [Homebridge] Error setting Characteristic "On" to value 1:  undefined
Aug 24 22:09:44 pi-zero homebridge[1281]: Sat, 24 Aug 2019 20:09:44 GMT EventedHTTPServer [::ffff:192.168.178.77] HTTP Response is finished
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.040Z hci onSocketData: 010c20020101
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.042Z hci         event type = 1
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.044Z hci                 cmd = 8204
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.047Z hci                 data len = 2
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.047Z hci                         LE enable scan command
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.047Z hci                         enable scanning = true
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.048Z hci                         filter duplicates = true
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.049Z noble scanStart
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.079Z hci onSocketData: 040e04010c2000
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.096Z hci         event type = 4
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.099Z hci         sub event type = 14
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.101Z hci                 cmd = 8204
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.104Z hci                 status = 0
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.104Z hci                 result =
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.105Z hci onSocketData: 043e19020100015a7e202e6fc40d02010609ff5900c46f2e207e5aac
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.105Z hci         event type = 4
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.105Z hci         sub event type = 62
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.106Z hci                 LE meta event type = 2
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.106Z hci                 LE meta event status = 1
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.106Z hci                 LE meta event data = 00015a7e202e6fc40d02010609ff5900c46f2e207e5aac
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.107Z hci                         type = 0
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.107Z hci                         address = c4:6f:2e:20:7e:5a
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.107Z hci                         address type = random
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.108Z hci                         eir = 02010609ff5900c46f2e207e5a
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.108Z hci                         rssi = -84
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.109Z gap advertisement = {"manufacturerData":{"type":"Buffer","data":[89,0,196,111,46,32,126,90]},"serviceData":[],"serviceUuids":[],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]}
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.110Z hci onSocketData: 010c20020000
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.110Z hci         event type = 1
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.162Z hci                 cmd = 8204
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.162Z hci                 data len = 2
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.162Z hci                         LE enable scan command
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.162Z hci                         enable scanning = false
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.163Z hci                         filter duplicates = false
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.164Z noble scanStop
Aug 24 22:09:44 pi-zero homebridge[1281]: [8/24/2019, 10:09:44 PM] [Raumklima] Stopped scanning.
Aug 24 22:09:44 pi-zero homebridge[1281]: [8/24/2019, 10:09:44 PM] [Raumklima Esszimmer] Stopped scanning.
Aug 24 22:09:44 pi-zero homebridge[1281]: [8/24/2019, 10:09:44 PM] [Raumklima Schlafzimmer] Stopped scanning.
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.201Z hci onSocketData: 040e04010c2000
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.203Z hci         event type = 4
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.205Z hci         sub event type = 14
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.207Z hci                 cmd = 8204
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.208Z hci                 status = 0
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.208Z hci                 result =
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.209Z hci onSocketData: 010d20196000600000015a7e202e6fc4001800280000002a0000000000
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.209Z hci         event type = 1
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.209Z hci                 cmd = 8205
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.209Z hci                 data len = 25
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.217Z hci onSocketData: 040f0400010d20
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.217Z hci         event type = 4
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.218Z hci         sub event type = 15
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.218Z hci                 status = 0
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.218Z hci                 cmd = 8205
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.219Z hci onSocketData: 043e130100400000015a7e202e6fc4270000002a0000
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.219Z hci         event type = 4
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.220Z hci         sub event type = 62
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.225Z hci                 LE meta event type = 1
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.225Z hci                 LE meta event status = 0
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.226Z hci                 LE meta event data = 400000015a7e202e6fc4270000002a0000
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.226Z hci                         handle = 64
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.227Z hci                         role = 0
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.227Z hci                         address type = random
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.227Z hci                         address = c4:6f:2e:20:7e:5a
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.227Z hci                         interval = 48.75
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.246Z hci                         latency = 0
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.246Z hci                         supervision timeout = 420
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.246Z hci                         master clock accuracy = 0
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.306Z att c4:6f:2e:20:7e:5a: write: 020001
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.310Z hci write acl data pkt - writing: 024000070003000400020001
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.320Z hci onSocketData: 011620024000
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.322Z hci         event type = 1
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.324Z hci                 cmd = 8214
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.326Z hci                 data len = 2
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.354Z hci onSocketData: 040f0400011620
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.357Z hci         event type = 4
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.359Z hci         sub event type = 15
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.361Z hci                 status = 0
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.362Z hci                 cmd = 8214
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.362Z hci onSocketData: 043e0c040040000100000000000000
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.363Z hci         event type = 4
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.363Z hci         sub event type = 62
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.363Z hci                 LE meta event type = 4
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.364Z hci                 LE meta event status = 0
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.364Z hci                 LE meta event data = 40000100000000000000
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.365Z hci onSocketData: 0240000a0006000400521600570102
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.365Z hci         event type = 2
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.366Z hci onSocketData: 01060403400013
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.366Z hci         event type = 1
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.366Z hci                 cmd = 1030
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.367Z hci                 data len = 3
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.367Z hci onSocketData: 040f0400010604
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.368Z hci         event type = 4
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.368Z hci         sub event type = 15
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.368Z hci                 status = 0
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.368Z hci                 cmd = 1030
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.369Z hci onSocketData: 04050400400016
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.369Z hci         event type = 4
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.370Z hci         sub event type = 5
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.370Z hci                 handle = 64
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.459Z hci                 reason = 22
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.465Z hci onSocketData: 010b200700600030000001
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.465Z hci         event type = 1
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.465Z hci                 cmd = 8203
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.465Z hci                 data len = 7
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.466Z hci onSocketData: 040e04010b2000
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.467Z hci         event type = 4
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.467Z hci         sub event type = 14
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.467Z hci                 cmd = 8203
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.467Z hci                 status = 0
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.468Z hci                 result =
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.468Z hci onSocketData: 010c20020101
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.469Z hci         event type = 1
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.469Z hci                 cmd = 8204
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.469Z hci                 data len = 2
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.470Z hci                         LE enable scan command
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.470Z hci                         enable scanning = true
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.470Z hci                         filter duplicates = true
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.495Z hci onSocketData: 040e04010c2000
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.496Z hci         event type = 4
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.507Z hci         sub event type = 14
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.507Z hci                 cmd = 8204
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.507Z hci                 status = 0
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.507Z hci                 result =
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.508Z hci onSocketData: 043e19020100015a7e202e6fc40d02010609ff5900c46f2e207e5aac
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.509Z hci         event type = 4
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.514Z hci         sub event type = 62
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.515Z hci                 LE meta event type = 2
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.515Z hci                 LE meta event status = 1
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.515Z hci                 LE meta event data = 00015a7e202e6fc40d02010609ff5900c46f2e207e5aac
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.516Z hci                         type = 0
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.516Z hci                         address = c4:6f:2e:20:7e:5a
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.516Z hci                         address type = random
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.517Z hci                         eir = 02010609ff5900c46f2e207e5a
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.517Z hci                         rssi = -84
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.518Z gap advertisement = {"manufacturerData":{"type":"Buffer","data":[89,0,196,111,46,32,126,90]},"serviceData":[],"serviceUuids":[],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]}
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.519Z hci onSocketData: 010c20020000
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.519Z hci         event type = 1
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.519Z hci                 cmd = 8204
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.519Z hci                 data len = 2
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.520Z hci                         LE enable scan command
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.520Z hci                         enable scanning = false
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.545Z hci                         filter duplicates = false
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.545Z noble scanStop
Aug 24 22:09:44 pi-zero homebridge[1281]: [8/24/2019, 10:09:44 PM] [Raumklima] Stopped scanning.
Aug 24 22:09:44 pi-zero homebridge[1281]: [8/24/2019, 10:09:44 PM] [Raumklima Esszimmer] Stopped scanning.
Aug 24 22:09:44 pi-zero homebridge[1281]: [8/24/2019, 10:09:44 PM] [Raumklima Schlafzimmer] Stopped scanning.
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.587Z hci onSocketData: 040e04010c2000
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.588Z hci         event type = 4
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.588Z hci         sub event type = 14
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.588Z hci                 cmd = 8204
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.588Z hci                 status = 0
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.589Z hci                 result =
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.642Z hci onSocketData: 010d20196000600000015a7e202e6fc4001800280000002a0000000000
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.643Z hci         event type = 1
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.643Z hci                 cmd = 8205
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.643Z hci                 data len = 25
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.644Z hci onSocketData: 040f0400010d20
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.644Z hci         event type = 4
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.645Z hci         sub event type = 15
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.645Z hci                 status = 0
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.645Z hci                 cmd = 8205
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.646Z hci onSocketData: 043e130100400000015a7e202e6fc4270000002a0000
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.646Z hci         event type = 4
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.646Z hci         sub event type = 62
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.647Z hci                 LE meta event type = 1
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.647Z hci                 LE meta event status = 0
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.647Z hci                 LE meta event data = 400000015a7e202e6fc4270000002a0000
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.668Z hci                         handle = 64
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.674Z hci                         role = 0
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.674Z hci                         address type = random
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.674Z hci                         address = c4:6f:2e:20:7e:5a
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.674Z hci                         interval = 48.75
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.675Z hci                         latency = 0
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.675Z hci                         supervision timeout = 420
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.675Z hci                         master clock accuracy = 0
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.765Z att c4:6f:2e:20:7e:5a: write: 020001
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.766Z hci write acl data pkt - writing: 024000070003000400020001
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.801Z hci onSocketData: 011620024000
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.803Z hci         event type = 1
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.805Z hci                 cmd = 8214
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.807Z hci                 data len = 2
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.824Z hci onSocketData: 040f0400011620
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.826Z hci         event type = 4
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.828Z hci         sub event type = 15
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.830Z hci                 status = 0
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.832Z hci                 cmd = 8214
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.833Z hci onSocketData: 043e0c043e40001f00000000000000
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.833Z hci         event type = 4
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.834Z hci         sub event type = 62
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.834Z hci                 LE meta event type = 4
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.834Z hci                 LE meta event status = 62
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.835Z hci                 LE meta event data = 40001f00000000000000
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.835Z hci onSocketData: 0405040040003e
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.836Z hci         event type = 4
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.836Z hci         sub event type = 5
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.836Z hci                 handle = 64
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.836Z hci                 reason = 62
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.838Z hci onSocketData: 010b200700600030000001
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.838Z hci         event type = 1
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.838Z hci                 cmd = 8203
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.838Z hci                 data len = 7
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.839Z hci onSocketData: 040e04010b2000
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.839Z hci         event type = 4
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.872Z hci         sub event type = 14
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.872Z hci                 cmd = 8203
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.872Z hci                 status = 0
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.873Z hci                 result =
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.874Z hci onSocketData: 010c20020101
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.874Z hci         event type = 1
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.874Z hci                 cmd = 8204
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.874Z hci                 data len = 2
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.875Z hci                         LE enable scan command
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.875Z hci                         enable scanning = true
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.875Z hci                         filter duplicates = true
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.878Z hci onSocketData: 040e04010c2000
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.878Z hci         event type = 4
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.879Z hci         sub event type = 14
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.879Z hci                 cmd = 8204
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.879Z hci                 status = 0
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.880Z hci                 result =
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.952Z hci onSocketData: 043e19020100015a7e202e6fc40d02010609ff5900c46f2e207e5aaa
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.953Z hci         event type = 4
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.953Z hci         sub event type = 62
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.953Z hci                 LE meta event type = 2
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.953Z hci                 LE meta event status = 1
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.954Z hci                 LE meta event data = 00015a7e202e6fc40d02010609ff5900c46f2e207e5aaa
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.954Z hci                         type = 0
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.955Z hci                         address = c4:6f:2e:20:7e:5a
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.955Z hci                         address type = random
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.980Z hci                         eir = 02010609ff5900c46f2e207e5a
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.982Z hci                         rssi = -86
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.984Z gap advertisement = {"manufacturerData":{"type":"Buffer","data":[89,0,196,111,46,32,126,90]},"serviceData":[],"serviceUuids":[],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]}
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.987Z hci onSocketData: 010c20020000
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.989Z hci         event type = 1
Aug 24 22:09:44 pi-zero homebridge[1281]: 2019-08-24T20:09:44.990Z hci                 cmd = 8204
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:44.990Z hci                 data len = 2
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:44.993Z hci                         LE enable scan command
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:44.993Z hci                         enable scanning = false
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:44.993Z hci                         filter duplicates = false
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:44.994Z noble scanStop
Aug 24 22:09:45 pi-zero homebridge[1281]: [8/24/2019, 10:09:44 PM] [Raumklima] Stopped scanning.
Aug 24 22:09:45 pi-zero homebridge[1281]: [8/24/2019, 10:09:44 PM] [Raumklima Esszimmer] Stopped scanning.
Aug 24 22:09:45 pi-zero homebridge[1281]: [8/24/2019, 10:09:44 PM] [Raumklima Schlafzimmer] Stopped scanning.
Aug 24 22:09:45 pi-zero homebridge[1281]: Sat, 24 Aug 2019 20:09:45 GMT EventedHTTPServer [::ffff:192.168.178.69] New connection from client
Aug 24 22:09:45 pi-zero homebridge[1281]: Sat, 24 Aug 2019 20:09:45 GMT EventedHTTPServer [::ffff:192.168.178.69] HTTP server listening on port 42153
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.047Z hci onSocketData: 040e04010c2000
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.049Z hci         event type = 4
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.051Z hci         sub event type = 14
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.054Z hci                 cmd = 8204
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.054Z hci                 status = 0
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.055Z hci                 result =
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.057Z hci onSocketData: 010d20196000600000015a7e202e6fc4001800280000002a0000000000
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.058Z hci         event type = 1
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.058Z hci                 cmd = 8205
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.058Z hci                 data len = 25
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.082Z hci onSocketData: 040f0400010d20
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.084Z hci         event type = 4
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.087Z hci         sub event type = 15
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.089Z hci                 status = 0
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.089Z hci                 cmd = 8205
Aug 24 22:09:45 pi-zero homebridge[1281]: Sat, 24 Aug 2019 20:09:45 GMT EventedHTTPServer [::ffff:192.168.178.69] HTTP request: /pair-verify
Aug 24 22:09:45 pi-zero homebridge[1281]: Sat, 24 Aug 2019 20:09:45 GMT HAPServer [CA:E4:D2:7C:8E:5D] HAP Request: POST /pair-verify
Aug 24 22:09:45 pi-zero homebridge[1281]: Sat, 24 Aug 2019 20:09:45 GMT HAPServer [CA:E4:D2:7C:8E:5D] Pair verify step 1/2
Aug 24 22:09:45 pi-zero homebridge[1281]: Sat, 24 Aug 2019 20:09:45 GMT EventedHTTPServer [::ffff:192.168.178.69] HTTP Response is finished
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.710Z hci onSocketData: 043e130100400000015a7e202e6fc4270000002a0000
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.711Z hci         event type = 4
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.711Z hci         sub event type = 62
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.711Z hci                 LE meta event type = 1
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.712Z hci                 LE meta event status = 0
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.712Z hci                 LE meta event data = 400000015a7e202e6fc4270000002a0000
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.713Z hci                         handle = 64
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.713Z hci                         role = 0
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.713Z hci                         address type = random
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.713Z hci                         address = c4:6f:2e:20:7e:5a
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.714Z hci                         interval = 48.75
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.714Z hci                         latency = 0
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.714Z hci                         supervision timeout = 420
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.714Z hci                         master clock accuracy = 0
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.720Z att c4:6f:2e:20:7e:5a: write: 020001
Aug 24 22:09:45 pi-zero homebridge[1281]: 2019-08-24T20:09:45.753Z hci write acl data pkt - writing: 024000070003000400020001
Aug 24 22:09:45 pi-zero homebridge[1281]: Sat, 24 Aug 2019 20:09:45 GMT EventedHTTPServer [::ffff:192.168.178.53] New connection from client
Aug 24 22:09:45 pi-zero homebridge[1281]: Sat, 24 Aug 2019 20:09:45 GMT EventedHTTPServer [::ffff:192.168.178.53] HTTP server listening on port 37819
DJay-X commented 5 years ago

Never mind. I found a reliable working solution with gatttool and homebridge-cmdswitch2 Plugin So no need for this plugin anymore. All the best to you.

{
            "platform": "cmdSwitch2",
            "name": "Licht",
            "switches": [
                {
                    "name": "Spiegelschrank",
                    "on_cmd": "gatttool -t random -b C5:6B:4E:21:7C:6B --char-write-req -a 0x0016 -n 570101",
                    "off_cmd": "gatttool -t random -b C5:6B:4E:21:7C:6B --char-write-req -a 0x0016 -n 570102",
                    "timeout": 2000,
                    "manufacturer": "Wonderlabs",
                    "model": "SwitchBot",
                    "serial": "C5:6B:4E:21:7C:6B"
                },
                {
                    "name": "Eingangsbereich",
                    "on_cmd": "gatttool -t random -b BB:81:D1:31:01:DE --char-write-req -a 0x0016 -n 570101",
                    "off_cmd": "gatttool -t random -b BB:81:D1:31:01:DE --char-write-req -a 0x0016 -n 570102",
                    "timeout": 2000,
                    "manufacturer": "Wonderlabs",
                    "model": "SwitchBot",
                    "serial": "BB:81:D1:31:01:DE"
                }
            ]
        },