0
Beantwoord

KNX JS

Yeliz Tarhan 6 jaar geleden in iRidium Script bijgewerkt door Ekaterina (head of support) 6 jaar geleden 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.
Beantwoord
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);