Connect a system
connect_siteLink a solar or battery system to a user's Aivy account by vendor and serial or system ID, returning connected site IDs or an OAuth authorization URL to approve access.
Instructions
CHANGES THE ACCOUNT (control scope). Confirm with the user before calling.
Link the user's system to their Aivy account. Serial-number vendors (Sungrow and FoxESS need sn + nmi, Sigenergy needs system_id, most others sn) return connected site ids. OAuth vendors (AlphaESS, SolaX) return an authorize_url: give it to the user to open in a browser and approve; the site then appears in list_sites within a minute. Demo sites need no connecting.
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": {
"vendor": "<vendor>"
},
"name": "connect_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sn | No | Device / inverter serial number, for serial-number vendors. | |
| nmi | No | National Metering Identifier, from the electricity bill; Sungrow and FoxESS need it with sn. | |
| region | No | AlphaESS portal region. | AU |
| vendor | Yes | Vendor id from list_vendors, e.g. sungrow. | |
| system_id | No | Sigenergy system id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |