π¦ ClawHub
Wiz Smart Light Control
by @canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.
TERMINAL
clawhub install wiz-light-controlπ About This Skill
name: wiz-light-control description: Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi. author: "@canbirlik" emoji: "π‘" platforms: - darwin - linux - win32 dependencies: python: - pywizlight
Wiz Light Control Skill
This skill allows the agent to control physical Wiz smart lights on the local network.
β οΈ IMPORTANT CONFIGURATION:
The IP address 192.168.1.109 used in examples is a placeholder. You MUST find the actual Local IP address of the Wiz Bulb on the network before running commands.
π οΈ Installation & Setup (READ FIRST)
Before running the script for the first time, you MUST set up the Python environment.
The agent should verify if venv exists. If not, run this setup command block automatically:
# 1. Create Virtual Environment and Install Dependencies
python3 -m venv venv && source venv/bin/activate && pip install -r requirements.txt
Tools & Usage
wiz.py
The main script to interact with the light.
Arguments:
--ip: The IP address of the bulb (Required).--action: The command to execute. Options: on, off, color, disco.--r, --g, --b: Red, Green, Blue values (0-255) (Used for color action).--duration: Duration in seconds (Used for disco action).Example Prompts:
Execution Examples:
```bash