rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.91k stars 557 forks source link

Cover - Position slider works in reverse #361

Open kspijkers opened 3 years ago

kspijkers commented 3 years ago

I've got 2 cover switches type Loratap sc400w-eu working in the Local Tuya integration. I've put Positioning mode on 'timed' with the corresponding opening time in secs. for each cover.

Now my position sliders for both switches are working in reverse. So value 100 is cover fully opened and value 0 is cover fully closed. The checkbox to invert 0-100 position works for position mode only, as stated in the configuration menu.

Is it possible to make the invert option also available for the timed positioning mode?

image

image

dingausmwald commented 3 years ago

Odd for me too, since windows meant to be clear as default, this should be 0% (0% extended blinds). But for other systems (google home, amazon?) 100% is open when im not mistaking. Smartlife app it is 0% = open.

A option would be nice, but then you have to have an option to change buttons too. I have both cover types, controlled by time and position. For my position ones, default is 0=open and 100=close. But the buttons are upside down. When i tick the checkbox to reverse, everything changes, including the buttons. So my only solution is 100% open and 0% close.

oxelwhy commented 3 years ago

Odd for me too, since windows meant to be clear as default, this should be 0% (0% extended blinds). But for other systems (google home, amazon?) 100% is open when im not mistaking. Smartlife app it is 0% = open.

A option would be nice, but then you have to have an option to change buttons too. I have both cover types, controlled by time and position. For my position ones, default is 0=open and 100=close. But the buttons are upside down. When i tick the checkbox to reverse, everything changes, including the buttons. So my only solution is 100% open and 0% close.

I managed to get 0% for open, but when the curtain automatically stop at open. The display will be hidden.

image

dingausmwald commented 3 years ago

This just happens for a short time for me. In the period between home assistant is at 0% already but the curtain isnt. Maybe im mistakin, but you should setup the runtime of your curtains (via smartlife app, or button schema on device). Maybe your position field isnt setup right. For me, current position was 3, and set position was 2.

oxelwhy commented 3 years ago

Ya, same. My settings current position is 3 and set position is 2. On Tuya app, the 0% meaning open and 100% close (exactly same as the percentage set in this localtuya). The only thing is that when the 0% position, it is grey out as shown on picture, but if I click the stop button, the arrow up is lighted up.

I see that when blinds actually open ( the localtuya see it as closed, that the reason the arrow up became clickable) and vice version. Perhaps can just invert the logic for this?

WarlaxZ commented 2 years ago

use position and click the invert position button