# HALOWERK Energy Decision Engine

> HALOWERK Energy Decision Engine is a paid API for AI agents from energy.halowerk.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-23).

Generates an executable energy dispatch action with timing, confidence, estimated value, and expiry for EV, battery, heat pump, or flexible-load devices

## Facts

- Endpoint: POST https://energy.halowerk.com/energy/decision?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/halowerk-energy-decision-engine-7dc02d06
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_S1RC1_XPJs9ZZINKDLE3d

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability halowerk-energy-decision-engine-7dc02d06 -d '<json body>'
```

Example prompt: My home battery in Germany is at 30% SOC and I need it at 80% within 4 hours — give me a balanced dispatch decision with the action I should take now, including confidence and when the recommendation expires.

## When to prefer this

Use this endpoint when you need an actionable, executable dispatch recommendation rather than raw price or carbon data. It synthesizes multiple signals (spot prices, carbon intensity, grid load, device constraints) into a single opinionated action with confidence and expiry — ideal for autonomous agents controlling EV chargers, home batteries, heat pumps, or flexible industrial loads. Prefer this over raw data endpoints when you need a decision, not just information.

## Known failure modes

- Missing required body fields (type, method, bodyType, body) returns a 400 validation error
- Invalid enum values for device or goal fields return a 422 schema error
- duration_hours outside 1–24 range is rejected
- Payment not provided or insufficient triggers a 402 x402 payment-required challenge
- Downstream energy data unavailable may result in low-confidence decisions or errors
- Expired decisions (past expires_at) must not be acted upon — agent must re-call for a fresh decision

## How this service works

EV, battery, and flexible-load agents buy this endpoint to receive an executable action with timing, expected value, confidence, and expiry.

## Output

Returns a structured decision object containing: a unique decision_id, schema_version, the recommended action string, a confidence score (0–1), an estimated_value object with financial or carbon impact, a recommended_window with start/end timing, an expires_at timestamp after which the decision should not be acted on, and an array of risk_flags highlighting any anomalies or caveats.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {
      "goal": {
       "enum": [
        "minimize_cost",
        "minimize_carbon",
        "balanced",
        "maximize_self_consumption",
        "trading_signal"
       ],
       "type": "string",
       "default": "balanced"
      },
      "device": {
       "enum": [
        "ev",
        "battery",
        "heat_pump",
        "flexible_load",
        "generic"
       ],
       "type": "string",
       "default": "generic"
      },
      "deadline": {
       "type": "string"
      },
      "location": {
       "type": "string",
       "default": "Germany"
      },
      "constraints": {
       "type": "object",
       "properties": {
        "min_soc": {
         "type": "number"
        },
        "target_soc": {
         "type": "number"
        },
        "max_power_kw": {
         "type": "number"
        },
        "must_finish_by": {
         "type": "string"
        }
       },
       "additionalProperties": false
      },
      "duration_hours": {
       "type": "integer",
       "default": 4,
       "maximum": 24,
       "minimum": 1
      },
      "policy_profile": {
       "enum": [
        "balanced",
        "utility",
        "precision",
        "recall"
       ],
       "type": "string",
       "description": "Optional override. Trading defaults to precision; flexible devices default to utility."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "endpoint",
      "result"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "result": {
       "type": "object",
       "required": [
        "schema_version",
        "decision_id",
        "action",
        "c
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/halowerk-energy-decision-engine-7dc02d06/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from energy.halowerk.com](https://www.zero.xyz/host/energy.halowerk.com/llms.txt)
