Update SetHeatMode to support other heater types

Thanks to @afri in #1
This commit is contained in:
2025-03-21 12:03:07 -05:00
parent 458048b58a
commit b37f96fc08
13 changed files with 111 additions and 35 deletions

View File

@ -1,6 +1,7 @@
"use strict";
import { FindUnits, Unit } from "./index.js";
import * as messages from "./messages/messages.js";
// import { HeaterType } from "./messages/set-heater.js";
const example = async () => {
console.log("searching...");
const f = new FindUnits();
@ -58,7 +59,7 @@ const example = async () => {
// 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));
// resp = await unit.send(messages.SetHeatMode("B1202", HeaterType.MasterTemp));
// console.log("got response:", JSON.stringify(resp, null, 2));
unit.close();
};