diff --git a/FHEM/36_Shelly.pm b/FHEM/36_Shelly.pm index 899fa37bd..5285dc993 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.1"; +my $version = "2.11"; #-- these we may get on request my %gets = ( @@ -648,6 +648,12 @@ sub Shelly_Set ($@) { } #Shelly_onoff($hash,"white/$channel","?turn=".$cmd); + #-- command received via web to register local changes of the device input + }elsif( $cmd =~ /^button_((on)|(off))/){ + my $ison = $1; + #-- + my $subs = "_".$value; + readingsSingleUpdate( $hash, "button".$subs, $ison, 1 ) }elsif( $cmd eq "pct" ){ #$channel = $value; $channel = shift @a; @@ -1408,7 +1414,7 @@ sub Shelly_updown2($){ Notes:
model
must be set