rainlake / homebridge-platform-myq

19 stars 6 forks source link

Fails to add accessory b/c of missing displayName #2

Closed searls closed 8 years ago

searls commented 8 years ago

I'm seeing this when I add this plugin to my config:

[MyQ Platform] Initializing platform accessory 'Garage Door Opener'...
[MyQ Platform] Initializing platform accessory ''...
/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:45
  if (!displayName) throw new Error("Accessories must be created with a non-empty displayName.");
                    ^

Error: Accessories must be created with a non-empty displayName.
    at new Accessory (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:45:27)
    at Server._createAccessory (/usr/local/lib/node_modules/homebridge/lib/server.js:375:21)
    at Server.<anonymous> (/usr/local/lib/node_modules/homebridge/lib/server.js:343:32)
    at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/once.js:15:19
    at MyQPlatform.<anonymous> (/usr/local/lib/node_modules/homebridge-platform-myq/index.js:292:13)
    at Request._callback (/usr/local/lib/node_modules/homebridge-platform-myq/index.js:170:31)
    at Request.self.callback (/usr/local/lib/node_modules/homebridge-platform-myq/node_modules/request/request.js:199:22)
    at emitTwo (events.js:87:13)
    at Request.emit (events.js:172:7)
    at Request.<anonymous> (/usr/local/lib/node_modules/homebridge-platform-myq/node_modules/request/request.js:1036:10)
    at emitOne (events.js:82:20)
    at Request.emit (events.js:169:7)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge-platform-myq/node_modules/request/request.js:963:12)
    at emitNone (events.js:72:20)
    at IncomingMessage.emit (events.js:166:7)
    at endReadableNT (_stream_readable.js:905:12)
rainlake commented 8 years ago

Did you set a name in you Myq app?

On Sunday, March 6, 2016, Justin Searls notifications@github.com wrote:

I'm seeing this when I add this plugin to my config:

[MyQ Platform] Initializing platform accessory 'Garage Door Opener'... [MyQ Platform] Initializing platform accessory ''... /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:45 if (!displayName) throw new Error("Accessories must be created with a non-empty displayName."); ^

Error: Accessories must be created with a non-empty displayName. at new Accessory (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:45:27) at Server._createAccessory (/usr/local/lib/node_modules/homebridge/lib/server.js:375:21) at Server. (/usr/local/lib/node_modules/homebridge/lib/server.js:343:32) at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/once.js:15:19 at MyQPlatform. (/usr/local/lib/node_modules/homebridge-platform-myq/index.js:292:13) at Request._callback (/usr/local/lib/node_modules/homebridge-platform-myq/index.js:170:31) at Request.self.callback (/usr/local/lib/node_modules/homebridge-platform-myq/node_modules/request/request.js:199:22) at emitTwo (events.js:87:13) at Request.emit (events.js:172:7) at Request. (/usr/local/lib/node_modules/homebridge-platform-myq/node_modules/request/request.js:1036:10) at emitOne (events.js:82:20) at Request.emit (events.js:169:7) at IncomingMessage. (/usr/local/lib/node_modules/homebridge-platform-myq/node_modules/request/request.js:963:12) at emitNone (events.js:72:20) at IncomingMessage.emit (events.js:166:7) at endReadableNT (_stream_readable.js:905:12)

— Reply to this email directly or view it on GitHub https://github.com/rainlake/homebridge-platform-myq/issues/2.

searls commented 8 years ago

In which app? Their iOS app? No

On Mar 6, 2016, at 4:14 PM, rainlake notifications@github.com wrote:

Did you set a name in you Myq app?

On Sunday, March 6, 2016, Justin Searls notifications@github.com wrote:

I'm seeing this when I add this plugin to my config:

[MyQ Platform] Initializing platform accessory 'Garage Door Opener'... [MyQ Platform] Initializing platform accessory ''... /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:45 if (!displayName) throw new Error("Accessories must be created with a non-empty displayName."); ^

Error: Accessories must be created with a non-empty displayName. at new Accessory (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:45:27) at Server._createAccessory (/usr/local/lib/node_modules/homebridge/lib/server.js:375:21) at Server. (/usr/local/lib/node_modules/homebridge/lib/server.js:343:32) at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/once.js:15:19 at MyQPlatform. (/usr/local/lib/node_modules/homebridge-platform-myq/index.js:292:13) at Request._callback (/usr/local/lib/node_modules/homebridge-platform-myq/index.js:170:31) at Request.self.callback (/usr/local/lib/node_modules/homebridge-platform-myq/node_modules/request/request.js:199:22) at emitTwo (events.js:87:13) at Request.emit (events.js:172:7) at Request. (/usr/local/lib/node_modules/homebridge-platform-myq/node_modules/request/request.js:1036:10) at emitOne (events.js:82:20) at Request.emit (events.js:169:7) at IncomingMessage. (/usr/local/lib/node_modules/homebridge-platform-myq/node_modules/request/request.js:963:12) at emitNone (events.js:72:20) at IncomingMessage.emit (events.js:166:7) at endReadableNT (_stream_readable.js:905:12)

