Skip to content

Commit

Permalink
Update jeedom-api.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NebzHB authored Jan 24, 2024
1 parent 3d45a1a commit b340022
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/jeedom-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit b340022

Please sign in to comment.