create_alert
Set up threshold alerts for solar or battery metrics such as SOC, import/export price, and temperature, using above/below rules and inbox or email notifications to monitor system conditions.
Instructions
Set up a threshold alert: metric soc | import_price | export_price | temperature, operator above | below. Every firing goes to the app inbox (and the phone when the app is installed); email=True also mails the account's verified address (whoami.email_alerts says whether that works). Quiet for cooldown_minutes after each firing (min 15). An alert only tells the person something; it never changes what the battery does. Confirm the rule with the user before creating it.
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": {
"site_id": "<site_id>",
"name": "<name>",
"metric": "<metric>",
"operator": "<operator>",
"threshold": "<threshold>"
},
"name": "create_alert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| No | |||
| locale | No | en | |
| metric | Yes | ||
| message | No | ||
| site_id | Yes | ||
| operator | Yes | ||
| threshold | Yes | ||
| active_end | No | 00:00 | |
| active_start | No | 00:00 | |
| cooldown_minutes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |