All checks were successful
Build & Deploy docs / build-deploy (push) Successful in 3m52s
Le badge PUBLIC de PermissionScopeNone devient AUTH : sur un transport authentifié, nymea exige un token valide pour toute méthode sauf JSONRPC.Hello, Authenticate et RequestPushButtonAuth (jsonrpcserverimplementation.cpp, tag 1.15.2). « Lecture publique, aucun token requis » était faux, en trois langues. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1.9 KiB
1.9 KiB
hide
| hide | |
|---|---|
|
!!! info "Reference in English" The method, field and type names and the descriptions below are the API's own, in English. They are left verbatim: they are the exact strings you will write in your requests.
JSON-RPC API reference
ETM PowerSync exposes nymea's JSON-RPC API locally, including the ETM
extensions (Energy, AirConditioning, EvDash).
Connection
| Mode | Address | Notes |
|---|---|---|
| Raw TCP | <ip>:2222 |
nymea speaks first (welcome JSON, \n-delimited) |
| WebSocket | ws://<ip>:4444 |
the client sends JSONRPC.Hello first |
Authentication
- Call
JSONRPC.Authenticatewithusername,passwordanddeviceName→ you receive atoken. - Include the
tokenin every subsequent request. - Enable push:
JSONRPC.SetNotificationStatus{ "enabled": true }.
Energy conventions
| Quantity | Convention |
|---|---|
| PV output | negative value (producer convention) |
currentPowerAcquisition |
grid — positive = import, 0 when exporting |
currentPowerStorage |
battery — positive = charging, negative = discharging |
| Energy totals | in kWh |
| Timestamps | in seconds (Unix epoch) |
Permission badges
| Badge | Scope | Description |
|---|---|---|
| AUTH | PermissionScopeNone |
Any authenticated account (token required whenever the transport requires authentication; only JSONRPC.Hello, Authenticate and RequestPushButtonAuth work without one) |
| CONTROL | PermissionScopeControlThings / ExecuteRules |
Control of things and rules |
| CONFIGURE | PermissionScopeConfigureThings / ConfigureRules |
Configuration |
| ADMIN | PermissionScopeAdmin |
System administration |