I'm new here and I'm looking for some help,
The OpenRemote module working for me good but i'm trying to use him in other way.
In the file index.js
I added to "Toggle" command and it's working good but my next step was to add to the return function the node id number + the real status for example : "4:on" "4:off"
someone can help me?
the tog code
Code: Select all
case "SwitchBinaryTog":
if (zway.devices[N].instances[I].SwitchBinary.data.level.value == 0)
{
zway.devices[N].instances[I].SwitchBinary.Set(255);
return "on";
}
zway.devices[N].instances[I].SwitchBinary.Set(0);
return "off";