Commit Graph

63 Commits

Author SHA1 Message Date
jango-blockchained
d7e5fcf764 Enhance Jest configuration and testing infrastructure
- Updated Jest configuration to support ESM and improve test coverage
- Added comprehensive test files for helpers, index, context, and HASS integration
- Configured coverage reporting and added new test scripts
- Updated Jest resolver to handle module resolution for chalk and related packages
- Introduced new test setup files for mocking and environment configuration
2025-01-30 09:04:07 +01:00
jango-blockchained
26f6e155dd Add HassEntity interface and improve type safety in device handling 2024-12-17 16:12:12 +01:00
jango-blockchained
c580f2faa8 Remove Docker-related files from dev branch 2024-12-17 15:25:40 +01:00
jango-blockchained
ada5ea4646 Enhance project structure and testing capabilities
- Updated .dockerignore to include additional logs and IDE files, improving Docker build efficiency.
- Added .eslintrc.json for TypeScript linting configuration, ensuring code quality and consistency.
- Refactored Dockerfile to streamline the build process and utilize a slimmer Node.js image.
- Introduced jest-resolver.cjs and jest.setup.js for improved Jest testing configuration and setup.
- Updated jest.config.js to support ESM and added new test patterns for better test organization.
- Enhanced TypeScript schemas to include new device types (media_player, fan, lock, vacuum, scene, script, camera) for comprehensive validation.
- Added unit tests for device schemas and Home Assistant connection, improving test coverage and reliability.
- Updated README.md with new testing instructions and device control examples, enhancing user guidance.
2024-12-17 15:07:40 +01:00
jango-blockchained
344c43a22f Add Docker support and enhance configuration management
- Introduced Dockerfile for building and running the application in a containerized environment.
- Added .dockerignore to exclude unnecessary files from the Docker context.
- Updated README.md with detailed Docker installation instructions and Node.js version management using nvm.
- Refactored environment variable handling in src/index.ts and src/config/hass.config.ts for improved configuration management.
- Enhanced TypeScript configuration to include JSON module resolution and updated exclusion patterns.
- Updated .gitignore to include additional files for better environment management.
2024-12-16 14:37:25 +01:00
jango-blockchained
c7dd825104 Update README and implement device listing tool
- Updated prerequisites in README.md to require Node.js 20.10.0 and NPM instead of Yarn.
- Changed repository clone URL to reflect the new username.
- Introduced a new 'list_devices' tool in src/index.ts to fetch and display all available Home Assistant devices, enhancing interaction capabilities.
- Updated README.md to include detailed usage instructions for the new device listing and control tools.
- Refactored environment variable names for consistency and clarity.
2024-12-16 13:45:39 +01:00
jango-blockchained
b55a75df54 Add Jest configuration files and enhance README with features and usage instructions
- Introduced `jest.config.cjs` and `jest.config.js` for Jest testing configuration.
- Expanded README.md to include detailed features, installation, configuration, and troubleshooting sections.
- Updated TypeScript configuration to target ES2022 and allow JavaScript files.
- Enhanced command handling in `src/index.ts` to support additional parameters for lights, covers, and climate entities.
- Added unit tests for command execution and Home Assistant connection validation.
- Updated schemas to include new entity types and parameters for better validation.
2024-12-16 13:30:20 +01:00
jango-blockchained
8bcc8c2b03 Enhance Home Assistant application configuration: added required HASS_HOST and HASS_TOKEN parameters, updated application name to 'hass', and refactored bootstrap logic for improved instance management. 2024-12-16 10:49:09 +01:00
jango-blockchained
a37f0a784f Refactor Home Assistant MCP server implementation: transitioned to litemcp SDK, streamlined command handling, and reduced complexity by consolidating tool requests into a single command interface. Updated server initialization and improved error handling. 2024-12-16 10:48:53 +01:00
Tevon Strand-Brown
3a11274af1 Added basic alarm control 2024-12-12 16:45:34 -08:00
Tevon Strand-Brown
e915134cde Added basic control for lights, climate, and covers 2024-12-12 16:20:58 -08:00
Tevon Strand-Brown
144fc83be7 Transitioned to office SDK 2024-12-12 10:54:57 -08:00
Tevon Strand-Brown
56c34635be initial commit 2024-12-11 22:32:08 -08:00