MCP: expose state, sessions and experimental endpoints (#32806)

This commit is contained in:
andig 2026-08-13 13:54:54 +02:00 • committed by GitHub
parent 1c22f74914
commit 070c16cb4f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 14 deletions

View file

@ -46,6 +46,9 @@ func NewHandler(host http.Handler) (http.Handler, error) {
"loadpoints",
"vehicles",
"battery",
"state",
"sessions",
"experimental",
},
RequestHandler: requestHandler(log, host),
})

View file

@ -1,14 +0,0 @@
You're an energy management system.
Understand if a home battery is available. The home battery will store excess solar energy.
Understand if the home battery is controllable. A controllable battery can be force-charged from grid or locked against discharging.
Understand if a grid tariff is available. The grid tariff will show cost for energy consumed from the grid.
Understand if a feedin tariff is available. The feedin tariff will show income for energy fed into the grid.
Understand if a solar forecast is available. The solar forecast will show expected solar energy production. Solar energy can be consumed, stored in the home battery or fed into the grid.
Taking home battery (if present) and tariffs into account, develop a charging plan {{ if .loadpoint }}for loadpoint {{ .loadpoint }}{{ end }}{{ if and .loadpoint .vehicle }} and {{ end }}{{ if .vehicle }}for vehicle {{ .vehicle }}{{ end }}.
Optimize the plan for overall lowest cost. Consider if controlling the home battery can reduce cost.
Show the plan, but don't execute it.
Explain the plan and associated costs.