Alex2Node/dist
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
..
cjs device: changeReport(cause, fill) sends a ChangeReport on the 2.0 API 2026-09-28 21:37:37 +00:00
esm device: changeReport(cause, fill) sends a ChangeReport on the 2.0 API 2026-09-28 21:37:37 +00:00
types device: changeReport(cause, fill) sends a ChangeReport on the 2.0 API 2026-09-28 21:37:37 +00:00