- 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.
15 lines
267 B
JSON
15 lines
267 B
JSON
{
|
|
"name": "abissinskiy",
|
|
"module": "index.ts",
|
|
"type": "module",
|
|
"private": true,
|
|
"devDependencies": {
|
|
"@types/bun": "latest"
|
|
},
|
|
"peerDependencies": {
|
|
"typescript": "^5"
|
|
},
|
|
"dependencies": {
|
|
"home-assistant-js-websocket": "^9.5.0"
|
|
}
|
|
}
|