File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -878,13 +878,13 @@ export class Curtain extends deviceBase {
878
878
879
879
async setMinMax ( ) : Promise < void > {
880
880
if ( ( this . device as curtainConfig ) . set_min ) {
881
- if ( Number ( this . WindowCovering . CurrentPosition ) < = ( this . device as curtainConfig ) . set_min ! ) {
882
- this . WindowCovering . CurrentPosition = 0
881
+ if ( Number ( this . WindowCovering . CurrentPosition ) > = ( this . device as curtainConfig ) . set_min ! ) {
882
+ this . WindowCovering . CurrentPosition = 100
883
883
}
884
884
}
885
885
if ( ( this . device as curtainConfig ) . set_max ) {
886
- if ( Number ( this . WindowCovering . CurrentPosition ) > = ( this . device as curtainConfig ) . set_max ! ) {
887
- this . WindowCovering . CurrentPosition = 100
886
+ if ( Number ( this . WindowCovering . CurrentPosition ) < = ( this . device as curtainConfig ) . set_max ! ) {
887
+ this . WindowCovering . CurrentPosition = 0
888
888
}
889
889
}
890
890
if ( this . device . history ) {
You can’t perform that action at this time.
0 commit comments