The API reference had drifted far from the firmware. Rewritten against the
handlers' commands() lists, field parsing and CommandResult::err() strings:
- Playback: document playback.play / playback.stop (the bare v2
cmd:"playback"+action form returns "Unknown command"; v1 form still works
via LegacyAdapter, and is the only form UART's whitelist accepts). List the
fields Player::setMelodyAttributes() actually parses (url, not download_url),
how mode/duration interact, the legacy segment_duration/total_duration
path, sticky fields, and reply type "playback".
- Response envelope: message (string) + data (object), status INFO only on
WS broadcasts, no "payload" key; req_id is MQTT-only; v defaults per
transport; type exceptions (pong/playback/unknown/parse_error/bad_request).
- Add missing commands: relay.set_config/test_bell/test_batch,
clock.set_config/set_alerts_config/test_c1/test_c2, system.get_config/
get_all/get_telemetry, ota.set_channel, log.get_config, logs.clear, all
telemetry.* and bells.*. Remove nonexistent ota.status/ota.check.
- Fix wrong fields: clock.set_alerts is camelCase, clock.set_silence is
nested, clock.set_time offsets need both fields, clock.set_timezone has no
timezone_name, files.download needs download_url, ota.update defaults to
"stable", RF play-slot fields are required (duration 0 rejected), fix legacy
map to match LegacyAdapter.
- mqtt-events.md: fix the control/command example; note nothing calls
CommandBus::broadcast(). Topic spec: req_id is MQTT-only today.
Doc-only — no catalog entry.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>