From c8d22f19ae4b1bd8c897d117f4b6e8d7e66a5437 Mon Sep 17 00:00:00 2001 From: Byte009 <34764406+Byte009@users.noreply.github.com> Date: Wed, 10 Nov 2021 05:38:10 +0100 Subject: [PATCH] Add files via upload --- FHEM/98_Siro.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/FHEM/98_Siro.pm b/FHEM/98_Siro.pm index 737b971..f106070 100644 --- a/FHEM/98_Siro.pm +++ b/FHEM/98_Siro.pm @@ -40,6 +40,7 @@ sub Siro_Initialize($) { . " disable:0,1" . " SIRO_signalRepeats:1,2,3,4,5,6,7,8,9" . " SIRO_inversPosition:0,1" + . " SIRO_inversONOFF:0,1" . " SIRO_Battery_low" . " SIRO_downLimit:slider,0,1,100" . " SIRO_signalLongStopRepeats:10,15,20,40,45,50" @@ -749,6 +750,7 @@ sub Set($@) { { Log3( $name,0 , "Das Siromodul wurde geaendert und die einstellungen sind nicht mehr Kompatibel. Bitte das Sirodevice \"$name\" kontrollieren ."); } + ############################# my $actiontime = time; # zeit dieses Aufrufes @@ -785,6 +787,14 @@ sub Set($@) { # versionschange #changeconfig + + + if (AttrVal( $name, 'SIRO_inversONOFF',0 ) eq "1") + { + if ($cmd eq "on"){$cmd = "off"}; + if ($cmd eq "off"){$cmd = "on"}; + } + # pruefe auf unbekannte sets