mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 20:24:36 +00:00
36_Shelly.pm: Neue Version mit optionaoem Parameter für Rollläden
git-svn-id: https://svn.fhem.de/fhem/trunk@24222 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6c27ecb8bb
commit
c5c86e6b96
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user