Skip to content

Commit

Permalink
Add support for Caseta occupancy sensors
Browse files Browse the repository at this point in the history
This change adds support for Caseta occupancy sensors in Homekit. It
adds two new major classes. The OccupancySensorRouter singleton is what
subscribes to occupancy updates with the bridge. Individual sensors then
register callbacks with the router to get directed updates.

This also includes minor updates to adopt lutron-leap-js v2.0.0, which
renames some classes and adds a helper method for button subscription.
  • Loading branch information
thenewwazoo committed Feb 12, 2022
1 parent c101d68 commit cce0ce5
Show file tree
Hide file tree
Showing 9 changed files with 6,539 additions and 2,671 deletions.
12 changes: 12 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
"roots": [
"<rootDir>/src"
],
"testMatch": [
"**/__tests__/**/*.+(ts|tsx|js)",
"**/?(*.)+(spec|test).+(ts|tsx|js)"
],
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
},
}
Loading

0 comments on commit cce0ce5

Please sign in to comment.