ptz0n / homebridge-verisure

 Platform plugin for Homebridge allowing to manage and control Verisure devices.
https://www.npmjs.com/package/homebridge-verisure
MIT License
66 stars 15 forks source link

Working with multiple verisure installations #17

Closed dhogborg closed 6 years ago

dhogborg commented 7 years ago

Support for multiple installations on the same Verisure account. This was instrumental for me since I have my door lock on a separate installation form my alarm system.

No special configuration, plugin will use the same door code for all installations and all doors, same as before.

This PR introduces the usage of promises in some central places to handle async tasks. While that might go against the overall style of the project with heavy usage callbacks, it's much easier to work with when looping though the installations.

ptz0n commented 6 years ago

Hi & thanks for this contribution. I'm terribly sorry about not acknowledging this earlier.

Please have a look at the dev branch where we add support for multiple installations.

Will keep this here until the new version is ready for release.

ptz0n commented 6 years ago

Closing this one, see: #27