— Reply to this email directly or view it on GitHub https://github.com/rainlake/homebridge-platform-myq/issues/2.

— Reply to this email directly or view it on GitHub.

rainlake commented 8 years ago

Yes. The iOS app. Please set a name in iOS app first. This plugin does not support a device without name currently.

On Sunday, March 6, 2016, Justin Searls notifications@github.com wrote:

In which app? Their iOS app? No

On Mar 6, 2016, at 4:14 PM, rainlake <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Did you set a name in you Myq app?

On Sunday, March 6, 2016, Justin Searls <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

I'm seeing this when I add this plugin to my config:

[MyQ Platform] Initializing platform accessory 'Garage Door Opener'... [MyQ Platform] Initializing platform accessory ''...

/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:45 if (!displayName) throw new Error("Accessories must be created with a non-empty displayName."); ^

Error: Accessories must be created with a non-empty displayName. at new Accessory (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:45:27) at Server._createAccessory (/usr/local/lib/node_modules/homebridge/lib/server.js:375:21) at Server. (/usr/local/lib/node_modules/homebridge/lib/server.js:343:32) at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/once.js:15:19 at MyQPlatform. (/usr/local/lib/node_modules/homebridge-platform-myq/index.js:292:13) at Request._callback (/usr/local/lib/node_modules/homebridge-platform-myq/index.js:170:31) at Request.self.callback (/usr/local/lib/node_modules/homebridge-platform-myq/node_modules/request/request.js:199:22) at emitTwo (events.js:87:13) at Request.emit (events.js:172:7) at Request. (/usr/local/lib/node_modules/homebridge-platform-myq/node_modules/request/request.js:1036:10) at emitOne (events.js:82:20) at Request.emit (events.js:169:7) at IncomingMessage. (/usr/local/lib/node_modules/homebridge-platform-myq/node_modules/request/request.js:963:12) at emitNone (events.js:72:20) at IncomingMessage.emit (events.js:166:7) at endReadableNT (_stream_readable.js:905:12)

— Reply to this email directly or view it on GitHub https://github.com/rainlake/homebridge-platform-myq/issues/2.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/rainlake/homebridge-platform-myq/issues/2#issuecomment-193008505 .

searls commented 8 years ago

Ok thanks!

On Mar 6, 2016, at 5:36 PM, rainlake notifications@github.com wrote:

Yes. The iOS app. Please set a name in iOS app first. This plugin does not support a device without name currently.

On Sunday, March 6, 2016, Justin Searls notifications@github.com wrote:

In which app? Their iOS app? No

On Mar 6, 2016, at 4:14 PM, rainlake <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Did you set a name in you Myq app?

On Sunday, March 6, 2016, Justin Searls <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

I'm seeing this when I add this plugin to my config:

[MyQ Platform] Initializing platform accessory 'Garage Door Opener'... [MyQ Platform] Initializing platform accessory ''...

/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:45 if (!displayName) throw new Error("Accessories must be created with a non-empty displayName."); ^

Error: Accessories must be created with a non-empty displayName. at new Accessory (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:45:27) at Server._createAccessory (/usr/local/lib/node_modules/homebridge/lib/server.js:375:21) at Server. (/usr/local/lib/node_modules/homebridge/lib/server.js:343:32) at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/once.js:15:19 at MyQPlatform. (/usr/local/lib/node_modules/homebridge-platform-myq/index.js:292:13) at Request._callback (/usr/local/lib/node_modules/homebridge-platform-myq/index.js:170:31) at Request.self.callback (/usr/local/lib/node_modules/homebridge-platform-myq/node_modules/request/request.js:199:22) at emitTwo (events.js:87:13) at Request.emit (events.js:172:7) at Request. (/usr/local/lib/node_modules/homebridge-platform-myq/node_modules/request/request.js:1036:10) at emitOne (events.js:82:20) at Request.emit (events.js:169:7) at IncomingMessage. (/usr/local/lib/node_modules/homebridge-platform-myq/node_modules/request/request.js:963:12) at emitNone (events.js:72:20) at IncomingMessage.emit (events.js:166:7) at endReadableNT (_stream_readable.js:905:12)

— Reply to this email directly or view it on GitHub https://github.com/rainlake/homebridge-platform-myq/issues/2.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/rainlake/homebridge-platform-myq/issues/2#issuecomment-193008505 .

— Reply to this email directly or view it on GitHub.