From 0d23ca7d7acbbab3f2dc74f0ca7dfaaafbb96604 Mon Sep 17 00:00:00 2001 From: mattreim <80219712+mattreim@users.noreply.github.com> Date: Sun, 3 Nov 2024 13:56:54 +0100 Subject: [PATCH] Fix schedule objects --- main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 5b3226f..4496432 100755 --- a/main.js +++ b/main.js @@ -296,6 +296,7 @@ class deconz extends utils.Adapter { case "offset": case "pulseconfiguration": case "resetpresence": + case "schedule_on": case "setvalve": case "sensitivity": case "speed": @@ -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}" }`; @@ -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": @@ -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";