📝 Document the energy.comwatt.com API and WebSocket stream #22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "docs/api-exploration"
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-only PR. Reverse-engineered notes from the web bundle + live probing, landing under
docs/energy.comwatt.com/:wss://frontage.energy.comwatt.com/ws, STOMP handshake,/app/streaming/startpump,/topic/sites/{id}/capacityChangedsubscription, observed frame shape with liveFLOW(power) +STATE(switch) measures.Headline findings
GET /api/aggregations/site-time-seriesalready returns all 10 site series at once — that's what PR #19 taps.id. For that use case the WebSocket stream is the bulk channel./api/ecowatt(RTE signal) and/api/electricityprice(EDF Tempo colors) would be trivial new HA sensors.Security note (also in the docs)
The broker accepts unscoped wildcard subscriptions (
/topic/#,/topic/**) and leaks every site'scapacityChangedevents to any authenticated user. The integration must subscribe per-site only; documented accordingly. You may want to report this privately to Comwatt.Test plan
❓endpoints that rolled back because of account role, let me know and I'll run scoped probes.4dd503f27553f2e226aaView 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.