{"id":21174643,"url":"https://github.com/llm-agents-php/agent-smart-home-control","last_synced_at":"2026-01-05T03:05:07.389Z","repository":{"id":255441918,"uuid":"851668961","full_name":"llm-agents-php/agent-smart-home-control","owner":"llm-agents-php","description":"Simple agent to control smart home devices","archived":false,"fork":false,"pushed_at":"2024-09-07T08:44:56.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-30T22:49:50.155Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/llm-agents-php.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-03T14:08:44.000Z","updated_at":"2024-09-07T08:44:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"952ada9d-b69c-4b5f-84f2-6d5a50414ce8","html_url":"https://github.com/llm-agents-php/agent-smart-home-control","commit_stats":null,"previous_names":["llm-agents-php/agent-smart-home-control"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/llm-agents-php/agent-smart-home-control","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llm-agents-php%2Fagent-smart-home-control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llm-agents-php%2Fagent-smart-home-control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llm-agents-php%2Fagent-smart-home-control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llm-agents-php%2Fagent-smart-home-control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/llm-agents-php","download_url":"https://codeload.github.com/llm-agents-php/agent-smart-home-control/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llm-agents-php%2Fagent-smart-home-control/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264503949,"owners_count":23618762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T16:55:30.711Z","updated_at":"2026-01-05T03:05:02.359Z","avatar_url":"https://github.com/llm-agents-php.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smart Home control system with LLM Agents\n\n[![PHP](https://img.shields.io/packagist/php-v/llm-agents/agent-smart-home-control.svg?style=flat-square)](https://packagist.org/packages/llm-agents/agent-smart-home-control)\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/llm-agents/agent-smart-home-control.svg?style=flat-square)](https://packagist.org/packages/llm-agents/agent-smart-home-control)\n[![Total Downloads](https://img.shields.io/packagist/dt/llm-agents/agent-smart-home-control.svg?style=flat-square)](https://packagist.org/packages/llm-agents/agent-smart-home-control)\n\nThis nifty tool lets you boss around your smart home devices using plain old English. No more fumbling with apps or\nremembering device names!\n\n## 🚀 What's This All About?\n\nImagine telling your house, \"I'm cold\" and having it crank up the heat. Or saying, \"Movie night!\" and watching your\nliving room transform into a mini-cinema. That's what we're doing here! We've got an AI agent that understands what you\nwant and makes it happen.\n\n\u003e You can read an article about Smart Home control system with LLM Agents\n\u003e on [Medium](https://butschster.medium.com/a-php-devs-dream-an-ai-home-that-really-gets-you-dd97ae2ca0b0).\n\n![image](https://github.com/user-attachments/assets/405275f8-a180-4134-806d-bc7287e779dc)\n\n## 🛠 What You'll Need\n\n- PHP 8.3 or later (we're using some fancy new features!)\n- An LLM service (like OpenAI's GPT-4)\n\n## Let's get started! 🚀\n\n### Installation\n\nFirst things first, let's get this package installed:\n\n```bash\ncomposer require llm-agents/agent-smart-home-control\n```\n\n### Setup in Spiral Framework\n\nTo get the Site Status Checker Agent up and running in your Spiral Framework project, you need to register its\nbootloader.\n\n**Here's how:**\n\n1. Open up your `app/src/Application/Kernel.php` file.\n2. Add the bootloader like this:\n\n```php\npublic function defineBootloaders(): array\n{\n    return [\n        // ... other bootloaders ...\n        \\LLM\\Agents\\Agent\\SmartHomeControl\\Integrations\\Spiral\\SmartHomeControlBootloader::class,\n    ];\n}\n```\n\nAnd that's it! Your Spiral app is now ready to use the agent.\n\n## 🏗 Class Diagram\n\nHere's a quick look at how everything fits together:\n\n```mermaid\nclassDiagram\n    class SmartHomeControlAgent {\n        +execute(prompt: string): string\n    }\n    class SmartHomeSystem {\n        +getDevices(): array\n        +controlDevice(deviceId: string, action: string): bool\n    }\n    class Device {\n        +id: string\n        +name: string\n        +type: string\n        +room: string\n        +getState(): array\n        +setState(state: array): bool\n    }\n    class Light {\n        +turnOn()\n        +turnOff()\n        +setBrightness(level: int)\n    }\n    class Thermostat {\n        +setTemperature(temp: float)\n    }\n    class TV {\n        +turnOn()\n        +turnOff()\n        +setChannel(channel: string)\n    }\n    SmartHomeControlAgent --\u003e SmartHomeSystem: uses\n    SmartHomeSystem --\u003e Device: manages\n    Device \u003c|-- Light\n    Device \u003c|-- Thermostat\n    Device \u003c|-- TV\n```\n\n## Want to help out? 🤝\n\nWe love contributions! If you've got ideas to make this agent even cooler, here's how you can chip in:\n\n1. Fork the repo\n2. Make your changes\n3. Create a new Pull Request\n\nJust make sure your code is clean, well-commented, and follows PSR-12 coding standards.\n\n## License 📄\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n\nThat's all, folks! If you've got any questions or run into any trouble, don't hesitate to open an issue.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllm-agents-php%2Fagent-smart-home-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fllm-agents-php%2Fagent-smart-home-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllm-agents-php%2Fagent-smart-home-control/lists"}