Skip to content

Commit

Permalink
Fix schedule objects
Browse files Browse the repository at this point in the history
  • Loading branch information
mattreim committed Nov 3, 2024
1 parent d751264 commit 0d23ca7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ class deconz extends utils.Adapter {
case "offset":
case "pulseconfiguration":
case "resetpresence":
case "schedule_on":
case "setvalve":
case "sensitivity":
case "speed":
Expand All @@ -316,6 +317,7 @@ class deconz extends utils.Adapter {
case "fanmode":
case "mode":
case "preset":
case "schedule":
case "swingmode":
case "triggerdistance":
parameters = `{ "${dp}": "${state.val}" }`;
Expand Down Expand Up @@ -2733,6 +2735,7 @@ async function SetObjectAndState(id, name, type, stateName, value) {
case "group":
objType = "number";
objRole = "state";
objWrite = false;
value = parseInt(value);
break;
case "heatsetpoint":
Expand Down Expand Up @@ -2967,10 +2970,9 @@ async function SetObjectAndState(id, name, type, stateName, value) {
objType = "string";
objRole = "state";
break;
case "scheduleron":
case "schedule_on":
objType = "boolean";
objRole = "state";
objWrite = false;
break;
case "setvalve":
objType = "boolean";
Expand Down

0 comments on commit 0d23ca7

Please sign in to comment.