Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💡 Smart Bulb Automator

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.


🚀 Features

  • 🤖 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

🛠️ Tech Stack

  • TypeScript
  • Node.js
  • UDP Networking
  • Cursor MCP Server (Agent framework)

📂 Project Structure

Smart-Bulb-Automator/
│
├── src/
│   ├── service.ts
│   └── index.ts         # Entry point
│
├──.gitignore
├── pnpm-lock.yaml
├── package.json
├──README.md
└── tsconfig.json

⚙️ How It Works

  • 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)

🔧 Available Functionalities

1. Turn Bulb ON

Command: "Turn on the light"

2. Turn Bulb OFF

Command: "Turn off the light"

3. Change Bulb Color

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)

▶️ Running the Project

npm install
npm run start

💡 Example Usage

>> Turn on the bulb
>> Set color to blue with low brightness
>> Turn off the light

📌 Future Improvements

  • Voice-based control
  • Mobile app integration
  • Multiple device support
  • Scene presets (reading, night mode, etc.)
  • Home automation system integration

🤝 Contributing

Contributions are welcome!


📄 License

MIT License

About

An AI-powered smart bulb controller using TypeScript, UDP networking, and an MCP agent for natural language-based automation.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages