set_light
Control Tuya and Smart Life bulbs locally: set brightness, color, or color temperature, or apply scene presets to a room, zone, or single light, with an optional delay.
Instructions
Apply a preset/scene, or set brightness (1-100) with temp (0 warm-100 cool) OR rgb.
With a scene preset, target narrows it: target='bed', preset='focus' applies only focus's bed setting. Use either preset or manual values, not both.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "set_light"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rgb | No | ||
| temp | No | ||
| preset | No | ||
| target | No | all | |
| brightness | No | ||
| delay_seconds | No |