Skip to content

Commit

Permalink
Add state roles
Browse files Browse the repository at this point in the history
  • Loading branch information
mattreim committed Nov 3, 2024
1 parent 0d23ca7 commit 44ad0ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2696,7 +2696,7 @@ async function SetObjectAndState(id, name, type, stateName, value) {
break;
case "fanmode":
objType = "string";
objRole = "state";
objRole = "level.mode.fan";
objDefault = "auto";
objStates = {
off: "off",
Expand Down Expand Up @@ -2925,7 +2925,7 @@ async function SetObjectAndState(id, name, type, stateName, value) {
break;
case "preset":
objType = "string";
objRole = "state";
objRole = "level.mode.thermostat";
objDefault = "manual";
objStates = {
holiday: "holiday",
Expand Down Expand Up @@ -2972,7 +2972,7 @@ async function SetObjectAndState(id, name, type, stateName, value) {
break;
case "schedule_on":
objType = "boolean";
objRole = "state";
objRole = "switch";
break;
case "setvalve":
objType = "boolean";
Expand Down

0 comments on commit 44ad0ac

Please sign in to comment.