diff --git a/lib/jeedom-api.js b/lib/jeedom-api.js index 7de41bb..dc11a27 100755 --- a/lib/jeedom-api.js +++ b/lib/jeedom-api.js @@ -242,6 +242,7 @@ JeedomClient.prototype.executeDeviceAction = function(ID, action, param) { id:(Math.floor(Math.random() * 1000)), method:"cmd::execCmd", params:{ + plugin:that.myPlugin, apikey:that.apikey, id:ID, options:options, @@ -266,6 +267,7 @@ JeedomClient.prototype.executeScenarioAction = function(ID, action) { id:(Math.floor(Math.random() * 1000)), method:"scenario::changeState", params:{ + plugin:that.myPlugin, apikey:that.apikey, id:ID, state:action, @@ -290,6 +292,7 @@ JeedomClient.prototype.refreshStates = function() { id:(Math.floor(Math.random() * 1000)), method:"event::changes", params:{ + plugin:that.myPlugin, apikey:that.apikey, longPolling:30, datetime:that.Plateform.lastPoll,