36_Shelly.pm: Neue Version mit optionaoem Parameter für Rollläden

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@24222 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
phenning 2021-04-11 17:27:47 +00:00
parent b8423da580
commit 61a8b34834

View File

@ -679,7 +679,7 @@ sub Shelly_Set ($@) {
# -- estimate pos here ???
$hash->{DURATION} = 0;
}elsif( $cmd =~ /(closed)|(open)/ ){
$hash->{DURATION} = (defined($value))?$value:$max;
$hash->{DURATION} = (defined($value))?$value:$max;
if( $cmd eq "closed" ){
$hash->{MOVING} = "moving_down";
$hash->{TARGETPCT} = $pctnormal ? 0 : 100;
@ -687,7 +687,7 @@ sub Shelly_Set ($@) {
}else{
$hash->{MOVING} = "moving_up";
$hash->{TARGETPCT} = $pctnormal ? 100 : 0;
$cmd =" ?go=open";
$cmd ="?go=open";
}
$cmd .= "&duration=$value"
if(defined($value));