Carries nullable state (status, level, capacity, charge/discharge rates), saved model and reading sync info, the device's writable settings, and the per-canonical-command commands map. The schema enumerates every canonical command, parameter, and setting because the response shape is uniform across OEMs, but capabilities are presence-based: a real device only exposes the subset its OEM declares. A field is present if the device supports it, absent if it does not.
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Amps AI Documentation","colors":{"primary":"#ED6D2C","light":"#ED6D2C","dark":"#C1410A"},"logo":{"light":"https://mintcdn.com/ampsai/lyKVWQMlZ6RTEJJS/logo/light.svg?fit=max\u0026auto=format\u0026n=lyKVWQMlZ6RTEJJS\u0026q=85\u0026s=a5c3bca6ef6bbaf0ded8639c105c3b75","dark":"https://mintcdn.com/ampsai/lyKVWQMlZ6RTEJJS/logo/dark.svg?fit=max\u0026auto=format\u0026n=lyKVWQMlZ6RTEJJS\u0026q=85\u0026s=30ca89db56f01f4e182a25093e947683"},"favicon":"https://mintcdn.com/ampsai/lyKVWQMlZ6RTEJJS/favicon.svg?fit=max\u0026auto=format\u0026n=lyKVWQMlZ6RTEJJS\u0026q=85\u0026s=1375ed9484d5c1988154d775830c9576","navbar":{"links":[{"href":"https://ampsai.substack.com/","label":"Blog"},{"href":"mailto:support@amps.ai","label":"Support"}]},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ampsai","hasAudioNarration":false,"actualSubdomain":"ampsai","customDomains":["docs.amps.ai"],"gitSource":{"type":"github","owner":"tomorro-apis","repo":"ampsai-monorepo","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6aec2a91afba45a8ed327f4f","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"API Reference","count":32},{"language":"default","tag":"Cookbooks","count":16},{"language":"default","tag":"EV Charger","count":14},{"language":"default","tag":"Battery","count":12},{"language":"default","tag":"Guides","count":11},{"language":"default","tag":"HVAC","count":8},{"language":"default","tag":"Get started","count":3},{"language":"default","tag":"Actions","count":3},{"language":"default","tag":"Solar","count":2},{"language":"default","tag":"Push","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/battery/get-battery-state","slug":"/api-reference/battery/get-battery-state","pageMetadata":{"title":"Get battery state","description":"Retrieve the current state and capabilities of a battery device.","deprecated":null,"version":null,"openapi":"/openapi.json get /battery/{deviceId}","href":"/api-reference/battery/get-battery-state","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Retrieve the current state and capabilities of a battery device.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get battery state","description":"Retrieve the current state and capabilities of a battery device.","deprecated":null,"version":null,"openapi":"/openapi.json get /battery/{deviceId}","href":"/api-reference/battery/get-battery-state","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Retrieve the current state and capabilities of a battery device.","operationId":"getBattery","parameters":["c8825aec-bff7-42d0-9b3e-629f476f769c","33325251-753a-4eb8-bced-9e9652b2a03e"],"responses":{"200":"0653d335-55be-4221-b3e7-9a724cbefe94","400":"64ef7648-0e38-444d-8f12-c7178b263009","401":"8a5f1269-3227-4477-969f-244061b9bbd6","403":"2d84d513-e847-43b2-8e3c-e138e96605e2","404":"7306ea68-7494-46b5-b137-5a83d74ffa11","502":"aba8f602-d03d-45fd-81d3-d340a3365a1c","503":"7a334c94-82fd-4c27-aa2f-272b9d0b10f0"},"security":["6036621f-e0cb-4b05-a7e4-fda259f411e2"],"summary":"Get battery state","tags":["Battery"],"x-codeSamples":[{"lang":"curl","label":"curl","source":"curl --request GET \\\n --url 'https://api.amps.ai/battery/device_abc123' \\\n --header 'x-api-key: amps_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx'"},{"lang":"javascript","label":"Node","source":"const response = await fetch('https://api.amps.ai/battery/device_abc123', {\n method: 'GET',\n headers: {\n 'x-api-key': 'amps_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx',\n },\n});\n\nconst data = await response.json();"},{"lang":"python","label":"Python","source":"import requests\n\nurl = 'https://api.amps.ai/battery/device_abc123'\nheaders = {\n 'x-api-key': 'amps_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx',\n}\n\nresponse = requests.get(url, headers=headers)\ndata = response.json()"}],"method":"get","type":"path","servers":["602a3b38-b700-49a8-9920-4d675ba763e3"],"path":"/battery/{deviceId}","baseUrlOptions":["https://api.amps.ai"],"title":"Get battery state","codeSamples":[{"label":"curl","lang":"curl","source":"curl --request GET \\\n --url 'https://api.amps.ai/battery/device_abc123' \\\n --header 'x-api-key: amps_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx'"},{"label":"Node","lang":"javascript","source":"const response = await fetch('https://api.amps.ai/battery/device_abc123', {\n method: 'GET',\n headers: {\n 'x-api-key': 'amps_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx',\n },\n});\n\nconst data = await response.json();"},{"label":"Python","lang":"python","source":"import requests\n\nurl = 'https://api.amps.ai/battery/device_abc123'\nheaders = {\n 'x-api-key': 'amps_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx',\n}\n\nresponse = requests.get(url, headers=headers)\ndata = response.json()"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"c8825aec-bff7-42d0-9b3e-629f476f769c":{"name":"expedite","required":false,"in":"query","description":"Use a shorter cache lifetime, subject to manufacturer read limits. Check sync.expeditedRefetchAfter for the earliest known refresh time.","schema":{"example":true,"type":"boolean","isRequired":false,"description":"Use a shorter cache lifetime, subject to manufacturer read limits. Check sync.expeditedRefetchAfter for the earliest known refresh time.","uniqueKey":"","typeLabel":"boolean"}},"33325251-753a-4eb8-bced-9e9652b2a03e":{"name":"deviceId","required":true,"in":"path","description":"The unique identifier for the battery device.","schema":{"example":"device_abc123","type":"string","isRequired":true,"description":"The unique identifier for the battery device.","uniqueKey":"","typeLabel":"string"}}},"responses":{"0653d335-55be-4221-b3e7-9a724cbefe94":{"description":"Battery state retrieved successfully.","content":{"application/json":{"schema":{"type":"object","required":["success","data","meta"],"properties":{"success":{"type":"boolean","const":true,"description":"Always `true` for success responses.","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"data":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"vendor":{"type":"string","isRequired":true,"uniqueKey":"data.vendor","typeLabel":"string"},"sync":{"type":"object","properties":{"source":{"type":"string","enum":["live","stored","simulated","none"],"description":"live: all telemetry fetched for this request. stored: any telemetry reused, or a stored reading served after a failure. simulated: sandbox state. none: no reading exists.","isRequired":true,"uniqueKey":"data.sync.source","typeLabel":"enum\u003cstring>"},"deviceReportedAt":{"oneOf":[{"type":"string","description":"Time the manufacturer reports for the data, in UTC. Null when unavailable.","format":"date-time","isRequired":true,"uniqueKey":"data.sync.deviceReportedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"Time the manufacturer reports for the data, in UTC. Null when unavailable.","isRequired":true,"uniqueKey":"data.sync.deviceReportedAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.sync.deviceReportedAt","typeLabel":"string\u003cdate-time> | null"},"fetchedAt":{"oneOf":[{"type":"string","description":"Original receipt time of the oldest telemetry used by this reading, or null for simulated state or no reading.","format":"date-time","isRequired":true,"uniqueKey":"data.sync.fetchedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"Original receipt time of the oldest telemetry used by this reading, or null for simulated state or no reading.","isRequired":true,"uniqueKey":"data.sync.fetchedAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.sync.fetchedAt","typeLabel":"string\u003cdate-time> | null"},"lastFetchAttempt":{"oneOf":[{"type":"object","description":"Latest completed fetch attempt, ordered by start time. Null for simulated state or no recorded attempt.","required":["at","outcome"],"properties":{"at":{"type":"string","format":"date-time","description":"When the fetch attempt started, in UTC.","isRequired":true,"uniqueKey":"data.sync.lastFetchAttempt.oneOf.0.at","typeLabel":"string\u003cdate-time>"},"outcome":{"type":"string","enum":["succeeded","failed"],"description":"Whether the fetch attempt succeeded.","isRequired":true,"uniqueKey":"data.sync.lastFetchAttempt.oneOf.0.outcome","typeLabel":"enum\u003cstring>"},"errorCode":{"description":"Failure code when the fetch attempt failed.","type":"string","enum":["INVALID_CREDENTIALS","INVALID_API_KEY","INVALID_MFA_CODE","MFA_REQUIRED","ACCOUNT_LOCKED","UNSUPPORTED_CREDENTIAL_TYPE","DEVICE_NOT_FOUND","DEVICE_OFFLINE","DEVICE_UNAUTHORIZED","NO_DEVICES_FOUND","COMMAND_FAILED","DEVICE_NOT_CAPABLE","MODE_OVERRIDDEN","VPP_LOCKED","INVALID_PARAMETERS","PARAMETER_REQUIRED","INVALID_OEM_PARAMETERS","INVALID_TIME_WINDOW","BIND_NOT_SUPPORTED","SCHEDULER_ACTIVE","SCHEDULER_FULL","UNSUPPORTED_AUTH_PATH","SETTING_OUT_OF_RANGE","NETWORK_ERROR","RATE_LIMITED","SERVICE_UNAVAILABLE","TIMEOUT","SIMULATED_FAILURE","UNKNOWN_ERROR","VEHICLE_NOT_CONNECTED","CONSENT_REVOKED","CREDENTIAL_NOT_FOUND","CAPABILITY_PAUSED","INVALID_OEM_RESPONSE","COMMAND_NOT_APPLIED","STALE_ACTION","DEFERRED_SCHEDULE_FAILED","UNROUTABLE_ACTION_TYPE","UNAUTHORIZED","EXPIRED_TOKEN","FORBIDDEN","INSUFFICIENT_PERMISSIONS","LIVE_ACCESS_DISABLED","VALIDATION_ERROR","INVALID_INPUT","INVALID_REQUEST_BODY","EMPTY_SETTINGS","PAYLOAD_TOO_LARGE","UNSUPPORTED_MEDIA_TYPE","NOT_FOUND","METHOD_NOT_ALLOWED","CONFLICT","CONFLICT_IN_EXECUTION","GONE","RATE_LIMIT_EXCEEDED","INTERNAL_ERROR","NOT_IMPLEMENTED","BAD_GATEWAY","GATEWAY_TIMEOUT","DEVICE_TYPE_MISMATCH","DEVICE_OVERAGE","SETTINGS_STORE_UNAVAILABLE","ACTION_NOT_FOUND","UNSUPPORTED_PARAMETER_COMBINATION","PARAMETER_OUT_OF_RANGE","START_IN_PAST","START_OUT_OF_RANGE","START_OFFSET_NOT_ACCEPTED","START_INVALID_FORMAT","START_NONEXISTENT_WALL_CLOCK","TIMEZONE_UNRESOLVED","INVALID_TIMEZONE","ACTION_NOT_CANCELLABLE","UNSUPPORTED_SETTING_COMBINATION","INVALID_SETTING_UNIT","INVALID_SETTING_VALUE","NO_OP","NO_OVERRIDE","AVAILABILITY_ENV_UNSUPPORTED","UNSUPPORTED_COMBINATION"],"uniqueKey":"data.sync.lastFetchAttempt.oneOf.0.errorCode","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.sync.lastFetchAttempt.oneOf.0","typeLabel":"object"},{"type":"null","description":"Latest completed fetch attempt, ordered by start time. Null for simulated state or no recorded attempt.","isRequired":true,"uniqueKey":"data.sync.lastFetchAttempt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.sync.lastFetchAttempt","typeLabel":"object | null"},"outdatedBy":{"oneOf":[{"type":"object","description":"A successful change through Amps after this reading's fetch started. It does not prove the device applied the change. Null for simulated state, an unknown fetch start or no later known change.","required":["at","actionId"],"properties":{"at":{"type":"string","format":"date-time","description":"When the later change through Amps occurred, in UTC.","isRequired":true,"uniqueKey":"data.sync.outdatedBy.oneOf.0.at","typeLabel":"string\u003cdate-time>"},"actionId":{"oneOf":[{"type":"string","description":"The caller's command or stop action ID. Null for another customer's change or a settings write.","isRequired":true,"uniqueKey":"data.sync.outdatedBy.oneOf.0.actionId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The caller's command or stop action ID. Null for another customer's change or a settings write.","isRequired":true,"uniqueKey":"data.sync.outdatedBy.oneOf.0.actionId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.sync.outdatedBy.oneOf.0.actionId","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"data.sync.outdatedBy.oneOf.0","typeLabel":"object"},{"type":"null","description":"A successful change through Amps after this reading's fetch started. It does not prove the device applied the change. Null for simulated state, an unknown fetch start or no later known change.","isRequired":true,"uniqueKey":"data.sync.outdatedBy.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.sync.outdatedBy","typeLabel":"object | null"},"refetchAfter":{"oneOf":[{"type":"string","description":"Earliest known time a normal detail read can attempt a manufacturer fetch. Null for simulated state or unknown timing.","format":"date-time","isRequired":true,"uniqueKey":"data.sync.refetchAfter.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"Earliest known time a normal detail read can attempt a manufacturer fetch. Null for simulated state or unknown timing.","isRequired":true,"uniqueKey":"data.sync.refetchAfter.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.sync.refetchAfter","typeLabel":"string\u003cdate-time> | null"},"expeditedRefetchAfter":{"oneOf":[{"type":"string","description":"Earliest known time an expedited detail read can attempt a manufacturer fetch. Null for simulated state or unknown timing.","format":"date-time","isRequired":true,"uniqueKey":"data.sync.expeditedRefetchAfter.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"Earliest known time an expedited detail read can attempt a manufacturer fetch. Null for simulated state or unknown timing.","isRequired":true,"uniqueKey":"data.sync.expeditedRefetchAfter.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.sync.expeditedRefetchAfter","typeLabel":"string\u003cdate-time> | null"}},"required":["source","deviceReportedAt","fetchedAt","lastFetchAttempt","outdatedBy","refetchAfter","expeditedRefetchAfter"],"isRequired":true,"uniqueKey":"data.sync","typeLabel":"object"},"model":{"type":"string","description":"Saved device model name.","isRequired":true,"uniqueKey":"data.model","typeLabel":"string"},"state":{"oneOf":[{"type":"object","required":["status","capacity","level","chargeRate","currentMode"],"properties":{"status":{"type":"string","enum":["charging","discharging","idle","standby"],"isRequired":true,"uniqueKey":"data.state.oneOf.0.status","typeLabel":"enum\u003cstring>"},"capacity":{"type":"number","isRequired":true,"uniqueKey":"data.state.oneOf.0.capacity","typeLabel":"number"},"level":{"type":"number","minimum":0,"maximum":100,"isRequired":true,"uniqueKey":"data.state.oneOf.0.level","typeLabel":"number"},"chargeRate":{"type":"number","isRequired":true,"uniqueKey":"data.state.oneOf.0.chargeRate","typeLabel":"number"},"currentMode":{"type":"string","enum":["charge","discharge","idle","auto.balance","auto.reserve","auto.export","unknown"],"description":"Best available operating intent, distinct from actual activity. Manufacturer observations take precedence over a compatible successful Amps command or documented normal use. A fallback is not proof a command took effect. `unknown` means no supported intent can be established from the available evidence.","isRequired":true,"uniqueKey":"data.state.oneOf.0.currentMode","typeLabel":"enum\u003cstring>"},"dischargeLimit":{"description":"The reserve level, as a percentage (0-100). The battery stops discharging when its level reaches this value. Present only when the manufacturer reports a reserve. Absent means the reserve is not known, not that it is 0.","type":"number","uniqueKey":"data.state.oneOf.0.dischargeLimit","typeLabel":"number"}},"isRequired":true,"uniqueKey":"data.state.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"data.state.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.state","typeLabel":"object | null"},"conflictStrategies":{"type":"array","items":{"type":"string","enum":["cancel_and_replace","queue_after"],"uniqueKey":"data.conflictStrategies.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Conflict-resolution strategies this device accepts on `onConflict`. Empty when the device declares none.","isRequired":true,"uniqueKey":"data.conflictStrategies","typeLabel":"enum\u003cstring>[]"},"lastAction":{"oneOf":[{"type":"object","description":"Summary of the most recent action dispatched to this device; full record at `links.self`. Null when the device has no actions yet. A pointer for the \"render a device card in one call\" case, not a denormalised copy.","required":["id","command","start","end","endedAt","state","createdAt","updatedAt","errorCode","errorMessage","links"],"properties":{"id":{"type":"string","description":"Unique action identifier. Fetch the full record at `links.self`.","isRequired":true,"uniqueKey":"data.lastAction.oneOf.0.id","typeLabel":"string"},"command":{"type":"string","description":"The canonical verb of the action (e.g. `charge`, `heat`, `auto.schedule`). Derived from the same source as `GET /actions`, so it always matches the full record.","isRequired":true,"uniqueKey":"data.lastAction.oneOf.0.command","typeLabel":"string"},"start":{"oneOf":[{"type":"string","description":"Requested firing instant in UTC, or null for an immediate action.","format":"date-time","isRequired":true,"uniqueKey":"data.lastAction.oneOf.0.start.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"Requested firing instant in UTC, or null for an immediate action.","isRequired":true,"uniqueKey":"data.lastAction.oneOf.0.start.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.lastAction.oneOf.0.start","typeLabel":"string\u003cdate-time> | null"},"end":{"oneOf":[{"type":"string","description":"Requested window end in UTC, or null for an open-ended action.","format":"date-time","isRequired":true,"uniqueKey":"data.lastAction.oneOf.0.end.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"Requested window end in UTC, or null for an open-ended action.","isRequired":true,"uniqueKey":"data.lastAction.oneOf.0.end.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.lastAction.oneOf.0.end","typeLabel":"string\u003cdate-time> | null"},"endedAt":{"oneOf":[{"type":"string","description":"When the command window ended, or null while open or without a window.","format":"date-time","isRequired":true,"uniqueKey":"data.lastAction.oneOf.0.endedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"When the command window ended, or null while open or without a window.","isRequired":true,"uniqueKey":"data.lastAction.oneOf.0.endedAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.lastAction.oneOf.0.endedAt","typeLabel":"string\u003cdate-time> | null"},"state":{"type":"string","enum":["acknowledged","completed","failed","scheduled","cancelled"],"description":"Lifecycle state of the action. `scheduled` indicates a deferred action awaiting its fire time; the terminal states are `completed`, `failed`, and `cancelled`.","isRequired":true,"uniqueKey":"data.lastAction.oneOf.0.state","typeLabel":"enum\u003cstring>"},"createdAt":{"type":"string","format":"date-time","description":"ISO 8601 timestamp when the action was created.","isRequired":true,"uniqueKey":"data.lastAction.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of the most recent state change.","isRequired":true,"uniqueKey":"data.lastAction.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"},"errorCode":{"oneOf":[{"type":"string","description":"Machine-readable error code when `state` is `failed`. Null otherwise. Lets a device card show the failure reason without fetching the full record.","enum":["INVALID_CREDENTIALS","INVALID_API_KEY","INVALID_MFA_CODE","MFA_REQUIRED","ACCOUNT_LOCKED","UNSUPPORTED_CREDENTIAL_TYPE","DEVICE_NOT_FOUND","DEVICE_OFFLINE","DEVICE_UNAUTHORIZED","NO_DEVICES_FOUND","COMMAND_FAILED","DEVICE_NOT_CAPABLE","MODE_OVERRIDDEN","VPP_LOCKED","INVALID_PARAMETERS","PARAMETER_REQUIRED","INVALID_OEM_PARAMETERS","INVALID_TIME_WINDOW","BIND_NOT_SUPPORTED","SCHEDULER_ACTIVE","SCHEDULER_FULL","UNSUPPORTED_AUTH_PATH","SETTING_OUT_OF_RANGE","NETWORK_ERROR","RATE_LIMITED","SERVICE_UNAVAILABLE","TIMEOUT","SIMULATED_FAILURE","UNKNOWN_ERROR","VEHICLE_NOT_CONNECTED","CONSENT_REVOKED","CREDENTIAL_NOT_FOUND","CAPABILITY_PAUSED","INVALID_OEM_RESPONSE","COMMAND_NOT_APPLIED","STALE_ACTION","DEFERRED_SCHEDULE_FAILED","UNROUTABLE_ACTION_TYPE","UNAUTHORIZED","EXPIRED_TOKEN","FORBIDDEN","INSUFFICIENT_PERMISSIONS","LIVE_ACCESS_DISABLED","VALIDATION_ERROR","INVALID_INPUT","INVALID_REQUEST_BODY","EMPTY_SETTINGS","PAYLOAD_TOO_LARGE","UNSUPPORTED_MEDIA_TYPE","NOT_FOUND","METHOD_NOT_ALLOWED","CONFLICT","CONFLICT_IN_EXECUTION","GONE","RATE_LIMIT_EXCEEDED","INTERNAL_ERROR","NOT_IMPLEMENTED","BAD_GATEWAY","GATEWAY_TIMEOUT","DEVICE_TYPE_MISMATCH","DEVICE_OVERAGE","SETTINGS_STORE_UNAVAILABLE","ACTION_NOT_FOUND","UNSUPPORTED_PARAMETER_COMBINATION","PARAMETER_OUT_OF_RANGE","START_IN_PAST","START_OUT_OF_RANGE","START_OFFSET_NOT_ACCEPTED","START_INVALID_FORMAT","START_NONEXISTENT_WALL_CLOCK","TIMEZONE_UNRESOLVED","INVALID_TIMEZONE","ACTION_NOT_CANCELLABLE","UNSUPPORTED_SETTING_COMBINATION","INVALID_SETTING_UNIT","INVALID_SETTING_VALUE","NO_OP","NO_OVERRIDE","AVAILABILITY_ENV_UNSUPPORTED","UNSUPPORTED_COMBINATION"],"isRequired":true,"uniqueKey":"data.lastAction.oneOf.0.errorCode.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Machine-readable error code when `state` is `failed`. Null otherwise. Lets a device card show the failure reason without fetching the full record.","isRequired":true,"uniqueKey":"data.lastAction.oneOf.0.errorCode.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.lastAction.oneOf.0.errorCode","typeLabel":"enum\u003cstring> | null"},"errorMessage":{"oneOf":[{"type":"string","description":"Human-readable error message when `state` is `failed`. Null otherwise.","isRequired":true,"uniqueKey":"data.lastAction.oneOf.0.errorMessage.oneOf.0","typeLabel":"string"},{"type":"null","description":"Human-readable error message when `state` is `failed`. Null otherwise.","isRequired":true,"uniqueKey":"data.lastAction.oneOf.0.errorMessage.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.lastAction.oneOf.0.errorMessage","typeLabel":"string | null"},"links":{"type":"object","properties":{"self":{"type":"string","description":"Canonical path to the full action record: `GET /actions/{actionId}`.","isRequired":true,"uniqueKey":"data.lastAction.oneOf.0.links.self","typeLabel":"string"}},"required":["self"],"description":"Hypermedia link to the full action record.","isRequired":true,"uniqueKey":"data.lastAction.oneOf.0.links","typeLabel":"object"},"windowActionId":{"description":"On a stop action, the command whose window it ends.","type":"string","uniqueKey":"data.lastAction.oneOf.0.windowActionId","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.lastAction.oneOf.0","typeLabel":"object"},{"type":"null","description":"Summary of the most recent action dispatched to this device; full record at `links.self`. Null when the device has no actions yet. A pointer for the \"render a device card in one call\" case, not a denormalised copy.","isRequired":true,"uniqueKey":"data.lastAction.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.lastAction","typeLabel":"object | null"},"currentSchedule":{"oneOf":[{"type":"object","description":"The device's active Amps schedule. Always null until the scheduler ships.","required":["id","status","links"],"properties":{"id":{"type":"string","description":"Unique schedule identifier. Fetch the full schedule at `links.self`.","isRequired":true,"uniqueKey":"data.currentSchedule.oneOf.0.id","typeLabel":"string"},"status":{"type":"string","description":"Lifecycle status of the schedule (e.g. `active`). The full status vocabulary lands with the scheduler.","isRequired":true,"uniqueKey":"data.currentSchedule.oneOf.0.status","typeLabel":"string"},"links":{"type":"object","properties":{"self":{"type":"string","description":"Canonical path to the device's full schedule: `GET /{type}/{id}/schedule`.","isRequired":true,"uniqueKey":"data.currentSchedule.oneOf.0.links.self","typeLabel":"string"}},"required":["self"],"description":"Hypermedia link to the full schedule.","isRequired":true,"uniqueKey":"data.currentSchedule.oneOf.0.links","typeLabel":"object"}},"isRequired":true,"uniqueKey":"data.currentSchedule.oneOf.0","typeLabel":"object"},{"type":"null","description":"The device's active Amps schedule. Always null until the scheduler ships.","isRequired":true,"uniqueKey":"data.currentSchedule.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.currentSchedule","typeLabel":"object | null"},"commands":{"type":"object","properties":{"charge":{"description":"Active charge from grid or solar.","type":"object","properties":{"parameters":{"type":"object","properties":{"target":{"description":"Present when the device accepts a `target` SoC limit on this command. Upper SoC limit on `charge`, lower SoC limit on `discharge`, and the charge ceiling on an `auto.*` mode. Send a value via `POST /battery/{deviceId}` within these bounds.","type":"object","properties":{"unit":{"description":"Unit of measure (e.g. `percent`, `kw`).","type":"string","uniqueKey":"data.commands.charge.parameters.target.unit","typeLabel":"string"},"min":{"description":"Lower bound for the parameter value.","type":"number","uniqueKey":"data.commands.charge.parameters.target.min","typeLabel":"number"},"max":{"description":"Upper bound for the parameter value.","type":"number","uniqueKey":"data.commands.charge.parameters.target.max","typeLabel":"number"},"step":{"description":"Increment the value must land on, counted from `min` (or from 0 when no `min` is declared). A value off the grid is rejected. Absent when the device accepts any value within the bounds.","type":"number","uniqueKey":"data.commands.charge.parameters.target.step","typeLabel":"number"},"required":{"description":"`true` when the command cannot run without this parameter. A command that leaves it out is refused with `422 PARAMETER_REQUIRED`, and `error.details.missingParameters` names every missing one. Absent when the parameter is optional.","type":"boolean","const":true,"uniqueKey":"data.commands.charge.parameters.target.required","typeLabel":"boolean"}},"uniqueKey":"data.commands.charge.parameters.target","typeLabel":"object"},"power":{"description":"Present when the device accepts a `power` rate cap on this command. Send a value via `POST /battery/{deviceId}` within these bounds.","type":"object","properties":{"unit":{"description":"Unit of measure (e.g. `percent`, `kw`).","type":"string","uniqueKey":"data.commands.charge.parameters.power.unit","typeLabel":"string"},"min":{"description":"Lower bound for the parameter value.","type":"number","uniqueKey":"data.commands.charge.parameters.power.min","typeLabel":"number"},"max":{"description":"Upper bound for the parameter value.","type":"number","uniqueKey":"data.commands.charge.parameters.power.max","typeLabel":"number"},"step":{"description":"Increment the value must land on, counted from `min` (or from 0 when no `min` is declared). A value off the grid is rejected. Absent when the device accepts any value within the bounds.","type":"number","uniqueKey":"data.commands.charge.parameters.power.step","typeLabel":"number"},"required":{"description":"`true` when the command cannot run without this parameter. A command that leaves it out is refused with `422 PARAMETER_REQUIRED`, and `error.details.missingParameters` names every missing one. Absent when the parameter is optional.","type":"boolean","const":true,"uniqueKey":"data.commands.charge.parameters.power.required","typeLabel":"boolean"}},"uniqueKey":"data.commands.charge.parameters.power","typeLabel":"object"},"reserve":{"description":"Present when the device accepts a `reserve` floor on this command. The reserve floor is preserved while the mode is active.","type":"object","properties":{"unit":{"description":"Unit of measure (e.g. `percent`, `kw`).","type":"string","uniqueKey":"data.commands.charge.parameters.reserve.unit","typeLabel":"string"},"min":{"description":"Lower bound for the parameter value.","type":"number","uniqueKey":"data.commands.charge.parameters.reserve.min","typeLabel":"number"},"max":{"description":"Upper bound for the parameter value.","type":"number","uniqueKey":"data.commands.charge.parameters.reserve.max","typeLabel":"number"},"step":{"description":"Increment the value must land on, counted from `min` (or from 0 when no `min` is declared). A value off the grid is rejected. Absent when the device accepts any value within the bounds.","type":"number","uniqueKey":"data.commands.charge.parameters.reserve.step","typeLabel":"number"},"required":{"description":"`true` when the command cannot run without this parameter. A command that leaves it out is refused with `422 PARAMETER_REQUIRED`, and `error.details.missingParameters` names every missing one. Absent when the parameter is optional.","type":"boolean","const":true,"uniqueKey":"data.commands.charge.parameters.reserve.required","typeLabel":"boolean"}},"uniqueKey":"data.commands.charge.parameters.reserve","typeLabel":"object"}},"description":"Parameter bounds for the `charge` command. Each canonical parameter is presence-based: a key is included only when the device declares bounds for it. Empty when the command takes no parameters at all.","isRequired":true,"uniqueKey":"data.commands.charge.parameters","typeLabel":"object"},"execution":{"type":"array","items":{"type":"string","enum":["immediate","scheduled","windowed"],"uniqueKey":"data.commands.charge.execution.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Execution shapes the device accepts. `immediate` = no `start`; `scheduled` = `start` alone; `windowed` = `start` + `end`.","isRequired":true,"uniqueKey":"data.commands.charge.execution","typeLabel":"enum\u003cstring>[]"}},"required":["parameters","execution"],"uniqueKey":"data.commands.charge","typeLabel":"object"},"discharge":{"description":"Active discharge to power the home or export.","type":"object","properties":{"parameters":{"type":"object","properties":{"target":{"description":"Present when the device accepts a `target` SoC limit on this command. Upper SoC limit on `charge`, lower SoC limit on `discharge`, and the charge ceiling on an `auto.*` mode. Send a value via `POST /battery/{deviceId}` within these bounds.","type":"object","properties":{"unit":{"description":"Unit of measure (e.g. `percent`, `kw`).","type":"string","uniqueKey":"data.commands.discharge.parameters.target.unit","typeLabel":"string"},"min":{"description":"Lower bound for the parameter value.","type":"number","uniqueKey":"data.commands.discharge.parameters.target.min","typeLabel":"number"},"max":{"description":"Upper bound for the parameter value.","type":"number","uniqueKey":"data.commands.discharge.parameters.target.max","typeLabel":"number"},"step":{"description":"Increment the value must land on, counted from `min` (or from 0 when no `min` is declared). A value off the grid is rejected. Absent when the device accepts any value within the bounds.","type":"number","uniqueKey":"data.commands.discharge.parameters.target.step","typeLabel":"number"},"required":{"description":"`true` when the command cannot run without this parameter. A command that leaves it out is refused with `422 PARAMETER_REQUIRED`, and `error.details.missingParameters` names every missing one. Absent when the parameter is optional.","type":"boolean","const":true,"uniqueKey":"data.commands.discharge.parameters.target.required","typeLabel":"boolean"}},"uniqueKey":"data.commands.discharge.parameters.target","typeLabel":"object"},"power":{"description":"Present when the device accepts a `power` rate cap on this command. Send a value via `POST /battery/{deviceId}` within these bounds.","type":"object","properties":{"unit":{"description":"Unit of measure (e.g. `percent`, `kw`).","type":"string","uniqueKey":"data.commands.discharge.parameters.power.unit","typeLabel":"string"},"min":{"description":"Lower bound for the parameter value.","type":"number","uniqueKey":"data.commands.discharge.parameters.power.min","typeLabel":"number"},"max":{"description":"Upper bound for the parameter value.","type":"number","uniqueKey":"data.commands.discharge.parameters.power.max","typeLabel":"number"},"step":{"description":"Increment the value must land on, counted from `min` (or from 0 when no `min` is declared). A value off the grid is rejected. Absent when the device accepts any value within the bounds.","type":"number","uniqueKey":"data.commands.discharge.parameters.power.step","typeLabel":"number"},"required":{"description":"`true` when the command cannot run without this parameter. A command that leaves it out is refused with `422 PARAMETER_REQUIRED`, and `error.details.missingParameters` names every missing one. Absent when the parameter is optional.","type":"boolean","const":true,"uniqueKey":"data.commands.discharge.parameters.power.required","typeLabel":"boolean"}},"uniqueKey":"data.commands.discharge.parameters.power","typeLabel":"object"},"reserve":{"description":"Present when the device accepts a `reserve` floor on this command. The reserve floor is preserved while the mode is active.","type":"object","properties":{"unit":{"description":"Unit of measure (e.g. `percent`, `kw`).","type":"string","uniqueKey":"data.commands.discharge.parameters.reserve.unit","typeLabel":"string"},"min":{"description":"Lower bound for the parameter value.","type":"number","uniqueKey":"data.commands.discharge.parameters.reserve.min","typeLabel":"number"},"max":{"description":"Upper bound for the parameter value.","type":"number","uniqueKey":"data.commands.discharge.parameters.reserve.max","typeLabel":"number"},"step":{"description":"Increment the value must land on, counted from `min` (or from 0 when no `min` is declared). A value off the grid is rejected. Absent when the device accepts any value within the bounds.","type":"number","uniqueKey":"data.commands.discharge.parameters.reserve.step","typeLabel":"number"},"required":{"description":"`true` when the command cannot run without this parameter. A command that leaves it out is refused with `422 PARAMETER_REQUIRED`, and `error.details.missingParameters` names every missing one. Absent when the parameter is optional.","type":"boolean","const":true,"uniqueKey":"data.commands.discharge.parameters.reserve.required","typeLabel":"boolean"}},"uniqueKey":"data.commands.discharge.parameters.reserve","typeLabel":"object"}},"description":"Parameter bounds for the `discharge` command. Each canonical parameter is presence-based: a key is included only when the device declares bounds for it. Empty when the command takes no parameters at all.","isRequired":true,"uniqueKey":"data.commands.discharge.parameters","typeLabel":"object"},"execution":{"type":"array","items":{"type":"string","enum":["immediate","scheduled","windowed"],"uniqueKey":"data.commands.discharge.execution.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Execution shapes the device accepts. `immediate` = no `start`; `scheduled` = `start` alone; `windowed` = `start` + `end`.","isRequired":true,"uniqueKey":"data.commands.discharge.execution","typeLabel":"enum\u003cstring>[]"}},"required":["parameters","execution"],"uniqueKey":"data.commands.discharge","typeLabel":"object"},"idle":{"description":"Pause all charge and discharge activity.","type":"object","properties":{"parameters":{"type":"object","properties":{},"description":"Parameter bounds for the `idle` command. Each canonical parameter is presence-based: a key is included only when the device declares bounds for it. Empty when the command takes no parameters at all.","isRequired":true,"uniqueKey":"data.commands.idle.parameters","typeLabel":"object"},"execution":{"type":"array","items":{"type":"string","enum":["immediate","scheduled","windowed"],"uniqueKey":"data.commands.idle.execution.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Execution shapes the device accepts. `immediate` = no `start`; `scheduled` = `start` alone; `windowed` = `start` + `end`.","isRequired":true,"uniqueKey":"data.commands.idle.execution","typeLabel":"enum\u003cstring>[]"}},"required":["parameters","execution"],"uniqueKey":"data.commands.idle","typeLabel":"object"},"auto.balance":{"description":"Optimise for self-consumption: charge when solar is plentiful, discharge when the home needs it.","type":"object","properties":{"parameters":{"type":"object","properties":{"target":{"description":"Present when the device accepts a `target` SoC limit on this command. Upper SoC limit on `charge`, lower SoC limit on `discharge`, and the charge ceiling on an `auto.*` mode. Send a value via `POST /battery/{deviceId}` within these bounds.","type":"object","properties":{"unit":{"description":"Unit of measure (e.g. `percent`, `kw`).","type":"string","uniqueKey":"data.commands.auto\\.balance.parameters.target.unit","typeLabel":"string"},"min":{"description":"Lower bound for the parameter value.","type":"number","uniqueKey":"data.commands.auto\\.balance.parameters.target.min","typeLabel":"number"},"max":{"description":"Upper bound for the parameter value.","type":"number","uniqueKey":"data.commands.auto\\.balance.parameters.target.max","typeLabel":"number"},"step":{"description":"Increment the value must land on, counted from `min` (or from 0 when no `min` is declared). A value off the grid is rejected. Absent when the device accepts any value within the bounds.","type":"number","uniqueKey":"data.commands.auto\\.balance.parameters.target.step","typeLabel":"number"},"required":{"description":"`true` when the command cannot run without this parameter. A command that leaves it out is refused with `422 PARAMETER_REQUIRED`, and `error.details.missingParameters` names every missing one. Absent when the parameter is optional.","type":"boolean","const":true,"uniqueKey":"data.commands.auto\\.balance.parameters.target.required","typeLabel":"boolean"}},"uniqueKey":"data.commands.auto\\.balance.parameters.target","typeLabel":"object"},"reserve":{"description":"Present when the device accepts a `reserve` floor on this command. The reserve floor is preserved while the mode is active.","type":"object","properties":{"unit":{"description":"Unit of measure (e.g. `percent`, `kw`).","type":"string","uniqueKey":"data.commands.auto\\.balance.parameters.reserve.unit","typeLabel":"string"},"min":{"description":"Lower bound for the parameter value.","type":"number","uniqueKey":"data.commands.auto\\.balance.parameters.reserve.min","typeLabel":"number"},"max":{"description":"Upper bound for the parameter value.","type":"number","uniqueKey":"data.commands.auto\\.balance.parameters.reserve.max","typeLabel":"number"},"step":{"description":"Increment the value must land on, counted from `min` (or from 0 when no `min` is declared). A value off the grid is rejected. Absent when the device accepts any value within the bounds.","type":"number","uniqueKey":"data.commands.auto\\.balance.parameters.reserve.step","typeLabel":"number"},"required":{"description":"`true` when the command cannot run without this parameter. A command that leaves it out is refused with `422 PARAMETER_REQUIRED`, and `error.details.missingParameters` names every missing one. Absent when the parameter is optional.","type":"boolean","const":true,"uniqueKey":"data.commands.auto\\.balance.parameters.reserve.required","typeLabel":"boolean"}},"uniqueKey":"data.commands.auto\\.balance.parameters.reserve","typeLabel":"object"}},"description":"Parameter bounds for the `auto.balance` command. Each canonical parameter is presence-based: a key is included only when the device declares bounds for it. Empty when the command takes no parameters at all.","isRequired":true,"uniqueKey":"data.commands.auto\\.balance.parameters","typeLabel":"object"},"execution":{"type":"array","items":{"type":"string","enum":["immediate","scheduled","windowed"],"uniqueKey":"data.commands.auto\\.balance.execution.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Execution shapes the device accepts. `immediate` = no `start`; `scheduled` = `start` alone; `windowed` = `start` + `end`.","isRequired":true,"uniqueKey":"data.commands.auto\\.balance.execution","typeLabel":"enum\u003cstring>[]"}},"required":["parameters","execution"],"uniqueKey":"data.commands.auto\\.balance","typeLabel":"object"},"auto.reserve":{"description":"Reserve capacity for grid outage protection. Stay charged above the reserve floor.","type":"object","properties":{"parameters":{"type":"object","properties":{"target":{"description":"Present when the device accepts a `target` SoC limit on this command. Upper SoC limit on `charge`, lower SoC limit on `discharge`, and the charge ceiling on an `auto.*` mode. Send a value via `POST /battery/{deviceId}` within these bounds.","type":"object","properties":{"unit":{"description":"Unit of measure (e.g. `percent`, `kw`).","type":"string","uniqueKey":"data.commands.auto\\.reserve.parameters.target.unit","typeLabel":"string"},"min":{"description":"Lower bound for the parameter value.","type":"number","uniqueKey":"data.commands.auto\\.reserve.parameters.target.min","typeLabel":"number"},"max":{"description":"Upper bound for the parameter value.","type":"number","uniqueKey":"data.commands.auto\\.reserve.parameters.target.max","typeLabel":"number"},"step":{"description":"Increment the value must land on, counted from `min` (or from 0 when no `min` is declared). A value off the grid is rejected. Absent when the device accepts any value within the bounds.","type":"number","uniqueKey":"data.commands.auto\\.reserve.parameters.target.step","typeLabel":"number"},"required":{"description":"`true` when the command cannot run without this parameter. A command that leaves it out is refused with `422 PARAMETER_REQUIRED`, and `error.details.missingParameters` names every missing one. Absent when the parameter is optional.","type":"boolean","const":true,"uniqueKey":"data.commands.auto\\.reserve.parameters.target.required","typeLabel":"boolean"}},"uniqueKey":"data.commands.auto\\.reserve.parameters.target","typeLabel":"object"},"reserve":{"description":"Present when the device accepts a `reserve` floor on this command. The reserve floor is preserved while the mode is active.","type":"object","properties":{"unit":{"description":"Unit of measure (e.g. `percent`, `kw`).","type":"string","uniqueKey":"data.commands.auto\\.reserve.parameters.reserve.unit","typeLabel":"string"},"min":{"description":"Lower bound for the parameter value.","type":"number","uniqueKey":"data.commands.auto\\.reserve.parameters.reserve.min","typeLabel":"number"},"max":{"description":"Upper bound for the parameter value.","type":"number","uniqueKey":"data.commands.auto\\.reserve.parameters.reserve.max","typeLabel":"number"},"step":{"description":"Increment the value must land on, counted from `min` (or from 0 when no `min` is declared). A value off the grid is rejected. Absent when the device accepts any value within the bounds.","type":"number","uniqueKey":"data.commands.auto\\.reserve.parameters.reserve.step","typeLabel":"number"},"required":{"description":"`true` when the command cannot run without this parameter. A command that leaves it out is refused with `422 PARAMETER_REQUIRED`, and `error.details.missingParameters` names every missing one. Absent when the parameter is optional.","type":"boolean","const":true,"uniqueKey":"data.commands.auto\\.reserve.parameters.reserve.required","typeLabel":"boolean"}},"uniqueKey":"data.commands.auto\\.reserve.parameters.reserve","typeLabel":"object"}},"description":"Parameter bounds for the `auto.reserve` command. Each canonical parameter is presence-based: a key is included only when the device declares bounds for it. Empty when the command takes no parameters at all.","isRequired":true,"uniqueKey":"data.commands.auto\\.reserve.parameters","typeLabel":"object"},"execution":{"type":"array","items":{"type":"string","enum":["immediate","scheduled","windowed"],"uniqueKey":"data.commands.auto\\.reserve.execution.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Execution shapes the device accepts. `immediate` = no `start`; `scheduled` = `start` alone; `windowed` = `start` + `end`.","isRequired":true,"uniqueKey":"data.commands.auto\\.reserve.execution","typeLabel":"enum\u003cstring>[]"}},"required":["parameters","execution"],"uniqueKey":"data.commands.auto\\.reserve","typeLabel":"object"},"auto.export":{"description":"Maximise grid export. Discharge to the grid whenever the export tariff is attractive.","type":"object","properties":{"parameters":{"type":"object","properties":{"target":{"description":"Present when the device accepts a `target` SoC limit on this command. Upper SoC limit on `charge`, lower SoC limit on `discharge`, and the charge ceiling on an `auto.*` mode. Send a value via `POST /battery/{deviceId}` within these bounds.","type":"object","properties":{"unit":{"description":"Unit of measure (e.g. `percent`, `kw`).","type":"string","uniqueKey":"data.commands.auto\\.export.parameters.target.unit","typeLabel":"string"},"min":{"description":"Lower bound for the parameter value.","type":"number","uniqueKey":"data.commands.auto\\.export.parameters.target.min","typeLabel":"number"},"max":{"description":"Upper bound for the parameter value.","type":"number","uniqueKey":"data.commands.auto\\.export.parameters.target.max","typeLabel":"number"},"step":{"description":"Increment the value must land on, counted from `min` (or from 0 when no `min` is declared). A value off the grid is rejected. Absent when the device accepts any value within the bounds.","type":"number","uniqueKey":"data.commands.auto\\.export.parameters.target.step","typeLabel":"number"},"required":{"description":"`true` when the command cannot run without this parameter. A command that leaves it out is refused with `422 PARAMETER_REQUIRED`, and `error.details.missingParameters` names every missing one. Absent when the parameter is optional.","type":"boolean","const":true,"uniqueKey":"data.commands.auto\\.export.parameters.target.required","typeLabel":"boolean"}},"uniqueKey":"data.commands.auto\\.export.parameters.target","typeLabel":"object"},"reserve":{"description":"Present when the device accepts a `reserve` floor on this command. The reserve floor is preserved while the mode is active.","type":"object","properties":{"unit":{"description":"Unit of measure (e.g. `percent`, `kw`).","type":"string","uniqueKey":"data.commands.auto\\.export.parameters.reserve.unit","typeLabel":"string"},"min":{"description":"Lower bound for the parameter value.","type":"number","uniqueKey":"data.commands.auto\\.export.parameters.reserve.min","typeLabel":"number"},"max":{"description":"Upper bound for the parameter value.","type":"number","uniqueKey":"data.commands.auto\\.export.parameters.reserve.max","typeLabel":"number"},"step":{"description":"Increment the value must land on, counted from `min` (or from 0 when no `min` is declared). A value off the grid is rejected. Absent when the device accepts any value within the bounds.","type":"number","uniqueKey":"data.commands.auto\\.export.parameters.reserve.step","typeLabel":"number"},"required":{"description":"`true` when the command cannot run without this parameter. A command that leaves it out is refused with `422 PARAMETER_REQUIRED`, and `error.details.missingParameters` names every missing one. Absent when the parameter is optional.","type":"boolean","const":true,"uniqueKey":"data.commands.auto\\.export.parameters.reserve.required","typeLabel":"boolean"}},"uniqueKey":"data.commands.auto\\.export.parameters.reserve","typeLabel":"object"}},"description":"Parameter bounds for the `auto.export` command. Each canonical parameter is presence-based: a key is included only when the device declares bounds for it. Empty when the command takes no parameters at all.","isRequired":true,"uniqueKey":"data.commands.auto\\.export.parameters","typeLabel":"object"},"execution":{"type":"array","items":{"type":"string","enum":["immediate","scheduled","windowed"],"uniqueKey":"data.commands.auto\\.export.execution.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Execution shapes the device accepts. `immediate` = no `start`; `scheduled` = `start` alone; `windowed` = `start` + `end`.","isRequired":true,"uniqueKey":"data.commands.auto\\.export.execution","typeLabel":"enum\u003cstring>[]"}},"required":["parameters","execution"],"uniqueKey":"data.commands.auto\\.export","typeLabel":"object"}},"description":"Per-canonical-command capability and the per-device source of truth for orchestration. Use it to validate or build push bodies before sending them to `POST /battery/{deviceId}`. Presence-based at every level: a command is included only when the device supports it, and within each command a parameter is included only when the device accepts that parameter. Each present entry carries the parameter bounds and the execution shapes (`immediate` / `scheduled` / `windowed`) the device accepts.","uniqueKey":"data.commands","typeLabel":"object"},"settings":{"type":"object","properties":{"safety_reserve":{"description":"Lowest state-of-charge the battery will ever reach, even during a power cut.","type":"object","properties":{"value":{"oneOf":[{"type":"number","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.safety_reserve.value.oneOf.0","typeLabel":"number"},{"type":"boolean","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.safety_reserve.value.oneOf.1","typeLabel":"boolean"},{"type":"string","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.safety_reserve.value.oneOf.2","typeLabel":"string"},{"type":"null","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.safety_reserve.value.oneOf.3","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.settings.safety_reserve.value","typeLabel":"number | boolean | string | null"},"unit":{"description":"Unit of measure for numeric settings.","type":"string","uniqueKey":"data.settings.safety_reserve.unit","typeLabel":"string"},"min":{"description":"Lower bound for the setting value.","type":"number","uniqueKey":"data.settings.safety_reserve.min","typeLabel":"number"},"max":{"description":"Upper bound for the setting value.","type":"number","uniqueKey":"data.settings.safety_reserve.max","typeLabel":"number"},"step":{"description":"Increment the value must land on, counted from `min` (or from 0 when no `min` is declared). A write off the grid is rejected. Absent when the device accepts any value within the bounds.","type":"number","uniqueKey":"data.settings.safety_reserve.step","typeLabel":"number"}},"required":["value"],"uniqueKey":"data.settings.safety_reserve","typeLabel":"object"},"discharge_floor":{"description":"Lowest state-of-charge the battery will reach during normal operation.","type":"object","properties":{"value":{"oneOf":[{"type":"number","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.discharge_floor.value.oneOf.0","typeLabel":"number"},{"type":"boolean","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.discharge_floor.value.oneOf.1","typeLabel":"boolean"},{"type":"string","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.discharge_floor.value.oneOf.2","typeLabel":"string"},{"type":"null","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.discharge_floor.value.oneOf.3","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.settings.discharge_floor.value","typeLabel":"number | boolean | string | null"},"unit":{"description":"Unit of measure for numeric settings.","type":"string","uniqueKey":"data.settings.discharge_floor.unit","typeLabel":"string"},"min":{"description":"Lower bound for the setting value.","type":"number","uniqueKey":"data.settings.discharge_floor.min","typeLabel":"number"},"max":{"description":"Upper bound for the setting value.","type":"number","uniqueKey":"data.settings.discharge_floor.max","typeLabel":"number"},"step":{"description":"Increment the value must land on, counted from `min` (or from 0 when no `min` is declared). A write off the grid is rejected. Absent when the device accepts any value within the bounds.","type":"number","uniqueKey":"data.settings.discharge_floor.step","typeLabel":"number"}},"required":["value"],"uniqueKey":"data.settings.discharge_floor","typeLabel":"object"},"charge_ceiling":{"description":"Highest state-of-charge the battery will charge to.","type":"object","properties":{"value":{"oneOf":[{"type":"number","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.charge_ceiling.value.oneOf.0","typeLabel":"number"},{"type":"boolean","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.charge_ceiling.value.oneOf.1","typeLabel":"boolean"},{"type":"string","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.charge_ceiling.value.oneOf.2","typeLabel":"string"},{"type":"null","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.charge_ceiling.value.oneOf.3","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.settings.charge_ceiling.value","typeLabel":"number | boolean | string | null"},"unit":{"description":"Unit of measure for numeric settings.","type":"string","uniqueKey":"data.settings.charge_ceiling.unit","typeLabel":"string"},"min":{"description":"Lower bound for the setting value.","type":"number","uniqueKey":"data.settings.charge_ceiling.min","typeLabel":"number"},"max":{"description":"Upper bound for the setting value.","type":"number","uniqueKey":"data.settings.charge_ceiling.max","typeLabel":"number"},"step":{"description":"Increment the value must land on, counted from `min` (or from 0 when no `min` is declared). A write off the grid is rejected. Absent when the device accepts any value within the bounds.","type":"number","uniqueKey":"data.settings.charge_ceiling.step","typeLabel":"number"}},"required":["value"],"uniqueKey":"data.settings.charge_ceiling","typeLabel":"object"},"export_limit":{"description":"Maximum power the battery can send back to the grid.","type":"object","properties":{"value":{"oneOf":[{"type":"number","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.export_limit.value.oneOf.0","typeLabel":"number"},{"type":"boolean","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.export_limit.value.oneOf.1","typeLabel":"boolean"},{"type":"string","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.export_limit.value.oneOf.2","typeLabel":"string"},{"type":"null","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.export_limit.value.oneOf.3","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.settings.export_limit.value","typeLabel":"number | boolean | string | null"},"unit":{"description":"Unit of measure for numeric settings.","type":"string","uniqueKey":"data.settings.export_limit.unit","typeLabel":"string"},"min":{"description":"Lower bound for the setting value.","type":"number","uniqueKey":"data.settings.export_limit.min","typeLabel":"number"},"max":{"description":"Upper bound for the setting value.","type":"number","uniqueKey":"data.settings.export_limit.max","typeLabel":"number"},"step":{"description":"Increment the value must land on, counted from `min` (or from 0 when no `min` is declared). A write off the grid is rejected. Absent when the device accepts any value within the bounds.","type":"number","uniqueKey":"data.settings.export_limit.step","typeLabel":"number"}},"required":["value"],"uniqueKey":"data.settings.export_limit","typeLabel":"object"},"max_charge_rate":{"description":"Maximum rate the battery will charge at.","type":"object","properties":{"value":{"oneOf":[{"type":"number","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.max_charge_rate.value.oneOf.0","typeLabel":"number"},{"type":"boolean","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.max_charge_rate.value.oneOf.1","typeLabel":"boolean"},{"type":"string","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.max_charge_rate.value.oneOf.2","typeLabel":"string"},{"type":"null","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.max_charge_rate.value.oneOf.3","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.settings.max_charge_rate.value","typeLabel":"number | boolean | string | null"},"unit":{"description":"Unit of measure for numeric settings.","type":"string","uniqueKey":"data.settings.max_charge_rate.unit","typeLabel":"string"},"min":{"description":"Lower bound for the setting value.","type":"number","uniqueKey":"data.settings.max_charge_rate.min","typeLabel":"number"},"max":{"description":"Upper bound for the setting value.","type":"number","uniqueKey":"data.settings.max_charge_rate.max","typeLabel":"number"},"step":{"description":"Increment the value must land on, counted from `min` (or from 0 when no `min` is declared). A write off the grid is rejected. Absent when the device accepts any value within the bounds.","type":"number","uniqueKey":"data.settings.max_charge_rate.step","typeLabel":"number"}},"required":["value"],"uniqueKey":"data.settings.max_charge_rate","typeLabel":"object"},"max_discharge_rate":{"description":"Maximum rate the battery will discharge at.","type":"object","properties":{"value":{"oneOf":[{"type":"number","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.max_discharge_rate.value.oneOf.0","typeLabel":"number"},{"type":"boolean","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.max_discharge_rate.value.oneOf.1","typeLabel":"boolean"},{"type":"string","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.max_discharge_rate.value.oneOf.2","typeLabel":"string"},{"type":"null","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.max_discharge_rate.value.oneOf.3","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.settings.max_discharge_rate.value","typeLabel":"number | boolean | string | null"},"unit":{"description":"Unit of measure for numeric settings.","type":"string","uniqueKey":"data.settings.max_discharge_rate.unit","typeLabel":"string"},"min":{"description":"Lower bound for the setting value.","type":"number","uniqueKey":"data.settings.max_discharge_rate.min","typeLabel":"number"},"max":{"description":"Upper bound for the setting value.","type":"number","uniqueKey":"data.settings.max_discharge_rate.max","typeLabel":"number"},"step":{"description":"Increment the value must land on, counted from `min` (or from 0 when no `min` is declared). A write off the grid is rejected. Absent when the device accepts any value within the bounds.","type":"number","uniqueKey":"data.settings.max_discharge_rate.step","typeLabel":"number"}},"required":["value"],"uniqueKey":"data.settings.max_discharge_rate","typeLabel":"object"},"scheduler_enabled":{"description":"Whether the device's native scheduler is active. Auto-managed; read-only.","type":"object","properties":{"value":{"oneOf":[{"type":"number","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.scheduler_enabled.value.oneOf.0","typeLabel":"number"},{"type":"boolean","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.scheduler_enabled.value.oneOf.1","typeLabel":"boolean"},{"type":"string","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.scheduler_enabled.value.oneOf.2","typeLabel":"string"},{"type":"null","description":"Current setting value. null when the device has not synced this setting or the manufacturer does not report its configured value.","isRequired":true,"uniqueKey":"data.settings.scheduler_enabled.value.oneOf.3","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.settings.scheduler_enabled.value","typeLabel":"number | boolean | string | null"},"unit":{"description":"Unit of measure for numeric settings.","type":"string","uniqueKey":"data.settings.scheduler_enabled.unit","typeLabel":"string"},"min":{"description":"Lower bound for the setting value.","type":"number","uniqueKey":"data.settings.scheduler_enabled.min","typeLabel":"number"},"max":{"description":"Upper bound for the setting value.","type":"number","uniqueKey":"data.settings.scheduler_enabled.max","typeLabel":"number"},"step":{"description":"Increment the value must land on, counted from `min` (or from 0 when no `min` is declared). A write off the grid is rejected. Absent when the device accepts any value within the bounds.","type":"number","uniqueKey":"data.settings.scheduler_enabled.step","typeLabel":"number"}},"required":["value"],"uniqueKey":"data.settings.scheduler_enabled","typeLabel":"object"}},"description":"Per-canonical-setting current value and bounds. Presence-based: a field is present when the device exposes that setting, absent when the device does not. The block itself is absent when the device declares no settings.","uniqueKey":"data.settings","typeLabel":"object"},"scheduling":{"type":"object","properties":{"maxSlots":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The largest number of slots a single schedule on this device can hold.","isRequired":true,"uniqueKey":"data.scheduling.maxSlots","typeLabel":"integer"},"supportsRecurrence":{"type":"boolean","description":"Whether this device accepts a `recurrence` rule on a schedule. When `false`, only one-shot schedules are accepted.","isRequired":true,"uniqueKey":"data.scheduling.supportsRecurrence","typeLabel":"boolean"},"slotVariants":{"type":"array","items":{"type":"string","enum":["at","time"],"uniqueKey":"data.scheduling.slotVariants.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"The slot variants this device accepts. `at` = an absolute ISO 8601 timestamp; `time` = a wall-clock `HH:mm` resolved against a schedule-level IANA `timezone`. A schedule may not mix the two.","isRequired":true,"uniqueKey":"data.scheduling.slotVariants","typeLabel":"enum\u003cstring>[]"},"supportedRecurrence":{"description":"The recurrence rules this device accepts, when `supportsRecurrence` is `true`. Absent when the device declares no recurrence support.","type":"array","items":{"type":"string","enum":["daily","weekly"],"uniqueKey":"data.scheduling.supportedRecurrence.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"data.scheduling.supportedRecurrence","typeLabel":"enum\u003cstring>[]"},"minSlotDuration":{"description":"The shortest slot duration this device honours, as an ISO 8601 duration (e.g. `PT15M`). Absent when the device declares no minimum.","type":"string","uniqueKey":"data.scheduling.minSlotDuration","typeLabel":"string"}},"required":["maxSlots","supportsRecurrence","slotVariants"],"description":"The device's scheduling limits (max slots, supported slot variants, recurrence support). Presence-based and published ahead of the scheduler: the whole block is absent until the device declares its scheduling capabilities. Schedules are set on the device via `PUT /{type}/{id}/schedule` (coming soon) and followed today via the `auto.schedule` command.","uniqueKey":"data.scheduling","typeLabel":"object"}},"required":["id","vendor","sync","model","state","conflictStrategies","lastAction","currentSchedule"],"title":"Battery Response","description":"Carries nullable `state` (status, level, capacity, charge/discharge rates), saved `model` and reading `sync` info, the device's writable `settings`, and the per-canonical-command `commands` map. The schema enumerates every canonical command, parameter, and setting because the response shape is uniform across OEMs, but capabilities are presence-based: a real device only exposes the subset its OEM declares. A field is present if the device supports it, absent if it does not.","isRequired":true,"uniqueKey":"data","typeLabel":"Battery Response · object"},"meta":{"type":"object","title":"Response Meta","description":"Metadata attached to every response: the request identifier, the serving environment, the build timestamp, and the server-side latency.","required":["environment","timestamp","latencyMs"],"properties":{"environment":{"type":"string","description":"The environment that served the request (`sandbox` or `live`).","isRequired":true,"uniqueKey":"meta.environment","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp when the response was built.","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string\u003cdate-time>"},"latencyMs":{"type":"integer","description":"Server-side processing time in milliseconds.","isRequired":true,"uniqueKey":"meta.latencyMs","typeLabel":"integer"},"requestId":{"description":"Unique request identifier. Echoes the `x-request-id` header when present; otherwise generated server-side.","type":"string","uniqueKey":"meta.requestId","typeLabel":"string"}},"isRequired":true,"uniqueKey":"meta","typeLabel":"Response Meta · object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"batteryIdle":{"title":"batteryIdle","description":"`status: idle` and `chargeRate: 0`. The device is in `auto.balance` but has nothing to do at the moment. Capabilities map shows the full canonical surface; bounds are typical, not OEM-specific.","value":{"success":true,"data":{"id":"device_abc123","vendor":"example_vendor_a","sync":{"source":"stored","deviceReportedAt":null,"fetchedAt":"2026-05-07T09:23:45.000Z","outdatedBy":null,"refetchAfter":null,"expeditedRefetchAfter":null,"lastFetchAttempt":null},"model":"Hybrid 5kWh","state":{"status":"idle","capacity":10.4,"level":67,"chargeRate":0,"dischargeLimit":10,"currentMode":"auto.balance"},"conflictStrategies":["cancel_and_replace","queue_after"],"commands":{"charge":{"parameters":{"target":{"unit":"percent","min":10,"max":100},"power":{"unit":"kw","min":0,"max":5},"reserve":{"unit":"percent","min":0,"max":100}},"execution":["immediate","scheduled","windowed"]},"discharge":{"parameters":{"target":{"unit":"percent","min":10,"max":100},"power":{"unit":"kw","min":0,"max":5},"reserve":{"unit":"percent","min":0,"max":100}},"execution":["immediate","scheduled","windowed"]},"idle":{"parameters":{},"execution":["immediate","scheduled"]},"auto.balance":{"parameters":{},"execution":["immediate","scheduled"]},"auto.reserve":{"parameters":{},"execution":["immediate","scheduled"]},"auto.export":{"parameters":{},"execution":["immediate","scheduled"]}},"settings":{"safety_reserve":{"value":10,"unit":"percent","min":0,"max":100},"discharge_floor":{"value":20,"unit":"percent","min":0,"max":100},"charge_ceiling":{"value":100,"unit":"percent","min":0,"max":100},"export_limit":{"value":5000,"unit":"watts","min":0},"max_charge_rate":{"value":25,"unit":"amps","min":0},"max_discharge_rate":{"value":25,"unit":"amps","min":0},"scheduler_enabled":{"value":false}},"lastAction":{"start":null,"end":null,"endedAt":null,"id":"action_def456","command":"charge","state":"completed","createdAt":"2026-05-07T08:15:00.000Z","updatedAt":"2026-05-07T08:18:00.000Z","links":{"self":"/actions/action_def456"}},"currentSchedule":null},"meta":{"requestId":"req_8a2Bf3kP","environment":"sandbox","timestamp":"2026-06-02T12:00:00.000Z","latencyMs":12}}},"batteryCharging":{"title":"batteryCharging","description":"`status: charging` with positive `chargeRate`. `currentMode: charge` reflects the active canonical mode.","value":{"success":true,"data":{"id":"device_abc123","vendor":"example_vendor_a","sync":{"source":"live","deviceReportedAt":null,"fetchedAt":"2026-05-07T09:23:45.000Z","outdatedBy":null,"refetchAfter":null,"expeditedRefetchAfter":null,"lastFetchAttempt":{"at":"2026-05-07T09:23:45.000Z","outcome":"succeeded"}},"model":"Hybrid 5kWh","state":{"status":"charging","capacity":10.4,"level":55,"chargeRate":2.4,"dischargeLimit":10,"currentMode":"charge"},"conflictStrategies":["cancel_and_replace","queue_after"],"commands":{"charge":{"parameters":{"target":{"unit":"percent","min":10,"max":100},"power":{"unit":"kw","min":0,"max":5},"reserve":{"unit":"percent","min":0,"max":100}},"execution":["immediate","scheduled","windowed"]},"discharge":{"parameters":{"target":{"unit":"percent","min":10,"max":100},"power":{"unit":"kw","min":0,"max":5},"reserve":{"unit":"percent","min":0,"max":100}},"execution":["immediate","scheduled","windowed"]},"idle":{"parameters":{},"execution":["immediate","scheduled"]},"auto.balance":{"parameters":{},"execution":["immediate","scheduled"]},"auto.reserve":{"parameters":{},"execution":["immediate","scheduled"]},"auto.export":{"parameters":{},"execution":["immediate","scheduled"]}},"settings":{"safety_reserve":{"value":10,"unit":"percent","min":0,"max":100},"discharge_floor":{"value":20,"unit":"percent","min":0,"max":100},"charge_ceiling":{"value":100,"unit":"percent","min":0,"max":100},"export_limit":{"value":5000,"unit":"watts","min":0},"max_charge_rate":{"value":25,"unit":"amps","min":0},"max_discharge_rate":{"value":25,"unit":"amps","min":0},"scheduler_enabled":{"value":false}},"lastAction":{"start":null,"end":null,"endedAt":null,"id":"action_def456","command":"charge","state":"completed","createdAt":"2026-05-07T08:15:00.000Z","updatedAt":"2026-05-07T08:18:00.000Z","links":{"self":"/actions/action_def456"}},"currentSchedule":null},"meta":{"requestId":"req_8a2Bf3kP","environment":"sandbox","timestamp":"2026-06-02T12:00:00.000Z","latencyMs":12}}},"batteryDischarging":{"title":"batteryDischarging","description":"Negative `chargeRate` indicates discharge. `status` is `discharging` and `currentMode` reflects the canonical mode.","value":{"success":true,"data":{"id":"device_abc123","vendor":"example_vendor_a","sync":{"source":"live","deviceReportedAt":null,"fetchedAt":"2026-05-07T09:23:45.000Z","outdatedBy":null,"refetchAfter":null,"expeditedRefetchAfter":null,"lastFetchAttempt":{"at":"2026-05-07T09:23:45.000Z","outcome":"succeeded"}},"model":"Hybrid 5kWh","state":{"status":"discharging","capacity":10.4,"level":38,"chargeRate":-3.1,"dischargeLimit":10,"currentMode":"discharge"},"conflictStrategies":["cancel_and_replace","queue_after"],"commands":{"charge":{"parameters":{"target":{"unit":"percent","min":10,"max":100},"power":{"unit":"kw","min":0,"max":5},"reserve":{"unit":"percent","min":0,"max":100}},"execution":["immediate","scheduled","windowed"]},"discharge":{"parameters":{"target":{"unit":"percent","min":10,"max":100},"power":{"unit":"kw","min":0,"max":5},"reserve":{"unit":"percent","min":0,"max":100}},"execution":["immediate","scheduled","windowed"]},"idle":{"parameters":{},"execution":["immediate","scheduled"]},"auto.balance":{"parameters":{},"execution":["immediate","scheduled"]},"auto.reserve":{"parameters":{},"execution":["immediate","scheduled"]},"auto.export":{"parameters":{},"execution":["immediate","scheduled"]}},"settings":{"safety_reserve":{"value":10,"unit":"percent","min":0,"max":100},"discharge_floor":{"value":20,"unit":"percent","min":0,"max":100},"charge_ceiling":{"value":100,"unit":"percent","min":0,"max":100},"export_limit":{"value":5000,"unit":"watts","min":0},"max_charge_rate":{"value":25,"unit":"amps","min":0},"max_discharge_rate":{"value":25,"unit":"amps","min":0},"scheduler_enabled":{"value":false}},"lastAction":{"start":null,"end":null,"endedAt":null,"id":"action_def456","command":"charge","state":"completed","createdAt":"2026-05-07T08:15:00.000Z","updatedAt":"2026-05-07T08:18:00.000Z","links":{"self":"/actions/action_def456"}},"currentSchedule":null},"meta":{"requestId":"req_8a2Bf3kP","environment":"sandbox","timestamp":"2026-06-02T12:00:00.000Z","latencyMs":12}}},"batteryAutoBalanced":{"title":"batteryAutoBalanced","description":"`currentMode: auto.balance` lets the platform decide when to charge or discharge to minimise grid spend. An `auto.*` mode carries the parameters the device's capability block lists, so a device can show `reserve` (its floor) and `target` (its ceiling) on one.","value":{"success":true,"data":{"id":"device_abc123","vendor":"example_vendor_a","sync":{"source":"stored","deviceReportedAt":null,"fetchedAt":"2026-05-07T09:23:45.000Z","outdatedBy":null,"refetchAfter":null,"expeditedRefetchAfter":null,"lastFetchAttempt":null},"model":"Hybrid 5kWh","state":{"status":"idle","capacity":10.4,"level":72,"chargeRate":0,"dischargeLimit":10,"currentMode":"auto.balance"},"conflictStrategies":["cancel_and_replace","queue_after"],"commands":{"charge":{"parameters":{"target":{"unit":"percent","min":10,"max":100},"power":{"unit":"kw","min":0,"max":5},"reserve":{"unit":"percent","min":0,"max":100}},"execution":["immediate","scheduled","windowed"]},"discharge":{"parameters":{"target":{"unit":"percent","min":10,"max":100},"power":{"unit":"kw","min":0,"max":5},"reserve":{"unit":"percent","min":0,"max":100}},"execution":["immediate","scheduled","windowed"]},"idle":{"parameters":{},"execution":["immediate","scheduled"]},"auto.balance":{"parameters":{},"execution":["immediate","scheduled"]},"auto.reserve":{"parameters":{},"execution":["immediate","scheduled"]},"auto.export":{"parameters":{},"execution":["immediate","scheduled"]}},"settings":{"safety_reserve":{"value":10,"unit":"percent","min":0,"max":100},"discharge_floor":{"value":20,"unit":"percent","min":0,"max":100},"charge_ceiling":{"value":100,"unit":"percent","min":0,"max":100},"export_limit":{"value":5000,"unit":"watts","min":0},"max_charge_rate":{"value":25,"unit":"amps","min":0},"max_discharge_rate":{"value":25,"unit":"amps","min":0},"scheduler_enabled":{"value":false}},"lastAction":{"start":null,"end":null,"endedAt":null,"id":"action_def456","command":"charge","state":"completed","createdAt":"2026-05-07T08:15:00.000Z","updatedAt":"2026-05-07T08:18:00.000Z","links":{"self":"/actions/action_def456"}},"currentSchedule":null},"meta":{"requestId":"req_8a2Bf3kP","environment":"sandbox","timestamp":"2026-06-02T12:00:00.000Z","latencyMs":12}}},"batteryReducedCapabilities":{"title":"batteryReducedCapabilities","description":"Not every device supports every canonical mode. Capabilities are presence-based: a mode key is included only when the device declares it. This device omits the auto.* family and the windowed execution shape. Its manufacturer reports no reserve level, so `state.dischargeLimit` is absent.","value":{"success":true,"data":{"id":"device_xyz789","vendor":"example_vendor_b","sync":{"source":"live","deviceReportedAt":null,"fetchedAt":"2026-05-07T09:24:10.000Z","outdatedBy":null,"refetchAfter":null,"expeditedRefetchAfter":null,"lastFetchAttempt":{"at":"2026-05-07T09:24:10.000Z","outcome":"succeeded"}},"model":"Hybrid Gen 2","state":{"status":"idle","capacity":9.5,"level":42,"chargeRate":0,"currentMode":"idle"},"commands":{"charge":{"parameters":{"target":{"unit":"percent","min":10,"max":100}},"execution":["immediate","scheduled"]},"discharge":{"parameters":{"target":{"unit":"percent","min":10,"max":100}},"execution":["immediate","scheduled"]},"idle":{"parameters":{},"execution":["immediate","scheduled"]}},"conflictStrategies":["cancel_and_replace","queue_after"],"settings":{},"lastAction":{"start":null,"end":null,"endedAt":null,"id":"action_ghi789","command":"discharge","state":"completed","createdAt":"2026-05-07T07:40:00.000Z","updatedAt":"2026-05-07T07:43:00.000Z","links":{"self":"/actions/action_ghi789"}},"currentSchedule":null},"meta":{"requestId":"req_8a2Bf3kP","environment":"sandbox","timestamp":"2026-06-02T12:00:00.000Z","latencyMs":12}}},"batterySimulated":{"title":"batterySimulated","description":"Sandbox state has no manufacturer fetch clocks or attempt.","value":{"success":true,"data":{"id":"device_sandbox_001","vendor":"sandbox","model":"Simulated Battery","sync":{"source":"simulated","deviceReportedAt":null,"fetchedAt":null,"outdatedBy":null,"refetchAfter":null,"expeditedRefetchAfter":null,"lastFetchAttempt":null},"state":{"status":"idle","currentMode":"auto.balance","level":50,"capacity":10,"chargeRate":0},"conflictStrategies":[],"lastAction":null,"currentSchedule":null},"meta":{"requestId":"req_8a2Bf3kP","environment":"sandbox","timestamp":"2026-06-02T12:00:00.000Z","latencyMs":12}}},"batteryNoReading":{"title":"batteryNoReading","description":"A registered device with no reading returns null state and reading clocks. Its declared commands remain available.","value":{"success":true,"data":{"id":"device_minimal_001","vendor":"example_vendor_c","sync":{"source":"none","deviceReportedAt":null,"fetchedAt":null,"outdatedBy":null,"refetchAfter":null,"expeditedRefetchAfter":null,"lastFetchAttempt":null},"model":"Example 5kWh","state":null,"commands":{"charge":{"parameters":{},"execution":["immediate","scheduled"]},"discharge":{"parameters":{},"execution":["immediate","scheduled"]}},"conflictStrategies":["cancel_and_replace","queue_after"],"settings":{},"lastAction":null,"currentSchedule":null},"meta":{"requestId":"req_8a2Bf3kP","environment":"sandbox","timestamp":"2026-06-02T12:00:00.000Z","latencyMs":12}}}},"exampleType":"examples"}},"exampleType":"examples"},"64ef7648-0e38-444d-8f12-c7178b263009":{"description":"The device manufacturer rejected the pull request (`INVALID_PARAMETERS` or `COMMAND_FAILED`).","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Always `false` for error responses.","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["INVALID_CREDENTIALS","INVALID_API_KEY","INVALID_MFA_CODE","MFA_REQUIRED","ACCOUNT_LOCKED","UNSUPPORTED_CREDENTIAL_TYPE","DEVICE_NOT_FOUND","DEVICE_OFFLINE","DEVICE_UNAUTHORIZED","NO_DEVICES_FOUND","COMMAND_FAILED","DEVICE_NOT_CAPABLE","MODE_OVERRIDDEN","VPP_LOCKED","INVALID_PARAMETERS","PARAMETER_REQUIRED","INVALID_OEM_PARAMETERS","INVALID_TIME_WINDOW","BIND_NOT_SUPPORTED","SCHEDULER_ACTIVE","SCHEDULER_FULL","UNSUPPORTED_AUTH_PATH","SETTING_OUT_OF_RANGE","NETWORK_ERROR","RATE_LIMITED","SERVICE_UNAVAILABLE","TIMEOUT","SIMULATED_FAILURE","UNKNOWN_ERROR","VEHICLE_NOT_CONNECTED","CONSENT_REVOKED","CREDENTIAL_NOT_FOUND","CAPABILITY_PAUSED","INVALID_OEM_RESPONSE","COMMAND_NOT_APPLIED","STALE_ACTION","DEFERRED_SCHEDULE_FAILED","UNROUTABLE_ACTION_TYPE","UNAUTHORIZED","EXPIRED_TOKEN","FORBIDDEN","INSUFFICIENT_PERMISSIONS","LIVE_ACCESS_DISABLED","VALIDATION_ERROR","INVALID_INPUT","INVALID_REQUEST_BODY","EMPTY_SETTINGS","PAYLOAD_TOO_LARGE","UNSUPPORTED_MEDIA_TYPE","NOT_FOUND","METHOD_NOT_ALLOWED","CONFLICT","CONFLICT_IN_EXECUTION","GONE","RATE_LIMIT_EXCEEDED","INTERNAL_ERROR","NOT_IMPLEMENTED","BAD_GATEWAY","GATEWAY_TIMEOUT","DEVICE_TYPE_MISMATCH","DEVICE_OVERAGE","SETTINGS_STORE_UNAVAILABLE","ACTION_NOT_FOUND","UNSUPPORTED_PARAMETER_COMBINATION","PARAMETER_OUT_OF_RANGE","START_IN_PAST","START_OUT_OF_RANGE","START_OFFSET_NOT_ACCEPTED","START_INVALID_FORMAT","START_NONEXISTENT_WALL_CLOCK","TIMEZONE_UNRESOLVED","INVALID_TIMEZONE","ACTION_NOT_CANCELLABLE","UNSUPPORTED_SETTING_COMBINATION","INVALID_SETTING_UNIT","INVALID_SETTING_VALUE","NO_OP","NO_OVERRIDE","AVAILABILITY_ENV_UNSUPPORTED","UNSUPPORTED_COMBINATION"],"description":"Machine-readable error code (e.g. `VALIDATION_ERROR`, `CONFLICT`, `DEVICE_NOT_CAPABLE`). Stable across releases; safe to switch on.","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error message.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"description":"Structured context for the error: which fields were invalid, which actions conflicted, which capabilities the device declares. Shape varies by error code.","type":"object","properties":{},"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message"],"description":"Error envelope.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"timestamp":{"type":"string","description":"ISO 8601 timestamp when the error response was built.","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string"},"path":{"type":"string","description":"Request path that produced the error.","isRequired":true,"uniqueKey":"meta.path","typeLabel":"string"},"latencyMs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Server-side processing time in milliseconds.","isRequired":true,"uniqueKey":"meta.latencyMs","typeLabel":"integer"},"requestId":{"description":"Unique request identifier. Echoes the `x-request-id` header when present; otherwise generated server-side.","type":"string","uniqueKey":"meta.requestId","typeLabel":"string"}},"required":["timestamp","path","latencyMs"],"description":"Request metadata.","isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["success","error","meta"],"title":"Error Response","description":"Uniform error response. The `error.code` identifies the failure, `error.message` carries a human-readable explanation, and `error.details` carries structured context (failed fields, conflicting action IDs, supported capabilities) where relevant.","uniqueKey":"","typeLabel":"Error Response · object"},"examples":{"Example":{"title":"Example","value":{"success":true,"error":{"code":"INVALID_CREDENTIALS","message":"\u003cstring>","details":{}},"meta":{"timestamp":"\u003cstring>","path":"\u003cstring>","latencyMs":0,"requestId":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"8a5f1269-3227-4477-969f-244061b9bbd6":{"description":"Invalid or missing API key.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Always `false` for error responses.","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["INVALID_CREDENTIALS","INVALID_API_KEY","INVALID_MFA_CODE","MFA_REQUIRED","ACCOUNT_LOCKED","UNSUPPORTED_CREDENTIAL_TYPE","DEVICE_NOT_FOUND","DEVICE_OFFLINE","DEVICE_UNAUTHORIZED","NO_DEVICES_FOUND","COMMAND_FAILED","DEVICE_NOT_CAPABLE","MODE_OVERRIDDEN","VPP_LOCKED","INVALID_PARAMETERS","PARAMETER_REQUIRED","INVALID_OEM_PARAMETERS","INVALID_TIME_WINDOW","BIND_NOT_SUPPORTED","SCHEDULER_ACTIVE","SCHEDULER_FULL","UNSUPPORTED_AUTH_PATH","SETTING_OUT_OF_RANGE","NETWORK_ERROR","RATE_LIMITED","SERVICE_UNAVAILABLE","TIMEOUT","SIMULATED_FAILURE","UNKNOWN_ERROR","VEHICLE_NOT_CONNECTED","CONSENT_REVOKED","CREDENTIAL_NOT_FOUND","CAPABILITY_PAUSED","INVALID_OEM_RESPONSE","COMMAND_NOT_APPLIED","STALE_ACTION","DEFERRED_SCHEDULE_FAILED","UNROUTABLE_ACTION_TYPE","UNAUTHORIZED","EXPIRED_TOKEN","FORBIDDEN","INSUFFICIENT_PERMISSIONS","LIVE_ACCESS_DISABLED","VALIDATION_ERROR","INVALID_INPUT","INVALID_REQUEST_BODY","EMPTY_SETTINGS","PAYLOAD_TOO_LARGE","UNSUPPORTED_MEDIA_TYPE","NOT_FOUND","METHOD_NOT_ALLOWED","CONFLICT","CONFLICT_IN_EXECUTION","GONE","RATE_LIMIT_EXCEEDED","INTERNAL_ERROR","NOT_IMPLEMENTED","BAD_GATEWAY","GATEWAY_TIMEOUT","DEVICE_TYPE_MISMATCH","DEVICE_OVERAGE","SETTINGS_STORE_UNAVAILABLE","ACTION_NOT_FOUND","UNSUPPORTED_PARAMETER_COMBINATION","PARAMETER_OUT_OF_RANGE","START_IN_PAST","START_OUT_OF_RANGE","START_OFFSET_NOT_ACCEPTED","START_INVALID_FORMAT","START_NONEXISTENT_WALL_CLOCK","TIMEZONE_UNRESOLVED","INVALID_TIMEZONE","ACTION_NOT_CANCELLABLE","UNSUPPORTED_SETTING_COMBINATION","INVALID_SETTING_UNIT","INVALID_SETTING_VALUE","NO_OP","NO_OVERRIDE","AVAILABILITY_ENV_UNSUPPORTED","UNSUPPORTED_COMBINATION"],"description":"Machine-readable error code (e.g. `VALIDATION_ERROR`, `CONFLICT`, `DEVICE_NOT_CAPABLE`). Stable across releases; safe to switch on.","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error message.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"description":"Structured context for the error: which fields were invalid, which actions conflicted, which capabilities the device declares. Shape varies by error code.","type":"object","properties":{},"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message"],"description":"Error envelope.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"timestamp":{"type":"string","description":"ISO 8601 timestamp when the error response was built.","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string"},"path":{"type":"string","description":"Request path that produced the error.","isRequired":true,"uniqueKey":"meta.path","typeLabel":"string"},"latencyMs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Server-side processing time in milliseconds.","isRequired":true,"uniqueKey":"meta.latencyMs","typeLabel":"integer"},"requestId":{"description":"Unique request identifier. Echoes the `x-request-id` header when present; otherwise generated server-side.","type":"string","uniqueKey":"meta.requestId","typeLabel":"string"}},"required":["timestamp","path","latencyMs"],"description":"Request metadata.","isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["success","error","meta"],"title":"Error Response","description":"Uniform error response. The `error.code` identifies the failure, `error.message` carries a human-readable explanation, and `error.details` carries structured context (failed fields, conflicting action IDs, supported capabilities) where relevant.","uniqueKey":"","typeLabel":"Error Response · object"},"examples":{"missingApiKey":{"title":"missingApiKey","value":{"success":false,"error":{"code":"UNAUTHORIZED","message":"Authentication is required.","details":{"description":"API key is required"}},"meta":{"requestId":"req_8sW2dRtX","timestamp":"2026-04-29T12:00:00.000Z","path":"/battery/device_abc123","latencyMs":2}}}},"exampleType":"examples"}},"exampleType":"examples"},"2d84d513-e847-43b2-8e3c-e138e96605e2":{"description":"Live access is disabled, consent is revoked, the device allowance is exceeded, or the manufacturer denied access to the device (`DEVICE_UNAUTHORIZED`).","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Always `false` for error responses.","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["INVALID_CREDENTIALS","INVALID_API_KEY","INVALID_MFA_CODE","MFA_REQUIRED","ACCOUNT_LOCKED","UNSUPPORTED_CREDENTIAL_TYPE","DEVICE_NOT_FOUND","DEVICE_OFFLINE","DEVICE_UNAUTHORIZED","NO_DEVICES_FOUND","COMMAND_FAILED","DEVICE_NOT_CAPABLE","MODE_OVERRIDDEN","VPP_LOCKED","INVALID_PARAMETERS","PARAMETER_REQUIRED","INVALID_OEM_PARAMETERS","INVALID_TIME_WINDOW","BIND_NOT_SUPPORTED","SCHEDULER_ACTIVE","SCHEDULER_FULL","UNSUPPORTED_AUTH_PATH","SETTING_OUT_OF_RANGE","NETWORK_ERROR","RATE_LIMITED","SERVICE_UNAVAILABLE","TIMEOUT","SIMULATED_FAILURE","UNKNOWN_ERROR","VEHICLE_NOT_CONNECTED","CONSENT_REVOKED","CREDENTIAL_NOT_FOUND","CAPABILITY_PAUSED","INVALID_OEM_RESPONSE","COMMAND_NOT_APPLIED","STALE_ACTION","DEFERRED_SCHEDULE_FAILED","UNROUTABLE_ACTION_TYPE","UNAUTHORIZED","EXPIRED_TOKEN","FORBIDDEN","INSUFFICIENT_PERMISSIONS","LIVE_ACCESS_DISABLED","VALIDATION_ERROR","INVALID_INPUT","INVALID_REQUEST_BODY","EMPTY_SETTINGS","PAYLOAD_TOO_LARGE","UNSUPPORTED_MEDIA_TYPE","NOT_FOUND","METHOD_NOT_ALLOWED","CONFLICT","CONFLICT_IN_EXECUTION","GONE","RATE_LIMIT_EXCEEDED","INTERNAL_ERROR","NOT_IMPLEMENTED","BAD_GATEWAY","GATEWAY_TIMEOUT","DEVICE_TYPE_MISMATCH","DEVICE_OVERAGE","SETTINGS_STORE_UNAVAILABLE","ACTION_NOT_FOUND","UNSUPPORTED_PARAMETER_COMBINATION","PARAMETER_OUT_OF_RANGE","START_IN_PAST","START_OUT_OF_RANGE","START_OFFSET_NOT_ACCEPTED","START_INVALID_FORMAT","START_NONEXISTENT_WALL_CLOCK","TIMEZONE_UNRESOLVED","INVALID_TIMEZONE","ACTION_NOT_CANCELLABLE","UNSUPPORTED_SETTING_COMBINATION","INVALID_SETTING_UNIT","INVALID_SETTING_VALUE","NO_OP","NO_OVERRIDE","AVAILABILITY_ENV_UNSUPPORTED","UNSUPPORTED_COMBINATION"],"description":"Machine-readable error code (e.g. `VALIDATION_ERROR`, `CONFLICT`, `DEVICE_NOT_CAPABLE`). Stable across releases; safe to switch on.","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error message.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"description":"Structured context for the error: which fields were invalid, which actions conflicted, which capabilities the device declares. Shape varies by error code.","type":"object","properties":{},"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message"],"description":"Error envelope.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"timestamp":{"type":"string","description":"ISO 8601 timestamp when the error response was built.","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string"},"path":{"type":"string","description":"Request path that produced the error.","isRequired":true,"uniqueKey":"meta.path","typeLabel":"string"},"latencyMs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Server-side processing time in milliseconds.","isRequired":true,"uniqueKey":"meta.latencyMs","typeLabel":"integer"},"requestId":{"description":"Unique request identifier. Echoes the `x-request-id` header when present; otherwise generated server-side.","type":"string","uniqueKey":"meta.requestId","typeLabel":"string"}},"required":["timestamp","path","latencyMs"],"description":"Request metadata.","isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["success","error","meta"],"title":"Error Response","description":"Uniform error response. The `error.code` identifies the failure, `error.message` carries a human-readable explanation, and `error.details` carries structured context (failed fields, conflicting action IDs, supported capabilities) where relevant.","uniqueKey":"","typeLabel":"Error Response · object"},"examples":{"Example":{"title":"Example","value":{"success":true,"error":{"code":"INVALID_CREDENTIALS","message":"\u003cstring>","details":{}},"meta":{"timestamp":"\u003cstring>","path":"\u003cstring>","latencyMs":0,"requestId":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"7306ea68-7494-46b5-b137-5a83d74ffa11":{"description":"Device not found or access denied.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Always `false` for error responses.","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["INVALID_CREDENTIALS","INVALID_API_KEY","INVALID_MFA_CODE","MFA_REQUIRED","ACCOUNT_LOCKED","UNSUPPORTED_CREDENTIAL_TYPE","DEVICE_NOT_FOUND","DEVICE_OFFLINE","DEVICE_UNAUTHORIZED","NO_DEVICES_FOUND","COMMAND_FAILED","DEVICE_NOT_CAPABLE","MODE_OVERRIDDEN","VPP_LOCKED","INVALID_PARAMETERS","PARAMETER_REQUIRED","INVALID_OEM_PARAMETERS","INVALID_TIME_WINDOW","BIND_NOT_SUPPORTED","SCHEDULER_ACTIVE","SCHEDULER_FULL","UNSUPPORTED_AUTH_PATH","SETTING_OUT_OF_RANGE","NETWORK_ERROR","RATE_LIMITED","SERVICE_UNAVAILABLE","TIMEOUT","SIMULATED_FAILURE","UNKNOWN_ERROR","VEHICLE_NOT_CONNECTED","CONSENT_REVOKED","CREDENTIAL_NOT_FOUND","CAPABILITY_PAUSED","INVALID_OEM_RESPONSE","COMMAND_NOT_APPLIED","STALE_ACTION","DEFERRED_SCHEDULE_FAILED","UNROUTABLE_ACTION_TYPE","UNAUTHORIZED","EXPIRED_TOKEN","FORBIDDEN","INSUFFICIENT_PERMISSIONS","LIVE_ACCESS_DISABLED","VALIDATION_ERROR","INVALID_INPUT","INVALID_REQUEST_BODY","EMPTY_SETTINGS","PAYLOAD_TOO_LARGE","UNSUPPORTED_MEDIA_TYPE","NOT_FOUND","METHOD_NOT_ALLOWED","CONFLICT","CONFLICT_IN_EXECUTION","GONE","RATE_LIMIT_EXCEEDED","INTERNAL_ERROR","NOT_IMPLEMENTED","BAD_GATEWAY","GATEWAY_TIMEOUT","DEVICE_TYPE_MISMATCH","DEVICE_OVERAGE","SETTINGS_STORE_UNAVAILABLE","ACTION_NOT_FOUND","UNSUPPORTED_PARAMETER_COMBINATION","PARAMETER_OUT_OF_RANGE","START_IN_PAST","START_OUT_OF_RANGE","START_OFFSET_NOT_ACCEPTED","START_INVALID_FORMAT","START_NONEXISTENT_WALL_CLOCK","TIMEZONE_UNRESOLVED","INVALID_TIMEZONE","ACTION_NOT_CANCELLABLE","UNSUPPORTED_SETTING_COMBINATION","INVALID_SETTING_UNIT","INVALID_SETTING_VALUE","NO_OP","NO_OVERRIDE","AVAILABILITY_ENV_UNSUPPORTED","UNSUPPORTED_COMBINATION"],"description":"Machine-readable error code (e.g. `VALIDATION_ERROR`, `CONFLICT`, `DEVICE_NOT_CAPABLE`). Stable across releases; safe to switch on.","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error message.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"description":"Structured context for the error: which fields were invalid, which actions conflicted, which capabilities the device declares. Shape varies by error code.","type":"object","properties":{},"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message"],"description":"Error envelope.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"timestamp":{"type":"string","description":"ISO 8601 timestamp when the error response was built.","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string"},"path":{"type":"string","description":"Request path that produced the error.","isRequired":true,"uniqueKey":"meta.path","typeLabel":"string"},"latencyMs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Server-side processing time in milliseconds.","isRequired":true,"uniqueKey":"meta.latencyMs","typeLabel":"integer"},"requestId":{"description":"Unique request identifier. Echoes the `x-request-id` header when present; otherwise generated server-side.","type":"string","uniqueKey":"meta.requestId","typeLabel":"string"}},"required":["timestamp","path","latencyMs"],"description":"Request metadata.","isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["success","error","meta"],"title":"Error Response","description":"Uniform error response. The `error.code` identifies the failure, `error.message` carries a human-readable explanation, and `error.details` carries structured context (failed fields, conflicting action IDs, supported capabilities) where relevant.","uniqueKey":"","typeLabel":"Error Response · object"},"examples":{"deviceNotFound":{"title":"deviceNotFound","value":{"success":false,"error":{"code":"DEVICE_NOT_FOUND","message":"No matching device was found for the supplied details.","details":{"description":"Device not found or access denied"}},"meta":{"requestId":"req_5pH1cQbY","timestamp":"2026-04-29T12:00:00.000Z","path":"/battery/device_unknown_999","latencyMs":5}}}},"exampleType":"examples"}},"exampleType":"examples"},"aba8f602-d03d-45fd-81d3-d340a3365a1c":{"description":"The manufacturer returned an unusable reading (`INVALID_OEM_RESPONSE`).","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Always `false` for error responses.","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["INVALID_CREDENTIALS","INVALID_API_KEY","INVALID_MFA_CODE","MFA_REQUIRED","ACCOUNT_LOCKED","UNSUPPORTED_CREDENTIAL_TYPE","DEVICE_NOT_FOUND","DEVICE_OFFLINE","DEVICE_UNAUTHORIZED","NO_DEVICES_FOUND","COMMAND_FAILED","DEVICE_NOT_CAPABLE","MODE_OVERRIDDEN","VPP_LOCKED","INVALID_PARAMETERS","PARAMETER_REQUIRED","INVALID_OEM_PARAMETERS","INVALID_TIME_WINDOW","BIND_NOT_SUPPORTED","SCHEDULER_ACTIVE","SCHEDULER_FULL","UNSUPPORTED_AUTH_PATH","SETTING_OUT_OF_RANGE","NETWORK_ERROR","RATE_LIMITED","SERVICE_UNAVAILABLE","TIMEOUT","SIMULATED_FAILURE","UNKNOWN_ERROR","VEHICLE_NOT_CONNECTED","CONSENT_REVOKED","CREDENTIAL_NOT_FOUND","CAPABILITY_PAUSED","INVALID_OEM_RESPONSE","COMMAND_NOT_APPLIED","STALE_ACTION","DEFERRED_SCHEDULE_FAILED","UNROUTABLE_ACTION_TYPE","UNAUTHORIZED","EXPIRED_TOKEN","FORBIDDEN","INSUFFICIENT_PERMISSIONS","LIVE_ACCESS_DISABLED","VALIDATION_ERROR","INVALID_INPUT","INVALID_REQUEST_BODY","EMPTY_SETTINGS","PAYLOAD_TOO_LARGE","UNSUPPORTED_MEDIA_TYPE","NOT_FOUND","METHOD_NOT_ALLOWED","CONFLICT","CONFLICT_IN_EXECUTION","GONE","RATE_LIMIT_EXCEEDED","INTERNAL_ERROR","NOT_IMPLEMENTED","BAD_GATEWAY","GATEWAY_TIMEOUT","DEVICE_TYPE_MISMATCH","DEVICE_OVERAGE","SETTINGS_STORE_UNAVAILABLE","ACTION_NOT_FOUND","UNSUPPORTED_PARAMETER_COMBINATION","PARAMETER_OUT_OF_RANGE","START_IN_PAST","START_OUT_OF_RANGE","START_OFFSET_NOT_ACCEPTED","START_INVALID_FORMAT","START_NONEXISTENT_WALL_CLOCK","TIMEZONE_UNRESOLVED","INVALID_TIMEZONE","ACTION_NOT_CANCELLABLE","UNSUPPORTED_SETTING_COMBINATION","INVALID_SETTING_UNIT","INVALID_SETTING_VALUE","NO_OP","NO_OVERRIDE","AVAILABILITY_ENV_UNSUPPORTED","UNSUPPORTED_COMBINATION"],"description":"Machine-readable error code (e.g. `VALIDATION_ERROR`, `CONFLICT`, `DEVICE_NOT_CAPABLE`). Stable across releases; safe to switch on.","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error message.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"description":"Structured context for the error: which fields were invalid, which actions conflicted, which capabilities the device declares. Shape varies by error code.","type":"object","properties":{},"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message"],"description":"Error envelope.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"timestamp":{"type":"string","description":"ISO 8601 timestamp when the error response was built.","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string"},"path":{"type":"string","description":"Request path that produced the error.","isRequired":true,"uniqueKey":"meta.path","typeLabel":"string"},"latencyMs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Server-side processing time in milliseconds.","isRequired":true,"uniqueKey":"meta.latencyMs","typeLabel":"integer"},"requestId":{"description":"Unique request identifier. Echoes the `x-request-id` header when present; otherwise generated server-side.","type":"string","uniqueKey":"meta.requestId","typeLabel":"string"}},"required":["timestamp","path","latencyMs"],"description":"Request metadata.","isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["success","error","meta"],"title":"Error Response","description":"Uniform error response. The `error.code` identifies the failure, `error.message` carries a human-readable explanation, and `error.details` carries structured context (failed fields, conflicting action IDs, supported capabilities) where relevant.","uniqueKey":"","typeLabel":"Error Response · object"},"examples":{"Example":{"title":"Example","value":{"success":true,"error":{"code":"INVALID_CREDENTIALS","message":"\u003cstring>","details":{}},"meta":{"timestamp":"\u003cstring>","path":"\u003cstring>","latencyMs":0,"requestId":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"7a334c94-82fd-4c27-aa2f-272b9d0b10f0":{"description":"Amps has temporarily paused this read and refused the request. Retry with exponential backoff.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Always `false` for error responses.","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["INVALID_CREDENTIALS","INVALID_API_KEY","INVALID_MFA_CODE","MFA_REQUIRED","ACCOUNT_LOCKED","UNSUPPORTED_CREDENTIAL_TYPE","DEVICE_NOT_FOUND","DEVICE_OFFLINE","DEVICE_UNAUTHORIZED","NO_DEVICES_FOUND","COMMAND_FAILED","DEVICE_NOT_CAPABLE","MODE_OVERRIDDEN","VPP_LOCKED","INVALID_PARAMETERS","PARAMETER_REQUIRED","INVALID_OEM_PARAMETERS","INVALID_TIME_WINDOW","BIND_NOT_SUPPORTED","SCHEDULER_ACTIVE","SCHEDULER_FULL","UNSUPPORTED_AUTH_PATH","SETTING_OUT_OF_RANGE","NETWORK_ERROR","RATE_LIMITED","SERVICE_UNAVAILABLE","TIMEOUT","SIMULATED_FAILURE","UNKNOWN_ERROR","VEHICLE_NOT_CONNECTED","CONSENT_REVOKED","CREDENTIAL_NOT_FOUND","CAPABILITY_PAUSED","INVALID_OEM_RESPONSE","COMMAND_NOT_APPLIED","STALE_ACTION","DEFERRED_SCHEDULE_FAILED","UNROUTABLE_ACTION_TYPE","UNAUTHORIZED","EXPIRED_TOKEN","FORBIDDEN","INSUFFICIENT_PERMISSIONS","LIVE_ACCESS_DISABLED","VALIDATION_ERROR","INVALID_INPUT","INVALID_REQUEST_BODY","EMPTY_SETTINGS","PAYLOAD_TOO_LARGE","UNSUPPORTED_MEDIA_TYPE","NOT_FOUND","METHOD_NOT_ALLOWED","CONFLICT","CONFLICT_IN_EXECUTION","GONE","RATE_LIMIT_EXCEEDED","INTERNAL_ERROR","NOT_IMPLEMENTED","BAD_GATEWAY","GATEWAY_TIMEOUT","DEVICE_TYPE_MISMATCH","DEVICE_OVERAGE","SETTINGS_STORE_UNAVAILABLE","ACTION_NOT_FOUND","UNSUPPORTED_PARAMETER_COMBINATION","PARAMETER_OUT_OF_RANGE","START_IN_PAST","START_OUT_OF_RANGE","START_OFFSET_NOT_ACCEPTED","START_INVALID_FORMAT","START_NONEXISTENT_WALL_CLOCK","TIMEZONE_UNRESOLVED","INVALID_TIMEZONE","ACTION_NOT_CANCELLABLE","UNSUPPORTED_SETTING_COMBINATION","INVALID_SETTING_UNIT","INVALID_SETTING_VALUE","NO_OP","NO_OVERRIDE","AVAILABILITY_ENV_UNSUPPORTED","UNSUPPORTED_COMBINATION"],"description":"Machine-readable error code (e.g. `VALIDATION_ERROR`, `CONFLICT`, `DEVICE_NOT_CAPABLE`). Stable across releases; safe to switch on.","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error message.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"description":"Structured context for the error: which fields were invalid, which actions conflicted, which capabilities the device declares. Shape varies by error code.","type":"object","properties":{},"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message"],"description":"Error envelope.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"timestamp":{"type":"string","description":"ISO 8601 timestamp when the error response was built.","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string"},"path":{"type":"string","description":"Request path that produced the error.","isRequired":true,"uniqueKey":"meta.path","typeLabel":"string"},"latencyMs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Server-side processing time in milliseconds.","isRequired":true,"uniqueKey":"meta.latencyMs","typeLabel":"integer"},"requestId":{"description":"Unique request identifier. Echoes the `x-request-id` header when present; otherwise generated server-side.","type":"string","uniqueKey":"meta.requestId","typeLabel":"string"}},"required":["timestamp","path","latencyMs"],"description":"Request metadata.","isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["success","error","meta"],"title":"Error Response","description":"Uniform error response. The `error.code` identifies the failure, `error.message` carries a human-readable explanation, and `error.details` carries structured context (failed fields, conflicting action IDs, supported capabilities) where relevant.","uniqueKey":"","typeLabel":"Error Response · object"},"examples":{"readPaused":{"title":"readPaused","value":{"success":false,"error":{"code":"CAPABILITY_PAUSED","message":"Amps has temporarily paused this capability. Try again later."},"meta":{"requestId":"req_GoQ8uBiI","timestamp":"2026-04-29T12:00:00.000Z","path":"/battery/device_abc123","latencyMs":1873}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"6036621f-e0cb-4b05-a7e4-fda259f411e2":{"api-key":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"api-key"}}},"servers":{"602a3b38-b700-49a8-9920-4d675ba763e3":{"url":"https://api.amps.ai","description":"Amps API"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"api-key"},"schema":{"title":"x-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"api-key","name":"x-api-key"}],"title":"api-key"}]},"originalFileLocation":"openapi.json"},"subdomain":"ampsai","siteName":"Amps AI Documentation","title":"Get battery state - Amps AI Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-04T20:27:04.675Z","originalFileLocation":"api-reference/battery/get-battery-state.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Retrieve the current state and capabilities of a battery device.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Amps AI Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ampsai/D0iUhcIybjPx6k0w/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/ampsai/D0iUhcIybjPx6k0w/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ampsai/D0iUhcIybjPx6k0w/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ampsai/D0iUhcIybjPx6k0w/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ampsai/D0iUhcIybjPx6k0w/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ampsai/D0iUhcIybjPx6k0w/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ampsai/D0iUhcIybjPx6k0w/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ampsai/D0iUhcIybjPx6k0w/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ampsai/D0iUhcIybjPx6k0w/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get battery state - Amps AI Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Retrieve the current state and capabilities of a battery device.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Amps AI Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.amps.ai/api-reference/battery/get-battery-state\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ampsai.mintlify.site/_mintlify/api/og/v2?division=Battery\u0026amp;title=Get+battery+state\u0026amp;description=Retrieve+the+current+state+and+capabilities+of+a+battery+device.\u0026amp;theme=1784f3108829d4aa432f4760\u0026amp;signature=81439835cd58b36e8c08ee3ac3929bb282aba932cc93a4a374e6b2f90e5f5bbb\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get battery state - Amps AI Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Retrieve the current state and capabilities of a battery device.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ampsai.mintlify.site/_mintlify/api/og/v2?division=Battery\u0026amp;title=Get+battery+state\u0026amp;description=Retrieve+the+current+state+and+capabilities+of+a+battery+device.\u0026amp;theme=1784f3108829d4aa432f4760\u0026amp;signature=81439835cd58b36e8c08ee3ac3929bb282aba932cc93a4a374e6b2f90e5f5bbb\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/ampsai/D0iUhcIybjPx6k0w/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Amps AI Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ED6D2C\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.amps.ai/api-reference/battery/get-battery-state\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/battery/get-battery-state.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.amps.ai/#organization\",\"name\":\"Amps AI Documentation\",\"url\":\"https://docs.amps.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ampsai/lyKVWQMlZ6RTEJJS/logo/light.svg?fit=max\u0026auto=format\u0026n=lyKVWQMlZ6RTEJJS\u0026q=85\u0026s=a5c3bca6ef6bbaf0ded8639c105c3b75\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.amps.ai#website\",\"name\":\"Amps AI Documentation\",\"url\":\"https://docs.amps.ai\",\"publisher\":{\"@id\":\"https://docs.amps.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.amps.ai/api-reference/battery/get-battery-state#webpage\",\"url\":\"https://docs.amps.ai/api-reference/battery/get-battery-state\",\"name\":\"Get battery state\",\"description\":\"Retrieve the current state and capabilities of a battery device.\",\"dateModified\":\"2026-11-04T20:27:04.675Z\",\"isPartOf\":{\"@id\":\"https://docs.amps.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.amps.ai/api-reference/battery/get-battery-state#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.amps.ai/api-reference/battery/get-battery-state#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.amps.ai/api-reference/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Battery\",\"item\":\"https://docs.amps.ai/api-reference/battery/list-battery-devices\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Get battery state\",\"item\":\"https://docs.amps.ai/api-reference/battery/get-battery-state\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.amps.ai/api-reference/battery/get-battery-state#apireference\",\"headline\":\"Get battery state\",\"name\":\"Get battery state\",\"description\":\"Retrieve the current state and capabilities of a battery device.\",\"url\":\"https://docs.amps.ai/api-reference/battery/get-battery-state\",\"mainEntityOfPage\":{\"@id\":\"https://docs.amps.ai/api-reference/battery/get-battery-state#webpage\"},\"dateModified\":\"2026-11-04T20:27:04.675Z\",\"publisher\":{\"@id\":\"https://docs.amps.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.amps.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Amps AI Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Amps AI Documentation","nav":{"global":null,"pages":[{"group":"Get started","pages":[{"title":"Introduction","href":"/index"},{"title":"Quickstart","href":"/quickstart"},{"title":"Glossary","href":"/glossary"}]},{"group":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"},{"group":"Actions","pages":[{"title":"List actions","deprecated":null,"version":null,"openapi":"/openapi.json get /actions","href":"/api-reference/actions/list-actions"},{"title":"Get action status","deprecated":null,"version":null,"openapi":"/openapi.json get /actions/{actionId}","href":"/api-reference/actions/get-action-status"},{"title":"Cancel a scheduled action","deprecated":null,"version":null,"openapi":"/openapi.json post /actions/{actionId}/cancel","href":"/api-reference/actions/cancel-a-scheduled-action"}]},{"group":"Battery","pages":[{"title":"List battery devices","description":"Returns a paginated list of battery devices the API key can access, each with the last captured `state` and the canonical `commands` map. Live state is not pulled per call. Use `GET /battery/{deviceId}` for an authoritative read.","deprecated":null,"version":null,"openapi":"/openapi.json get /battery","href":"/api-reference/battery/list-battery-devices"},{"title":"Get battery state","deprecated":null,"version":null,"openapi":"/openapi.json get /battery/{deviceId}","href":"/api-reference/battery/get-battery-state"},{"title":"Push battery action","description":"Send a command to a battery device. Immediate actions fire as soon as the platform dispatches them; deferred actions (with `start`) fire at the requested time. The action is processed asynchronously and a webhook is sent on completion.","deprecated":null,"version":null,"openapi":"/openapi.json post /battery/{deviceId}","href":"/api-reference/battery/push-battery-action"},{"title":"Update battery device settings","deprecated":null,"version":null,"openapi":"/openapi.json post /battery/{deviceId}/settings","href":"/api-reference/battery/update-battery-device-settings"},{"title":"Get battery schedule","deprecated":null,"version":null,"openapi":"/openapi.json get /battery/{deviceId}/schedule","href":"/api-reference/battery/get-battery-schedule"},{"title":"Set battery schedule","deprecated":null,"version":null,"openapi":"/openapi.json put /battery/{deviceId}/schedule","href":"/api-reference/battery/set-battery-schedule"},{"title":"Clear battery schedule","deprecated":null,"version":null,"openapi":"/openapi.json delete /battery/{deviceId}/schedule","href":"/api-reference/battery/clear-battery-schedule"}]},{"group":"HVAC","pages":[{"title":"List HVAC devices","deprecated":null,"version":null,"openapi":"/openapi.json get /hvac","href":"/api-reference/hvac/list-hvac-devices"},{"title":"Get HVAC state","deprecated":null,"version":null,"openapi":"/openapi.json get /hvac/{deviceId}","href":"/api-reference/hvac/get-hvac-state"},{"title":"Push HVAC action","deprecated":null,"version":null,"openapi":"/openapi.json post /hvac/{deviceId}","href":"/api-reference/hvac/push-hvac-action"},{"title":"Get HVAC schedule","deprecated":null,"version":null,"openapi":"/openapi.json get /hvac/{deviceId}/schedule","href":"/api-reference/hvac/get-hvac-schedule"},{"title":"Set HVAC schedule","deprecated":null,"version":null,"openapi":"/openapi.json put /hvac/{deviceId}/schedule","href":"/api-reference/hvac/set-hvac-schedule"},{"title":"Clear HVAC schedule","deprecated":null,"version":null,"openapi":"/openapi.json delete /hvac/{deviceId}/schedule","href":"/api-reference/hvac/clear-hvac-schedule"}]},{"group":"EV Charger","pages":[{"title":"List EV Charger devices","deprecated":null,"version":null,"openapi":"/openapi.json get /ev-charger","href":"/api-reference/ev-charger/list-ev-charger-devices"},{"title":"Get EV Charger state","deprecated":null,"version":null,"openapi":"/openapi.json get /ev-charger/{deviceId}","href":"/api-reference/ev-charger/get-ev-charger-state"},{"title":"Push EV Charger action","deprecated":null,"version":null,"openapi":"/openapi.json post /ev-charger/{deviceId}","href":"/api-reference/ev-charger/push-ev-charger-action"},{"title":"Update EV Charger device settings","deprecated":null,"version":null,"openapi":"/openapi.json post /ev-charger/{deviceId}/settings","href":"/api-reference/ev-charger/update-ev-charger-device-settings"},{"title":"Get EV Charger charging sessions","deprecated":null,"version":null,"openapi":"/openapi.json get /ev-charger/{deviceId}/sessions","href":"/api-reference/ev-charger/get-ev-charger-charging-sessions"},{"title":"Get EV Charger schedule","deprecated":null,"version":null,"openapi":"/openapi.json get /ev-charger/{deviceId}/schedule","href":"/api-reference/ev-charger/get-ev-charger-schedule"},{"title":"Set EV Charger schedule","deprecated":null,"version":null,"openapi":"/openapi.json put /ev-charger/{deviceId}/schedule","href":"/api-reference/ev-charger/set-ev-charger-schedule"},{"title":"Clear EV Charger schedule","deprecated":null,"version":null,"openapi":"/openapi.json delete /ev-charger/{deviceId}/schedule","href":"/api-reference/ev-charger/clear-ev-charger-schedule"}]},{"group":"Solar Inverter","pages":[{"title":"List solar inverter devices","deprecated":null,"version":null,"openapi":"/openapi.json get /solar-inverter","href":"/api-reference/solar-inverter/list-solar-inverter-devices"},{"title":"Get Solar Inverter state","deprecated":null,"version":null,"openapi":"/openapi.json get /solar-inverter/{deviceId}","href":"/api-reference/solar-inverter/get-solar-inverter-state"}]},{"group":"Vehicle","pages":[{"title":"List vehicle devices","deprecated":null,"version":null,"openapi":"/openapi.json get /vehicle","href":"/api-reference/vehicle/list-vehicle-devices"},{"title":"Get vehicle state","deprecated":null,"version":null,"openapi":"/openapi.json get /vehicle/{deviceId}","href":"/api-reference/vehicle/get-vehicle-state"}]},{"group":"Users","pages":[{"title":"Revoke user consent","deprecated":null,"version":null,"openapi":"/openapi.json delete /users/{userId}/consent","href":"/api-reference/users/revoke-user-consent"}]},{"group":"Schedules","pages":[{"title":"List schedules","deprecated":null,"version":null,"openapi":"/openapi.json get /schedules","href":"/api-reference/schedules/list-schedules"},{"title":"Get a schedule","deprecated":null,"version":null,"openapi":"/openapi.json get /schedules/{scheduleId}","href":"/api-reference/schedules/get-a-schedule"}]}]},{"group":"Guides","pages":[{"title":"Authentication","href":"/guides/authentication"},{"group":"Link UI","root":{"title":"Link UI","href":"/guides/link-ui"},"pages":[{"title":"Link UI customization","href":"/guides/link-ui/customization"}]},{"title":"Pull","href":"/guides/pull"},{"group":"Push","root":{"title":"Push","href":"/guides/push"},"pages":[{"title":"Conflicts","href":"/guides/push/conflicts"},{"title":"Cancelling","href":"/guides/push/cancelling"}]},{"title":"Scheduling","href":"/guides/scheduling"},{"group":"Error handling","root":{"title":"Error handling","href":"/guides/error-handling"},"pages":[{"title":"Error codes","href":"/guides/error-handling/error-codes"}]},{"group":"Webhooks","root":{"title":"Webhooks","href":"/guides/webhooks"},"pages":[{"title":"Verify signatures","href":"/guides/webhooks/verify-signatures"},{"title":"Events","href":"/guides/webhooks/events"}]},{"group":"Capabilities","root":{"title":"Capabilities","href":"/guides/capabilities"},"pages":[{"title":"Settings","href":"/guides/capabilities/settings"}]},{"title":"AI agents","href":"/guides/ai-agents"}]},{"group":"Cookbooks","pages":[{"group":"Battery","root":{"title":"Battery","href":"/cookbooks/battery"},"pages":[{"title":"Charge in a cheap-rate window","href":"/cookbooks/battery/charge-in-window"},{"title":"Start a charge later","href":"/cookbooks/battery/defer-charge"},{"title":"Discharge during a peak window","href":"/cookbooks/battery/discharge-in-window"},{"title":"Return to self-consumption","href":"/cookbooks/battery/auto-balance"},{"title":"Change a battery setting","href":"/cookbooks/battery/change-settings"}]},{"group":"EV Charger","root":{"title":"EV charger","href":"/cookbooks/ev-charger"},"pages":[{"title":"Start and stop a session","href":"/cookbooks/ev-charger/start-stop-session"},{"title":"Smart charging","href":"/cookbooks/ev-charger/smart-charging"},{"title":"Charge an exact amount","href":"/cookbooks/ev-charger/charge-energy-amount"},{"title":"Cap charging power","href":"/cookbooks/ev-charger/cap-power"},{"title":"Why isn't it charging?","href":"/cookbooks/ev-charger/why-not-charging"},{"title":"Read session history","href":"/cookbooks/ev-charger/session-history"}]},{"group":"HVAC","root":{"title":"HVAC","href":"/cookbooks/hvac"},"pages":[{"title":"Hold a temperature","href":"/cookbooks/hvac/hold-temperature"},{"title":"Heat for a window","href":"/cookbooks/hvac/heat-for-a-window"}]},{"group":"Solar","root":{"title":"Solar","href":"/cookbooks/solar"},"pages":[{"title":"Monitor production","href":"/cookbooks/solar/monitor-production"},{"title":"Charge a battery from solar","href":"/cookbooks/solar/charge-battery-from-solar"}]},{"title":"Vehicle","href":"/cookbooks/vehicle"}]}]},"basePath":"","title":"Get battery state - Amps AI Documentation","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-Dr40SSJq.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js","Markdown-D_k0dg6k.js","clsx-DK3K4Z1S.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DE3EVdvd.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-fN9H9n9g.js"]}