switch (Attr.val) {
    case "0":
        Item.val = "Quarantine";
        break;
    case "1":
        Item.val = "Closed";
        break;
    case "2":
        Item.val = "Hold";
        break;
    case "3":
        Item.val = "Open";
        break;
    case "4":
        Item.val = "Open (external), closed (internal)";
        break;
}
switch (Attr.val) {
    case 0:
        Item.val = "Quarantine";
        break;
    case 1:
        Item.val = "Closed";
        break;
    case 2:
        Item.val = "Hold";
        break;
    case 3:
        Item.val = "Open";
        break;
    case 4:
        Item.val = "Open (external), closed (internal)";
        break;
}
Correct Danfoss window states script
Correct Danfoss window states script
