sibartlett / homebridge-wink3

Homebridge plugin for wink.com
https://sibartlett.github.io/homebridge-wink3
ISC License
54 stars 20 forks source link

when changing state from homekit, got missing desired_state hash #98

Open magnum opened 6 years ago

magnum commented 6 years ago
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:     at new StatusCodeError (/usr/local/lib/node_modules/homebridge-wink3/node_modules/request-promise-core/lib/errors.js:32:15)
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:     at Request.plumbing.callback (/usr/local/lib/node_modules/homebridge-wink3/node_modules/request-promise-core/lib/plumbing.js:104:33)
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:     at Request.RP$callback [as _callback] (/usr/local/lib/node_modules/homebridge-wink3/node_modules/request-promise-core/lib/plumbing.js:46:31)
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:     at Request.self.callback (/usr/local/lib/node_modules/homebridge-wink3/node_modules/request/request.js:185:22)
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:     at emitTwo (events.js:106:13)
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:     at Request.emit (events.js:194:7)
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:     at Request.<anonymous> (/usr/local/lib/node_modules/homebridge-wink3/node_modules/request/request.js:1157:10)
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:     at emitOne (events.js:96:13)
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:     at Request.emit (events.js:191:7)
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:     at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge-wink3/node_modules/request/request.js:1079:12)
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:     at Object.onceWrapper (events.js:293:19)
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:     at emitNone (events.js:91:20)
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:     at IncomingMessage.emit (events.js:188:7)
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:     at endReadableNT (_stream_readable.js:975:12)
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:     at _combinedTickCallback (internal/process/next_tick.js:80:11)
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:     at process._tickCallback (internal/process/next_tick.js:104:9)
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:   name: 'StatusCodeError',
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:   statusCode: 400,
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:   message: '400 - {"data":null,"errors":["missing desired_state hash"],"pagination":{}}',
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:   error:
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:    { data: null,
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:      errors: [ 'missing desired_state hash' ],
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:      pagination: {} },
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:   options:
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:    { baseUrl: 'https://api.wink.com',
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:      strictSSL: true,
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:      json: true,
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:      method: 'PUT',
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:      uri: '/cameras/252538/desired_state',
Jun 19 12:44:41 raspberrypi3 homebridge[24450]:      body: { desired_state: undefined, nonce: 1000010 },