diff --git a/fhem/FHEM/36_Shelly.pm b/fhem/FHEM/36_Shelly.pm index 51b8e1975..7e5731dbd 100644 --- a/fhem/FHEM/36_Shelly.pm +++ b/fhem/FHEM/36_Shelly.pm @@ -38,7 +38,7 @@ use vars qw{%attr %defs}; sub Log($$); #-- globals on start -my $version = "1.36"; +my $version = "1.40"; #-- these we may get on request my %gets = ( @@ -374,11 +374,8 @@ sub Shelly_Set ($@) { if( $cmd =~ /^((on)|(off)).*/ ){ $channel = $value; if( $cmd =~ /(.*)-for-timer/ ){ - $time = shift @a; - if( !defined($time) ){ - $time = $value; - $channel = undef; - } + $time = $value; + $channel = shift @a; } if( $shelly_models{$model}[0] == 1){ $channel = 0 @@ -996,6 +993,7 @@ sub Shelly_Set ($@) { =begin html +
FHEM module to communicate with a Shelly switch/roller actuator
@@ -1018,11 +1016,11 @@ sub Shelly_Set ($@) { For Shelly switching devices (mode=relay for model=shelly2, standard for all other models)set <name> on|off <channel>
- set <name> on|off [<channel>]
+ set <name> on-for-timer|off-for-timer <channel> <time>
- set <name> on-for-timer|off-for-timer <time> [<channel>]
+ attr <name> defchannel (only for model=shelly2|shelly4)
-