timcharper / homebridge-vivint

Integrates Vivint security system with Apple Home
Other
33 stars 34 forks source link

Add support for arming / disarming security panel #1

Open timcharper opened 5 years ago

jlhunter2008 commented 5 years ago

I would definitely like to see this feature. Great work so far. I have waited a long time for a plugin like this to come along. If you need testers I’d love to help.

jeffwhalen commented 5 years ago

Any progress on adding this feature?

mceres commented 5 years ago

there is a pull request with code for arming and disarming.. not sure what, how or who needs to make changes or update the package.. i just updated the files manually in my plugin

rob74lee commented 5 years ago

@mceres what steps did you take to update your files with the pull request additions?

mceres commented 5 years ago

@rob74lee you can get the updated files from here https://github.com/daymondm/homebridge-vivint.git

basically you need to stop homebridge and the updated the 2 files that have been updated.

easiest way to do this is to copy them

vivint@homebridge-vivint:$ sudo cp /source/device_set.js /usr/local/lib/node_modules/homebridge-vivint/lib/device_set.js vivint@homebridge-vivint:$ sudo cp /source/vivint_api.js /usr/local/lib/node_modules/homebridge-vivint/lib/vivint_api.js

rob74lee commented 5 years ago

@mceres Thanks! Works perfectly!

dspille commented 5 years ago

Works very well. Thank you!

tjdodson commented 4 years ago

/usr/local/lib/node_modules/homebridge-vivint/lib/vivint_api.js

@rob74lee you can get the updated files from here https://github.com/daymondm/homebridge-vivint.git

basically you need to stop homebridge and the updated the 2 files that have been updated.

easiest way to do this is to copy them

vivint@homebridge-vivint:$ sudo cp /source/device_set.js /usr/local/lib/node_modules/homebridge-vivint/lib/device_set.js vivint@homebridge-vivint:$ sudo cp /source/vivint_api.js /usr/local/lib/node_modules/homebridge-vivint/lib/vivint_api.js

Does this still work? After doing this there was a missing function in index.js and then I copied the index.js like above. Can I not just clone the main repo to /usr/lib/node_modules?

dspille commented 4 years ago

This no longer works for me.

tjdodson commented 4 years ago

Dang. Is there anyway to update the npmjs plugin using this repo? Or a way to install the plugin using the repo rather than using

npm i homebridge-vivint

?

I am thinking I am will tinker with this: https://stackoverflow.com/questions/17509669/how-to-install-an-npm-package-from-github-directly

Has anyone tried installing using

npm install git+https://github.com/timcharper/homebridge-vivint.git

and does anyone have any advice or caution to give before I go down this road?