0
Answered

KNX JS

Yeliz Tarhan 4 years ago in iRidium Script updated by Ekaterina (head of support) 4 years ago 1
Hello,

How can I change the value of the KNX ? (JS,if else)

Examples, IR.GetDevice("KNX IP Router").Set(1,"koltukustu"); --------- doesnt work.



if (IR.GetDevice("KNX IP Router").Set(1,"koltukustu"))
{
IR.Exit; ------------------doesnt work
}



help me,please.. Thanks.
Answered
Hello

It's a command, you cannot use it as a condition. Please see the description of Set instruction.

IR.GetDevice(<driver>).Set(<command name>, <value>);
for example
IR.GetDevice("KNX IP Router").Set("koltukustu", 1);