Rename Item to Object

The API all calls these objects so best to go with the flow.

This is a breaking change.
This commit is contained in:
2025-01-05 11:56:53 -06:00
parent 21d62549d3
commit abe9ba7d95
16 changed files with 55 additions and 55 deletions

4
dist/example.js vendored
View File

@ -48,10 +48,10 @@ console.log("got response:", JSON.stringify(resp, null, 2));
// resp = await unit.send(messages.SetSetpoint("B1202", 97));
// console.log("got response:", JSON.stringify(resp, null, 2));
// console.log("turning off pool...");
// resp = await unit.send(messages.SetItemStatus("B1101", false));
// resp = await unit.send(messages.SetObjectStatus("B1101", false));
// console.log("got response:", JSON.stringify(resp, null, 2));
// console.log("turning off water feature...");
// resp = await unit.send(messages.SetItemStatus("C0003", false));
// resp = await unit.send(messages.SetObjectStatus("C0003", false));
// console.log("got response:", JSON.stringify(resp, null, 2));
// console.log("sending Set Heatmode request...");
// resp = await unit.send(messages.SetHeatMode("B1202", true));