Closed jtsiros closed 4 years ago
I'm also looking into something similar, and wondering if the (as yet un-merged) #118 might help.
From the log I can see that the client successfully connected and paired with the accessories. But then it immediately unpairs with the accessories. Probably the data of the accessory is invalid.
Maybe a min and max temperature of 75° is invalid. Have you tried to use 70° for min and 75° for max?
@brutella Yes, I've tried 70 for min and 80 for max. Same result (logs):
DEBUG 2018/08/27 23:46:33 signature is valid
DEBUG 2018/08/27 23:46:33 Setup secure session
DEBUG 2018/08/27 23:46:33 192.168.7.28:53979 GET /accessories
DEBUG 2018/08/27 23:46:33 {"accessories":[{"aid":1,"services":[{"iid":1,"type":"3E","characteristics":[{"iid":2,"type":"14","perms":["pw"],"format":"bool"},{"iid":3,"type":"20","perms":["pr"],"value":"Nest Labs Inc","format":"string"},{"iid":4,"type":"21","perms":["pr"],"value":"undefined","format":"string"},{"iid":5,"type":"23","perms":["pr"],"value":"Nest","format":"string"},{"iid":6,"type":"30","perms":["pr"],"value":"undefined","format":"string"},{"iid":7,"type":"52","perms":["pr"],"value":"","format":"string"}]},{"iid":8,"type":"4A","characteristics":[{"iid":9,"type":"F","perms":["pr","ev"],"value":0,"format":"uint8"},{"iid":10,"type":"33","perms":["pr","pw","ev"],"value":0,"format":"uint8"},{"iid":11,"type":"11","perms":["pr","ev"],"value":75,"format":"float","unit":"celsius","maxValue":80,"minValue":70,"minStep":1},{"iid":12,"type":"35","perms":["pr","pw","ev"],"value":38,"format":"float","unit":"celsius","maxValue":80,"minValue":70,"minStep":1},{"iid":13,"type":"36","perms":["pr","pw","ev"],"value":0,"format":"uint8"}]}]}]}
DEBUG 2018/08/27 23:46:33 192.168.7.28:53979 POST /pairings
DEBUG 2018/08/27 23:46:33 -> Method: Delete
DEBUG 2018/08/27 23:46:33 -> Permission: 0
DEBUG 2018/08/27 23:46:33 -> Username: 1A9D0022-5D0F-4812-9514-7F1DE6DC2DFB
DEBUG 2018/08/27 23:46:33 -> LTPK: []
DEBUG 2018/08/27 23:46:33 Remove LTPK for client '1A9D0022-5D0F-4812-9514-7F1DE6DC2DFB'
DEBUG 2018/08/27 23:46:33 Event: unpaired with device
DEBUG 2018/08/27 23:46:34 Close connection and remove session
Any suggestions on what the issue could be?
Can somebody please try with hc v1.1.0?
I just tried it, and it works without issues.
@jtsiros, note that the units are degrees Celsius (according to the HAP specs).
Hello,
I'm attempting to create a thermostat accessory, and for some reason, The Home app returns "Couldn't connect to this accessory." error.
here is my initialization code:
Here is an excerpt from the logs:
I've been able to successfully run a LightSwitch accessory without any issues.