Alex2Node/dist/types/device
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
..
Capability.d.ts dispatch: typed handlers, respond/defer/error, automatic ErrorResponse, watchdog 2026-09-28 19:49:41 +00:00
Device.d.ts device: changeReport(cause, fill) sends a ChangeReport on the 2.0 API 2026-09-28 21:37:37 +00:00
validate.d.ts discovery: generate capability JSON from the registry 2026-09-28 15:35:46 +00:00