Creation of module
Posted: 07 Apr 2014 22:20
Hello,
i would like to create module out of this code:
how can i start?
Thank you
(I have figaro FGS211 switch with two switches - now i cen use them independently - like stairs switch).
Jan
i would like to create module out of this code:
Code: Select all
zway.devices[12].instances[2].SwitchBinary.data.level.bind( function() {
var status = zway.devices[12].SwitchBinary.data.level.value;
debugPrint("============================= Spinac 12 ve stavu: " + status);
if(status == 255)
zway.devices[12].SwitchBinary.Set(0);
else
zway.devices[12].SwitchBinary.Set(255);
});
Thank you
(I have figaro FGS211 switch with two switches - now i cen use them independently - like stairs switch).
Jan