Fronius

From HybridAIOne/hybridclaw · View interactive version

Fronius is an AI agent skill from the GitHub repository HybridAIOne/hybridclaw. Read Fronius photovoltaic inverter data through the local Fronius Solar API V1 or Solar.web Query API cloud, without exposing access-key material.

How to use this skill

Skill file

Fronius

Use this skill for operator-approved Fronius photovoltaic monitoring: local

inverter reads through Fronius Solar API V1 and cloud reads through Solar.web

Query API. This v1 skill covers read-only monitoring for inverters, meters,

storage, OhmPilot, and Solar.web account data.

Core Contract

the source of truth for Fronius URLs, Solar.web headers, endpoint bounds, and

response-shape metadata.

local-summary command. It performs the bounded local Solar API reads and

returns normalized live production, consumption, grid, battery, meter, and

storage fields.

emitted httpRequest object unchanged to the built-in http_request tool.

reachability checks.

passthrough and command-line secret values.

--local-host http://<fronius-ip> when the operator provides it, or use the

configured FRONIUS_LOCAL_HOST environment value.

HTTP headers per Fronius' interface documentation. The helper emits those as

secretHeaders so the gateway injects them server-side.

report the rate-limit condition and any retry-after guidance.

permission as separate failure modes.

Setup

Local inverter path:

hybridclaw env set FRONIUS_LOCAL_HOST "http://<fronius-ip>"

The inverter LAN URL is configuration, not credential material. It can also be

passed per request with --local-host http://<fronius-ip> or exported as

FRONIUS_LOCAL_HOST.

Solar.web cloud path setup order:

  1. Browser admin: open the active HybridClaw admin URL ending in /admin/secrets and set

FRONIUS_SOLARWEB_ACCESS_KEY_ID and

FRONIUS_SOLARWEB_ACCESS_KEY_VALUE.

  1. Browser /chat or TUI fallback:

/secret set FRONIUS_SOLARWEB_ACCESS_KEY_ID "<access-key-id>" and

/secret set FRONIUS_SOLARWEB_ACCESS_KEY_VALUE "<access-key-value>".

  1. Local console fallback:
hybridclaw secret set FRONIUS_SOLARWEB_ACCESS_KEY_ID "<access-key-id>"
hybridclaw secret set FRONIUS_SOLARWEB_ACCESS_KEY_VALUE "<access-key-value>"

Solar.web Query API access is requested from Solar.web. Create and store the

AccessKeyId and AccessKeyValue in HybridClaw secrets as soon as Solar.web shows

them. Solar.web Premium or a paid Query API package may be required for some

system, historical, and aggregate endpoints.

The cloud helper emits:

{
  "secretHeaders": [
    { "name": "AccessKeyId", "secretName": "FRONIUS_SOLARWEB_ACCESS_KEY_ID", "prefix": "none" },
    { "name": "AccessKeyValue", "secretName": "FRONIUS_SOLARWEB_ACCESS_KEY_VALUE", "prefix": "none" }
  ]
}

The gateway injects the real access-key values server-side. Model-visible

helper output, prose, logs, and tests should contain only SecretRef names.

Command Contract

Show helper usage:

node skills/fronius/fronius.cjs --help

Local reads:

node skills/fronius/fronius.cjs --format json --local-host http://<fronius-ip> local-summary
node skills/fronius/fronius.cjs --format json http-request local-api-version
node skills/fronius/fronius.cjs --format json http-request local-health
node skills/fronius/fronius.cjs --format json http-request local-power-flow
node skills/fronius/fronius.cjs --format json http-request local-inverter-realtime --scope System
node skills/fronius/fronius.cjs --format json http-request local-meter-realtime --scope System
node skills/fronius/fronius.cjs --format json http-request local-storage-realtime --scope System
node skills/fronius/fronius.cjs --format json http-request local-ohmpilot-realtime --scope System
node skills/fronius/fronius.cjs --format json http-request local-archive \
  --start 2026-05-26 \
  --end 2026-05-27 \
  --channel EnergyReal_WAC_Sum_Produced
