Implement UP/DOWN/STOP in TelldusCenter Live! plugin. This closes #147.

This commit is contained in:
Micke Prag 2011-12-30 16:33:12 +01:00
parent ed1dc8b2d3
commit d3227ebdf8

View file

@ -60,6 +60,12 @@ com.telldus.live = function() {
com.telldus.core.dim( msg.getInt('id'), msg.getInt('value') ); com.telldus.core.dim( msg.getInt('id'), msg.getInt('value') );
} else if (action == "bell") { } else if (action == "bell") {
com.telldus.core.bell( msg.getInt('id') ); com.telldus.core.bell( msg.getInt('id') );
} else if (action == "up") {
com.telldus.core.up( msg.getInt('id') );
} else if (action == "down") {
com.telldus.core.down( msg.getInt('id') );
} else if (action == "stop") {
com.telldus.core.stop( msg.getInt('id') );
} }
} }
@ -75,7 +81,10 @@ com.telldus.live = function() {
com.telldus.core.TELLSTICK_TURNON | com.telldus.core.TELLSTICK_TURNON |
com.telldus.core.TELLSTICK_TURNOFF | com.telldus.core.TELLSTICK_TURNOFF |
com.telldus.core.TELLSTICK_DIM | com.telldus.core.TELLSTICK_DIM |
com.telldus.core.TELLSTICK_BELL; com.telldus.core.TELLSTICK_BELL |
com.telldus.core.TELLSTICK_UP |
com.telldus.core.TELLSTICK_DOWN |
com.telldus.core.TELLSTICK_STOP;
supportedMethods = supportedMethods & msg.getInt('supportedMethods'); supportedMethods = supportedMethods & msg.getInt('supportedMethods');
isRegistered = true; isRegistered = true;
registrationLinkVisible(false); registrationLinkVisible(false);