Alex2Node/dist/types
David 2cbcde563e device: changeReport(cause, fill) sends a ChangeReport on the 2.0 API
The design has it (section 5) and 2.0 lacked it: a ChangeReport could only be
sent with getChangeReport() of 1.x, which has no helper for a contact or a
motion sensor. fill sets what changed, and after unchanged() what did not;
the rest of the context is the state of device.state(). The report goes to
<root>/changeReport. It throws MessageError without a changed property and
resolves with the failure when the device is on no bridge, as raise() does.
Four tests in test/device/raise.test.js.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 21:37:37 +00:00
..
compat errors: typed helpers for every documented error type 2026-09-28 21:14:55 +00:00
device device: changeReport(cause, fill) sends a ChangeReport on the 2.0 API 2026-09-28 21:37:37 +00:00
messages errors: typed helpers for every documented error type 2026-09-28 21:14:55 +00:00
registry errors: typed helpers for every documented error type 2026-09-28 21:14:55 +00:00
Alex2Node.d.ts dispatch: typed handlers, respond/defer/error, automatic ErrorResponse, watchdog 2026-09-28 19:49:41 +00:00
dispatcher.d.ts bridge: a discovery request that arrives twice is answered once 2026-09-28 21:16:50 +00:00
index.d.ts errors: typed helpers for every documented error type 2026-09-28 21:14:55 +00:00
topics.d.ts registry: SceneController events, DoorbellEventSource, SimpleEventSource, TimeHoldController, InventoryLevelSensor, WakeOnLANController 2026-09-28 21:01:53 +00:00
transport.d.ts dispatch: typed handlers, respond/defer/error, automatic ErrorResponse, watchdog 2026-09-28 19:49:41 +00:00