An AI-powered smart bulb automation system that allows users to control a UDP-based smart bulb using natural language commands through an intelligent agent.
- 🤖 AI agent-based control via chat
- 💡 Turn bulb ON/OFF using simple commands
- 🎨 Change bulb color using RGB values
- 🔅 Control brightness using dimming parameter
- 🌐 UDP-based communication with smart bulb server
- ⚡ Real-time device control
- TypeScript
- Node.js
- UDP Networking
- Cursor MCP Server (Agent framework)
Smart-Bulb-Automator/
│
├── src/
│ ├── service.ts
│ └── index.ts # Entry point
│
├──.gitignore
├── pnpm-lock.yaml
├── package.json
├──README.md
└── tsconfig.json
-
The smart bulb is connected to a server using the UDP protocol
-
Each bulb is identified via its IP address
-
A custom MCP server acts as an intelligent agent
-
The agent interprets user commands and triggers appropriate actions:
- Turn bulb ON
- Turn bulb OFF
- Change bulb color (RGB + dimming)
Command: "Turn on the light"Command: "Turn off the light"Command: "Set color to red=255, green=100, blue=50 with dimming=70"Parameters:
red(0–255)green(0–255)blue(0–255)dimming(0–100)
npm install
npm run start>> Turn on the bulb
>> Set color to blue with low brightness
>> Turn off the light- Voice-based control
- Mobile app integration
- Multiple device support
- Scene presets (reading, night mode, etc.)
- Home automation system integration
Contributions are welcome!
MIT License