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.
This commit is contained in:
jango-blockchained
2024-12-16 13:45:39 +01:00
parent b55a75df54
commit c7dd825104
3 changed files with 389 additions and 93 deletions

View File

@@ -4,6 +4,7 @@ import { DomainSchema } from '../schemas.js';
// Define types for tool and server
interface Tool {
name: string;
description: string;
execute: (params: any) => Promise<any>;
parameters: z.ZodType<any>;
}