diff --git a/main.js b/main.js index 002f1bb..d25a8c5 100755 --- a/main.js +++ b/main.js @@ -176,18 +176,14 @@ class deconz extends utils.Adapter { } break; case "colorspeed": - let effect = await this.getStateAsync( - this.name + "." + this.instance + "." + id + ".effect" - ); + let effect = await this.getStateAsync(this.name + "." + this.instance + "." + id + ".effect"); if (effect && effect.val === "colorloop") { parameters = '{"colorloopspeed": ' + state.val + ', "effect": "colorloop"}'; } break; case "effect": if (state.val === "colorloop") { - const speed = await this.getStateAsync( - this.name + "." + this.instance + "." + id + ".colorspeed" - ); + const speed = await this.getStateAsync(this.name + "." + this.instance + "." + id + ".colorspeed"); if (speed.val === null || speed.val === undefined) { speed.val = 1; } @@ -231,9 +227,7 @@ class deconz extends utils.Adapter { case "dimup": case "dimdown": oid; - let dimspeed = await this.getStateAsync( - this.name + "." + this.instance + "." + id + ".dimspeed" - ); + let dimspeed = await this.getStateAsync(this.name + "." + this.instance + "." + id + ".dimspeed"); if (dimspeed === null || dimspeed === undefined || dimspeed.val === 0) { @@ -2560,6 +2554,8 @@ async function SetObjectAndState(id, name, type, stateName, value) { case "coolsetpoint": objType = "number"; objRole = "level.temperature"; + objMin = 700; + objMax = 3500; objDefault = 0; objUnit = "°C"; value = value / 100; @@ -2686,6 +2682,8 @@ async function SetObjectAndState(id, name, type, stateName, value) { case "externalsensortemp": objType = "number"; objRole = "level.temperature"; + objMin = -32768; + objMax = 32767; objDefault = 0; objUnit = "°C"; value = value / 100; @@ -2732,6 +2730,8 @@ async function SetObjectAndState(id, name, type, stateName, value) { case "heatsetpoint": objType = "number"; objRole = "level.temperature"; + objMin = 500; + objMax = 3200; objDefault = 20.0; objUnit = "°C"; value = value / 100;