lupinglade
Senior Member
Regardless of whether you decide to switch to HLC, this is useful for links where the link affects more than just a single room. Scripting it in HaikuHelper would not be difficult at all, along the lines of:
function onUPBLink(cmd, link) {
if(cmd == 1 && link == 240) {
controller.unitWithNumber(10).requestStatus();
} else if(cmd == 0 && link == 241) {
controller.unitWithNumber(11).requestStatus();
controller.unitWithNumber(12).requestStatus();
// etc...
}
// etc...
}
The way you actually want to handle the logic is of course up to you.
function onUPBLink(cmd, link) {
if(cmd == 1 && link == 240) {
controller.unitWithNumber(10).requestStatus();
} else if(cmd == 0 && link == 241) {
controller.unitWithNumber(11).requestStatus();
controller.unitWithNumber(12).requestStatus();
// etc...
}
// etc...
}
The way you actually want to handle the logic is of course up to you.