Actions vs settings
If it makes sense with a time window, it’s an action. “Charge from 6pm to 10pm” is an action. “Never discharge below 20%” is a setting.
Settings are available on batteries and EV chargers. The EV charger routes are
POST /ev-charger/{deviceId} and POST /ev-charger/{deviceId}/settings.
Read settings
Settings come back on the device read, with the current value and the bounds this device accepts.value: null. If the settings read fails, every declared setting has a null value. See Freshness.
Change settings
Send only the settings you want to change. Numeric settings are{ value, unit }; on/off settings are { value }.
sync.outdatedBy. See Freshness for when to read the new values.
Battery settings
EV charger settings
max_charge_rate and max_charge_current set one ceiling in two units. A charger that holds a single rate refuses both in one request with UNSUPPORTED_SETTING_COMBINATION. Send one.
The battery and EV charger max_charge_rate use different units: current in amps for batteries, power in kW for chargers. Always send the unit the read declares.
Bounds
Readmin, max and optional step before writing. Limits can narrow the setting’s shared range for this device.
step counts from min, or from 0 when min is absent. Out-of-range and off-step values are refused without rounding or clamping.
Errors
Manufacturer errors can also come back directly, for example
SCHEDULER_ACTIVE (409) on a battery or VEHICLE_NOT_CONNECTED (409) on a charger. See Error codes.
Next steps
Capabilities
How devices declare what they accept.
Push
Send commands to a device.
Error codes
Every code, its status, and what triggers it.