homebridge-airmega icon indicating copy to clipboard operation
homebridge-airmega copied to clipboard

Problem with AirMega Plugin: Continuous Syntax Errors

Open elevenI9 opened this issue 5 years ago • 2 comments

I've attempted to install the AirMega Homebridge plug-in maybe 15 times at this point over the course of two days; even going so far as to once re-install the entire Raspberry Pi OS I have it running on just to tidy it up in hopes it would then work.... but no luck.

I keep running into this when HomeBridge attempts to load the plugin:

[TAILING] Tailing last 15 lines for [homebridge] process (change the value with --lines option)

/home/pi/.pm2/logs/homebridge-error.log last 15 lines:

0|homebrid | SyntaxError: Invalid regular expression: /(?<=state=)(.*?)$/: Invalid group

0|homebrid | at Authenticator. (/usr/local/lib/node_modules/homebridge-airmega/dist/lib/Authenticator.js:55:25)

0|homebrid | at Generator.next ()

0|homebrid | at fulfilled (/usr/local/lib/node_modules/homebridge-airmega/dist/lib/Authenticator.js:4:58)

0|homebrid | at

Does anyone have an idea how I can correct this? Would be much much appreciated, at my wit's end here

elevenI9 avatar May 02 '19 20:05 elevenI9

Are you still receiving this error? If so, please enable debug logging by adding "debug": true to your JSON config and paste the output here. That will help provide more information to see what is going on. Thanks!

aschzero avatar Jun 22 '19 07:06 aschzero

I saw a similar error also. I can reproduce it every time I start up homebridge. I had two guesses, the first was my account was using an email instead of an account number. I changed that but still no luck (same error).

The other thought I have my account has two AirMega devices associated with it (400s and 300s), maybe that's throwing off the parsing. Let me know what I can do to help provide more information.

bird99 avatar Nov 04 '19 22:11 bird99