Person detection via direct MQTT instead of HA entities

- Electron main process subscribes to Frigate's MQTT topics
  (frigate/<camera>/person and frigate/events) directly via mqtt.js,
  bypassing the broken HA MQTT integration
- Watched cameras: Front_Porch, FPE, Porch_Downstairs, Driveway_door
- On person detection, exits photo-frame idle and shows full-screen
  camera feed for 30 seconds
- Removed HA entity-based person detection code (entityToCameraName,
  personDetectionEntities config dependency)
- Deleted unused useFrigateDetection HTTP polling hook (superseded)
This commit is contained in:
root
2026-04-16 21:46:28 -05:00
parent 55dd117520
commit 3b38a78295
8 changed files with 8301 additions and 43 deletions

View File

@@ -18,26 +18,27 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"home-assistant-js-websocket": "^9.4.0",
"zustand": "^4.5.0",
"googleapis": "^131.0.0",
"@tensorflow/tfjs": "^4.17.0",
"@tensorflow-models/coco-ssd": "^2.2.3",
"@tensorflow/tfjs": "^4.17.0",
"date-fns": "^3.3.1",
"electron-store": "^8.1.0",
"date-fns": "^3.3.1"
"googleapis": "^131.0.0",
"home-assistant-js-websocket": "^9.4.0",
"mqtt": "^5.15.1",
"zustand": "^4.5.0"
},
"devDependencies": {
"@types/node": "^20.11.0",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.17",
"concurrently": "^8.2.2",
"electron": "^28.2.0",
"electron-builder": "^24.9.1",
"eslint": "^8.56.0",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"eslint-plugin-react-hooks": "^4.6.0",
"postcss": "^8.4.33",
"react": "^18.2.0",