📝 Document reverse-engineered energy.comwatt.com API #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "docs/api-endpoints"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
docs/energy.comwatt.com/(9 files + README) with field notes on the Comwatt API, reconstructed from the SPA bundle and live calls — there is no public OpenAPI/Swagger.time-series,site-time-series,top-consumption) that replaces the old*-time-agoendpoints currently wrapped incomwatt_client/client.py(two of them now return 404 server-side).wss://frontage.energy.comwatt.com/ws, topic/topic/sites/{siteUid}/capacityChanged) and explains why it cannot replace polling for measurement values.Findings relevant to open work
GET /api/aggregations/site-time-seriesreturns 10 site-level series in one call (productions, consumptions, injections, withdrawals, charges, discharges + the four self-* rates).?id=A&id=Bontime-seriesis accepted but returns the sum, not a per-device breakdown — there is no true bulk-per-device endpoint. Seeaggregations.mdandquick-wins-for-the-python-client.md.*-time-agoendpoints removed in commite0dbcd9are part of a wider refactor —get_site_networks_ts_time_agoandget_site_consumption_breakdown_time_agoshould also migrate to the new endpoints.Test plan
GET /api/users/authenticated+GET /api/sitesagainst the production frontend./api/aggregations/*endpoints exercised live, response shapes captured inaggregations.md.idbehaviour checked against single-id baseline (confirmed sum semantics).View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.