diff --git a/FHEM/36_Shelly.pm b/FHEM/36_Shelly.pm index f3afcb201..8b58b2c69 100644 --- a/FHEM/36_Shelly.pm +++ b/FHEM/36_Shelly.pm @@ -39,7 +39,7 @@ use vars qw{%attr %defs}; sub Log($$); #-- globals on start -my $version = "2.04"; +my $version = "2.05"; #-- these we may get on request my %gets = ( @@ -585,7 +585,7 @@ sub Shelly_Set ($@) { $max = 20; } $time = int(abs($targetpct-$pct)/100*$max); - $cmd = "?go=to_pos&roller_pos=".$targetpct; + $cmd = "?go=to_pos&roller_pos=" . ($pctnormal ? $targetpct : 100 - $targetpct); $hash->{MOVING} = $pctnormal ? (($targetpct > $pct) ? "moving_up" : "moving_down") : (($targetpct > $pct) ? "moving_down" : "moving_up"); $hash->{DURATION} = $time;