From 9d1c68a09fb7914e19af8d987fb8d90824d9b032 Mon Sep 17 00:00:00 2001 From: phenning <> Date: Tue, 30 Jul 2019 19:20:35 +0000 Subject: [PATCH] 36_Shelly.pm: Bugfix roller mode git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@19923 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/36_Shelly.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;