power_light
Turn Tuya and Smart Life lights on, off, or toggle them as a group, with optional delayed scheduling handled in the background.
Instructions
Turn lights on, off, or toggle them as a group (any on -> all off, else all on).
delay_seconds > 0 schedules it instead, in a background process.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"state": "<state>"
},
"name": "power_light"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| target | No | all | |
| delay_seconds | No |