node skills/fronius/fronius.cjs --format json http-request local-logger-info
node skills/fronius/fronius.cjs --format json http-request local-active-device-info --device-class Inverter

Cloud reads:

node skills/fronius/fronius.cjs --format json http-request cloud-pvsystems
node skills/fronius/fronius.cjs --format json http-request cloud-auth-check
node skills/fronius/fronius.cjs --format json http-request cloud-pvsystem --pv-system <id>
node skills/fronius/fronius.cjs --format json http-request cloud-flowdata --pv-system <id>
node skills/fronius/fronius.cjs --format json http-request cloud-aggrdata \
  --pv-system <id> \
  --period day \
  --from 2026-05-26
node skills/fronius/fronius.cjs --format json http-request cloud-histdata \
  --pv-system <id> \
  --from 2026-05-20 \
  --to 2026-05-27 \
  --channel EnergyReal_WAC_Sum_Produced
node skills/fronius/fronius.cjs --format json http-request cloud-messages --pv-system <id> --since 2026-05-20
node skills/fronius/fronius.cjs --format json http-request cloud-devices-list --pv-system <id>
node skills/fronius/fronius.cjs --format json http-request cloud-errors --pv-system <id> --since 2026-05-20

Run one gateway-proxied smoke request:

node skills/fronius/fronius.cjs --live --format json http-request cloud-flowdata --pv-system <id>

Health Checks

version endpoint.

systems list endpoint. A 401 or 403 from Solar.web means the upstream API

rejected the injected key pair or the key lacks access. Gateway errors that

name FRONIUS_SOLARWEB_ACCESS_KEY_ID or

FRONIUS_SOLARWEB_ACCESS_KEY_VALUE indicate missing, unavailable, or blocked

SecretRefs. A 429 means the account hit Solar.web rate limits.

Error Interpretation

network-policy denial, report the exact gateway/local failure and ask for the

actual inverter host when no operator-supplied host is available.

inverter LAN base URL or a configured environment value.

FRONIUS_SOLARWEB_ACCESS_KEY_VALUE, ask the operator to set or unblock that

specific secret.

rejected or lacks access.

one next action for each.

Result Handling

normalized metrics, meter, and storage objects.

consumption, grid exchange, battery power, and self-consumption ratio.

production from Body.Data.Site.P_PV in watts, current load from

Body.Data.Site.P_Load, grid exchange from Body.Data.Site.P_Grid, and

battery power from Body.Data.Site.P_Akku when present.

current meter power from Body.Data.<meterId>.PowerReal_P_Sum.

of charge from Body.Data.<storageId>.Controller.StateOfCharge_Relative and

prefer local-power-flow P_Akku for live battery power.

read current AC inverter power from Body.Data.PAC.Values in watts and sum

the device values when a plant total is needed. For a single device, use

`local-inverter-realtime --scope Device --device-id <id> --data-collection

CommonInverterData and read Body.Data.PAC.Value` in watts.

and connected or rated PV capacity. Interpret PVPower from

GetInverterInfo.cgi as connected/rated PV capacity in watts.

rollups. Helper output includes a responseShape describing stable rollup

fields such as produced energy, consumed energy, period, and channel values.

inverter offline, battery fault, export curtailment, meter failure, or

repeated communication errors.

When the operator explicitly asks for local LAN data, keep the answer scoped

to the local path unless the operator asks for cloud fallback.

Policy Notes

Local inverter access requires gateway host policy for the selected LAN host

and Fronius /solar_api/ paths. Cloud access requires policy for

api.solarweb.com. Keep mutating endpoints out of scope for v1 even if an API

reference mentions installer-only or configuration surfaces.

References:

Fronius Solar API V1,

Solar.web Query API, and

Solar.web Query API overview.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.