Skip to content

Commit

Permalink
corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
mattreim authored Feb 22, 2024
1 parent 2f2fd84 commit 57255b7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2506,8 +2506,8 @@ async function SetObjectAndState(id, name, type, stateName, value) {
objWrite = false;
objMin = 0;
objMax = 100;
objUnit = "%";
objDefault = 0;
objUnit = "%";
break;
case "bri":
objType = "number";
Expand Down Expand Up @@ -2559,7 +2559,7 @@ async function SetObjectAndState(id, name, type, stateName, value) {
objRole = "level.temperature";
objMin = 7.0;
objMax = 35.0;
objDefault = 0;
objDefault = 18.0;
objUnit = "°C";
value = value / 100;
break;
Expand Down Expand Up @@ -2698,6 +2698,7 @@ async function SetObjectAndState(id, name, type, stateName, value) {
case "fanmode":
objType = "string";
objRole = "state";
objDefault = "auto";
objStates = {
off: "off",
low: "low",
Expand All @@ -2722,6 +2723,7 @@ async function SetObjectAndState(id, name, type, stateName, value) {
objType = "number";
objRole = "value.temperature";
objWrite = false;
objDefault = 0;
objUnit = "°C";
value = value / 100;
break;
Expand Down Expand Up @@ -2771,6 +2773,7 @@ async function SetObjectAndState(id, name, type, stateName, value) {
case "interfacemode":
objType = "number";
objRole = "state";
objDefault = 0;
break;
case "lastset":
objType = "string";
Expand Down Expand Up @@ -2843,6 +2846,7 @@ async function SetObjectAndState(id, name, type, stateName, value) {
objType = "number";
objRole = "state";
objWrite = false;
objDefault = 0;
break;
case "melody":
objType = "number";
Expand Down Expand Up @@ -2932,6 +2936,7 @@ async function SetObjectAndState(id, name, type, stateName, value) {
objRole = "value";
objMin = 0;
objMax = 65535;
objDefault = 0;
break;
case "reachable":
objType = "boolean";
Expand Down Expand Up @@ -3074,6 +3079,7 @@ async function SetObjectAndState(id, name, type, stateName, value) {
case "triggerdistance":
objType = "string";
objRole = "state";
objUnit = "m";
break;
case "usertest":
objType = "boolean";
Expand All @@ -3089,6 +3095,7 @@ async function SetObjectAndState(id, name, type, stateName, value) {
objRole = "value.valve";
objWrite = false;
objDefault = 0;
objUnit = "%";
break;
case "voltage":
objType = "number";
Expand Down Expand Up @@ -3123,6 +3130,7 @@ async function SetObjectAndState(id, name, type, stateName, value) {
objRole = "state";
objMin = 0;
objMax = 9;
objDefault = 0;
break;
case "windowopen":
objType = "string";
Expand Down

0 comments on commit 57255b7

Please sign in to comment.