diff --git a/fhem/FHEM/55_PIFACE.pm b/fhem/FHEM/55_PIFACE.pm index a86dc2238..da6f7d167 100644 --- a/fhem/FHEM/55_PIFACE.pm +++ b/fhem/FHEM/55_PIFACE.pm @@ -56,6 +56,7 @@ sub PIFACE_Initialize($){ $hash->{AttrFn} = "PIFACE_Attr"; $hash->{AttrList} = $readingFnAttributes . " defaultState:0,1,last,off pollInterval:1,2,3,4,5,6,7,8,9,10,off" . + " disable:0,1 disabledForIntervals" . " portMode0:tri,up" . " portMode1:tri,up" . " portMode2:tri,up" . @@ -85,6 +86,10 @@ sub PIFACE_Undefine($$){ sub PIFACE_Set($@) { my ($hash, @a) = @_; my $name = $hash->{NAME}; + if (IsDisabled($name)) { + Log3 $name, 4, "PIFACE $name set commands disabled."; + return; + } my $port = $a[1]; my $val = $a[2]; my ($adr, $cmd, $i, $j, $k); @@ -504,6 +509,18 @@ PIFACE_Watchdog($) { [defaultState] = off is default.
Restoration of the status of the output port after a Fhem reboot. +
  • disable 0|1
    + If applied set commands will not be executed. +
  • +
  • disabledForIntervals HH:MM-HH:MM HH:MM-HH-MM...
    + Space separated list of HH:MM tupels. If the current time is between + the two time specifications, set commands will not be executed. Instead of + HH:MM you can also specify HH or HH:MM:SS. To specify an interval + spawning midnight, you have to specify two intervals, e.g.: + +
  • pollInterval off|1,2,...,9,10, [pollInterval] = off is default.
    Define the polling interval of the input ports in seconds.