Skip to content

Commit

Permalink
Only subscribe to updates for entities we're interested in
Browse files Browse the repository at this point in the history
This uses a filter argument to the websocket subscription function to
only subscribe to entities that are currently being displayed on the
device screen.

The Home Assistant API for this is not currently implemented in the
client library so we needed to patch the library slightly.

For more details about this API see:
home-assistant/home-assistant-js-websocket#511
  • Loading branch information
tlusk committed Feb 10, 2025
1 parent 51ab1e4 commit 94edc62
Show file tree
Hide file tree
Showing 5 changed files with 367 additions and 12 deletions.
255 changes: 255 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"type-check": "tsc && vue-tsc -p src/view/tsconfig.json",
"lint": "eslint . --fix",
"format": "prettier . --write",
"ci-lint": "eslint . && prettier -c . && tsc && vue-tsc -p src/view/tsconfig.json"
"ci-lint": "eslint . && prettier -c . && tsc && vue-tsc -p src/view/tsconfig.json",
"postinstall": "patch-package"
},
"dependencies": {
"@elgato/streamdeck": "^1.3.0",
Expand Down Expand Up @@ -57,6 +58,7 @@
"eslint-plugin-vue": "^9.32.0",
"fast-glob": "^3.3.3",
"jiti": "^2.4.2",
"patch-package": "^8.0.0",
"prettier": "^3.4.2",
"rollup-plugin-cleandir": "^3.0.0",
"rollup-plugin-copy": "^3.5.0",
Expand Down
Loading

0 comments on commit 94edc62

Please sign in to comment.