From 4efbb5f920a948e10b2377d22afaecc50f68905b Mon Sep 17 00:00:00 2001 From: phenning <> Date: Wed, 27 Nov 2019 15:46:54 +0000 Subject: [PATCH] =?UTF-8?q?36=5FShelly.pm:=20Neue=20Version=20mit=20Suppor?= =?UTF-8?q?t=20f=C3=BCr=20Shelly=20Dimmer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@20605 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/36_Shelly.pm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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