balansse / homebridge-vivint

Integrates Vivint security system with Apple Home
Other
45 stars 15 forks source link

login window loads, hangs, then does nothing #79

Closed skyleranelson closed 1 year ago

skyleranelson commented 1 year ago

When linking my account it acts like it's linking but then just stops and goes back to the login screen. I've tried just about everything from adding new bridges, reseting Vivint account login, rebooting, wifi on/off ... any other suggestions?

CleanShot 2022-08-19 at 17 05 31@2x CleanShot 2022-08-19 at 17 05 19@2x
jgrimard commented 1 year ago

Are there any errors in the logs? I just tried deleting my refresh token and logging in again and it worked fine for me.

skyleranelson commented 1 year ago

Are there any errors in the logs? I just tried deleting my refresh token and logging in again and it worked fine for me.

Nothing. It's like it doesn't even see anything. I'm wondering if it's a network issue ... but all the other plugins are working.

Edit: adding some logs after clicking around = /19/2022, 5:29:23 PMhoobs stopping 8/19/2022, 5:29:28 PMHOOBS starting 8/19/2022, 5:29:36 PMHOOBSLoaded plugin '@balansse/homebridge-vivint' 8/19/2022, 5:29:36 PMHOOBSLoaded plugin 'homebridge-carrier-infinity' 8/19/2022, 5:29:36 PMHOOBSLoaded plugin 'homebridge-nest' 8/19/2022, 5:29:36 PMHOOBSLoading 2 platforms... 8/19/2022, 5:29:36 PMHOOBSNestFetching Nest devices. 8/19/2022, 5:29:36 PMHOOBSBridge is running on port 51826. 8/19/2022, 5:29:42 PMHOOBSNestiniting protect "Main Office": deviceId: 18B430004189F8A1 structureId: 26613020-077e-11ec-a88b-1296659e164a 8/19/2022, 5:29:42 PMHOOBSNestiniting protect "My Office": deviceId: 18B43000418A024E structureId: 26613020-077e-11ec-a88b-1296659e164a

jgrimard commented 1 year ago

Oh, are you using HOOBS? It is probably a bug in HOOBS. They wrote a "sidecar" to get this Homebridge plugin working in HOOBS. I would try opening a ticket here: https://github.com/hoobs-org/sidecars/tree/main/hoobs-vivint-sidecar

skyleranelson commented 1 year ago

Ah, thanks. I'll post there ... Assuming it's the same thing as https://plugins.hoobs.org/plugin/@balansse/homebridge-vivint

A bit over my head honestly.

jgrimard commented 1 year ago

If all else fails, you could use the command line utility I wrote to retrieve your refresh token then copy and paste it into the configuration.

From here: https://github.com/balansse/homebridge-vivint About half way down the page. HOOBS Users: Unfortunately HOOBS doesn't support the Custom UI components created for Homebridge.

As a workaround, you can open a terminal in HOOBS and run the following commands, where "vivintbridge" is the name of the bridge but all lowercase and with no spaces:

cd /var/lib/hoobs/vivintbridge/node_modules/@balansse/homebridge-vivint npm run mfa

jgrimard commented 1 year ago

if npm run mfa doesn't work then locate the file named vivint_mfa_cli.js and use node vivint_mfa_cli.js to run it

skyleranelson commented 1 year ago

That would be amazing. Seems like I'm having the same issue when accessing the terminal, too. Enter login info and just spits me back to "login ...."

jgrimard commented 1 year ago

Sounds like something is really wrong with HOOBS if you can't get into the terminal.

skyleranelson commented 1 year ago

Not sure what the hell is going on. https://file.letsalloy.com/1b74pI

skyleranelson commented 1 year ago

might have to flash HOOBS and start over.

jgrimard commented 1 year ago

according to: https://support.hoobs.org/docs/60e6310b6c19a6a5ca8f5c5f The terminal login is: The login is hoobs And the default password is hoobsadmin

skyleranelson commented 1 year ago

Sheesh. That worked! Got the refresh key. Running and added to HomeKit. No devices visible... still looking around.

jgrimard commented 1 year ago

Make sure you restart HOOBS.

skyleranelson commented 1 year ago

yeah. tried restarting the specific bridge and rebooting the sys. still empty so far.

jgrimard commented 1 year ago

Any errors in the logs?

skyleranelson commented 1 year ago

nah, updating everything to see if that helps.

skyleranelson commented 1 year ago

yo - Got it! Couldn't have done it without you!

jgrimard commented 1 year ago

Great! You can go ahead and close this issue.