staromeste / homebridge-http-advanced-accessory

Supports all devices on HomeBridge Platform / Bridges devices to http
Apache License 2.0
65 stars 22 forks source link

Unable to start new homebridge 1.3.0 #30

Closed Snooppy78 closed 3 years ago

Snooppy78 commented 3 years ago

Hi, Encounter this issue with this plug in. Homebridge unable to start. Remove the accessory and homebridge is ok.

Error are as below. Not sure if anyone encounter this. Error happen after upgrade to new homebridge.

Feb 22 14:31:31 homebridge homebridge[6305]: [2/22/2021, 2:31:31 PM] [homebridge-http-advanced-accessory] This plugin generated a warning from the characteristic 'Name': characteristic was supplied illegal value: undefined! This might throw errors in the future! See https://git.io/JtMGR for more info. Feb 22 14:31:31 homebridge homebridge[6305]: [2/22/2021, 2:31:31 PM] TypeError: Cannot read property 'url' of undefined Feb 22 14:31:31 homebridge homebridge[6305]: at HttpAdvancedAccessory. (/usr/lib/node_modules/homebridge-http-advanced-accessory/index.js:218:68) Feb 22 14:31:31 homebridge homebridge[6305]: at HttpAdvancedAccessory. (/usr/lib/node_modules/homebridge-http-advanced-accessory/index.js:404:8) Feb 22 14:31:31 homebridge homebridge[6305]: at Timeout._onTimeout (/usr/lib/node_modules/homebridge-http-advanced-accessory/node_modules/polling-to-event/index.js:77:5) Feb 22 14:31:31 homebridge homebridge[6305]: at ontimeout (timers.js:436:11) Feb 22 14:31:31 homebridge homebridge[6305]: at tryOnTimeout (timers.js:300:5) Feb 22 14:31:31 homebridge homebridge[6305]: at listOnTimeout (timers.js:263:5) Feb 22 14:31:31 homebridge homebridge[6305]: at Timer.processTimers (timers.js:223:10) Feb 22 14:31:31 homebridge homebridge[6305]: [2/22/2021, 2:31:31 PM] [Yeelight] 0x00000000049dacbc: failed communication attempt 0 after 100ms. Feb 22 14:31:31 homebridge homebridge[6305]: [2/22/2021, 2:31:31 PM] [Broadlink RM] Living Room Air Conditioner onTemperature (28.3) Feb 22 14:31:31 homebridge homebridge[6305]: [2/22/2021, 2:31:31 PM] [Broadlink RM] Bedroom Air Conditioner onTemperature (29.8) Feb 22 14:31:31 homebridge homebridge[6305]: [2/22/2021, 2:31:31 PM] [TuyaLan] Connected to Bedroom Lamp 2 Feb 22 14:31:31 homebridge homebridge[6305]: [TuyaAccessory] Sending first query to Bedroom Lamp 2 (3.3) Feb 22 14:31:31 homebridge homebridge[6305]: [2/22/2021, 2:31:31 PM] Got SIGTERM, shutting down Homebridge...

staromeste commented 3 years ago

It looks like the configuration is not complete. Can you post the config.json?

On Mon, 22 Feb 2021 at 08:31, Snooppy78 notifications@github.com wrote:

Hi, Encounter this issue with this plug in. Homebridge unable to start. Remove the accessory and homebridge is ok.

Error are as below. Not sure if anyone encounter this. Error happen after upgrade to new homebridge.

Feb 22 14:31:31 homebridge homebridge[6305]: [2/22/2021, 2:31:31 PM] [homebridge-http-advanced-accessory] This plugin generated a warning from the characteristic 'Name': characteristic was supplied illegal value: undefined! This might throw errors in the future! See https://git.io/JtMGR for more info.

Feb 22 14:31:31 homebridge homebridge[6305]: [2/22/2021, 2:31:31 PM] TypeError: Cannot read property 'url' of undefined Feb 22 14:31:31 homebridge homebridge[6305]: at HttpAdvancedAccessory. (/usr/lib/node_modules/homebridge-http-advanced-accessory/index.js:218:68) Feb 22 14:31:31 homebridge homebridge[6305]: at HttpAdvancedAccessory. (/usr/lib/node_modules/homebridge-http-advanced-accessory/index.js:404:8) Feb 22 14:31:31 homebridge homebridge[6305]: at Timeout._onTimeout (/usr/lib/node_modules/homebridge-http-advanced-accessory/node_modules/polling-to-event/index.js:77:5) Feb 22 14:31:31 homebridge homebridge[6305]: at ontimeout (timers.js:436:11) Feb 22 14:31:31 homebridge homebridge[6305]: at tryOnTimeout (timers.js:300:5) Feb 22 14:31:31 homebridge homebridge[6305]: at listOnTimeout (timers.js:263:5) Feb 22 14:31:31 homebridge homebridge[6305]: at Timer.processTimers (timers.js:223:10) Feb 22 14:31:31 homebridge homebridge[6305]: [2/22/2021, 2:31:31 PM] [Yeelight] 0x00000000049dacbc: failed communication attempt 0 after 100ms. Feb 22 14:31:31 homebridge homebridge[6305]: [2/22/2021, 2:31:31 PM] [Broadlink RM] Living Room Air Conditioner onTemperature (28.3) Feb 22 14:31:31 homebridge homebridge[6305]: [2/22/2021, 2:31:31 PM] [Broadlink RM] Bedroom Air Conditioner onTemperature (29.8) Feb 22 14:31:31 homebridge homebridge[6305]: [2/22/2021, 2:31:31 PM] [TuyaLan] Connected to Bedroom Lamp 2 Feb 22 14:31:31 homebridge homebridge[6305]: [TuyaAccessory] Sending first query to Bedroom Lamp 2 (3.3) Feb 22 14:31:31 homebridge homebridge[6305]: [2/22/2021, 2:31:31 PM] Got SIGTERM, shutting down Homebridge...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/staromeste/homebridge-http-advanced-accessory/issues/30, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBP2MM2STXBISSEMJP5NPLTAIB3TANCNFSM4X77JIUA .

Snooppy78 commented 3 years ago

I manage to resolve it by adding a getName to the API as previously it's working without the method. Thanks!

staromeste commented 3 years ago

Can you please post the solution?

On Mon, 22 Feb 2021 at 10:01, Snooppy78 notifications@github.com wrote:

I manage to resolve it by adding a getName to the API as previously it's working without the method. Thanks!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/staromeste/homebridge-http-advanced-accessory/issues/30#issuecomment-783213197, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBP2MIDMRL5LDNG2MTMTITTAIMOLANCNFSM4X77JIUA .

ravedoglv commented 2 years ago

Staromeste, are you still working on this plugin… am stuck and opened up another ticket