set_device_on_off
Turn a Growatt solar device on or off remotely using its serial number and type, with a boolean flag for the desired state.
Instructions
Turn a device on or off. Changes state on Growatt's side.
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": {
"device_sn": "<device_sn>",
"device_type": "<device_type>",
"turn_on": "<turn_on>"
},
"name": "set_device_on_off"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| turn_on | Yes | True to turn on, False to shut down. | |
| device_sn | Yes | Device serial number. | |
| device_type | Yes | Device type such as "min", "sph", "spa", "max", "inv", "wit", "tlx". get_devices returns it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |