michbeck100/pimatic-hap

Identify doesn't works for led-light

Closed this issue · 0 comments

Xento commented

When I want to identify a led-light I get this error:

error [pimatic]: A uncaught exception occured: TypeError: Object #<Object> has no method 'then'
    at LedLightAccessory.SwitchAccessory.identify (/usr/local/pimatic-app/node_modules/pimatic-hap/accessories/switch.coffee:15:10)
    at LedLightAccessory.<anonymous> (/usr/local/pimatic-app/node_modules/pimatic-hap/accessories/switch.coffee:1:1)
    at LedLightAccessory.identify (/usr/local/pimatic-app/node_modules/pimatic-hap/accessories/base.coffee:1:1)
    at LedLightAccessory.<anonymous> (/usr/local/pimatic-app/node_modules/pimatic-hap/accessories/base.coffee:21:10)
    at LedLightAccessory.EventEmitter.emit (events.js:98:17)
    at LedLightAccessory.Accessory._identificationRequest (/usr/local/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/lib/Accessory.js:104:10)
    at LedLightAccessory.<anonymous> (/usr/local/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/lib/Accessory.js:73:14)
    at EventEmitter.emit (events.js:106:17)
    at Characteristic.setValue (/usr/local/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/lib/Characteristic.js:151:10)
    at Bridge.<anonymous> (/usr/local/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/lib/Accessory.js:537:22)
    at Array.forEach (native)
    at Bridge.Accessory._handleSetCharacteristics (/usr/local/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/lib/Accessory.js:486:8)
    at HAPServer.EventEmitter.emit (events.js:106:17)
    at HAPServer._handleCharacteristics (/usr/local/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/lib/HAPServer.js:696:10)
    at HAPServer.<anonymous> (/usr/local/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/lib/HAPServer.js:178:39)
    at IncomingMessage.EventEmitter.emit (events.js:92:17)
    at _stream_readable.js:920:16
    at process._tickCallback (node.js:415:13)
 This is most probably a bug in pimatic or in a module, please report it!