Skip to content

Blinds direction (mode) not set properly #292

@marian-t-web-de

Description

@marian-t-web-de

Bug Description

As shown in my previous bug reports, meanwhile deleted(???), the Blinds direction is not set properly.

In file directions.js one can find following:

SetRangeValue: (request, currentState) => {
   if (currentState.template === 'FAN') {
     return {
       speed: request.directive.payload.rangeValue,
       powerState: request.directive.payload.rangeValue > 0 ? 'ON' : 'OFF',
     }
   } else if (currentState.template === 'BLINDS') {
     return {
       percentage: request.directive.payload.rangeValue,
       mode:
         request.directive.payload.rangeValue == 100
           ? 'Position.Up'
           : 'Position.Down',
     }
   } else {
     return {}
   }
 }, 

Relevant is following:

request.directive.payload.rangeValue == 100 ? 'Position.Up' : 'Position.Down',

means 'Position.Up' willl be set if Blinds are completely closed only. In case 'Alexa mache Rollos 10% auf' will be 'Position.Down' set and Blinds 10% closed. In my opinion is it not correct.

By the way, I'v saved this Bug Report locally, for this case Your 'solution' is deleting it.

Virtual-Smart-Home Version

4.4.5

Node-RED Version

5.2.1

Node.js Version

20.18.0

Plan

FREE

Thing-ID

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions