Skip to content

Commit

Permalink
added new value for 'vaneHorizontalDirection': 50/50 (1 vane left, 1 …
Browse files Browse the repository at this point in the history
…vane right - only for models with 2 independent horizontal vanes)
  • Loading branch information
Black-Thunder committed Jun 5, 2020
1 parent aa59ac1 commit d98f380
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/melcloudDevice.js
Expand Up @@ -486,6 +486,7 @@ class MelcloudDevice {
3: "MIDDLE",
4: "RIGHT",
5: "RIGHTMOST",
8: "50/50",
12: "SWING"
},
read: true,
Expand Down Expand Up @@ -725,7 +726,7 @@ class MelcloudDevice {
}
return value;
case commonDefines.DeviceOptions.VaneHorizontalDirection:
if (value < 0 || value > 5 && value != 12) {
if (value < 0 || value > 5 && value != 8 && value != 12) {
gthat.log.info("VaneHorizontalDirection: unsupported value '" + value + "' - falling back to '0'!");
value = 0;
}
Expand Down

0 comments on commit d98f380

Please sign in to comment.