toggle_switch
Turn a FRITZ!DECT smart plug on or off via its Actor Identification Number. Set the desired state to true for on, false for off.
Instructions
Turn a FRITZ!DECT smart plug on or off
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": {
"ain": "<ain>",
"state": "<state>"
},
"name": "toggle_switch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ain | Yes | Actor Identification Number of the switch | |
| state | Yes | true = on, false = off |