feat: initialize project with Home Assistant integration

- Added index.ts for connecting to Home Assistant and subscribing to entities.
- Implemented function to calculate sleep time from sensor data.
- Created package.json with dependencies for TypeScript and Home Assistant WebSocket.
- Configured tsconfig.json for TypeScript with strict settings and ESNext features.
This commit is contained in:
Seth 2025-05-13 14:18:56 -04:00
parent 8f79c438b5
commit b73dfc84dd
6 changed files with 3926 additions and 0 deletions

15
package.json Normal file
View file

@ -0,0 +1,15 @@
{
"name": "abissinskiy",
"module": "index.ts",
"type": "module",
"private": true,
"devDependencies": {
"@types/bun": "latest"
},
"peerDependencies": {
"typescript": "^5"
},
"dependencies": {
"home-assistant-js-websocket": "^9.5.0"
}
}