diff --git a/lib/jeedom-api.js b/lib/jeedom-api.js index db64cf8..dfdcfd3 100755 --- a/lib/jeedom-api.js +++ b/lib/jeedom-api.js @@ -1503,8 +1503,10 @@ JeedomClient.prototype.executeDeviceAction = function(ID, action, param) { options = {color:param}; } else if (action == 'GBtoggleSelect') { options = {select:param}; - } else if (!isNaN(parseInt(param))) { + } else if (!isNaN(parseInt(param)) && parseInt(param) == param) { options = {slider:parseInt(param)}; + } else if (!isNaN(parseFloat(param)) && parseFloat(param) == param) { + options = {slider:parseFloat(param)}; } }