I wanted to be sure I could test this all locally, so I started by adding jest for testing (along with ts-jest for transpiling). From there, I added support for the low-voltage transformer as an extension of the smart outlet (because it's really just a multi-zone outlet).
This full PR adds support for all 3 zones to power on/off. I have tested this using my own product at home using the tests that are marked skipped right now, and captured the portions of the HTTP responses needed to add mock tests to protect future changes from breaking this functionality.
This resolves https://github.com/sajmonr/homebridge-hubspace/issues/21 and adds support for the low voltage landscape transformer here
I wanted to be sure I could test this all locally, so I started by adding jest for testing (along with ts-jest for transpiling). From there, I added support for the low-voltage transformer as an extension of the smart outlet (because it's really just a multi-zone outlet).
This full PR adds support for all 3 zones to power on/off. I have tested this using my own product at home using the tests that are marked skipped right now, and captured the portions of the HTTP responses needed to add mock tests to protect future changes from breaking this functionality.
Thanks!