From d3227ebdf855d8b9288f77b24f98ae724aebe4cf Mon Sep 17 00:00:00 2001 From: Micke Prag Date: Fri, 30 Dec 2011 16:33:12 +0100 Subject: [PATCH] Implement UP/DOWN/STOP in TelldusCenter Live! plugin. This closes #147. --- telldus-gui/Plugins/Live/__init__.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/telldus-gui/Plugins/Live/__init__.js b/telldus-gui/Plugins/Live/__init__.js index 75ec567d..1fbb20f0 100644 --- a/telldus-gui/Plugins/Live/__init__.js +++ b/telldus-gui/Plugins/Live/__init__.js @@ -60,6 +60,12 @@ com.telldus.live = function() { com.telldus.core.dim( msg.getInt('id'), msg.getInt('value') ); } else if (action == "bell") { 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_TURNOFF | 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'); isRegistered = true; registrationLinkVisible(false);