From 1d453e0936d09ceb420a23c04debadbc76ca517a Mon Sep 17 00:00:00 2001 From: klaus-schauer Date: Mon, 17 Mar 2014 21:06:41 +0000 Subject: [PATCH] 10_EnOcean: set commands are not executed if attr disable or disableForInterval true git-svn-id: https://svn.fhem.de/fhem/trunk@5249 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_EnOcean.pm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/fhem/FHEM/10_EnOcean.pm b/fhem/FHEM/10_EnOcean.pm index f140c23b2..79dc124b1 100755 --- a/fhem/FHEM/10_EnOcean.pm +++ b/fhem/FHEM/10_EnOcean.pm @@ -267,6 +267,7 @@ EnOcean_Initialize($) "actualTemp angleMax:slider,-180,20,180 angleMin:slider,-180,20,180 " . "angleTime:0,1,2,3,4,5,6 comMode:biDir,uniDir destinationID " . "devChannel devUpdate:off,auto,demand,polling,interrupt dimValueOn " . + "disable:0,1 disabledForIntervals " . "gwCmd:" . join(",", sort @EnO_gwCmd) . " humidityRefDev " . "manufID:" . join(",", sort keys %EnO_manuf) . " " . "model:" . join(",", @EnO_models) . " " . @@ -398,6 +399,10 @@ EnOcean_Set($@) my ($hash, @a) = @_; return "no set value specified" if (@a < 2); my $name = $hash->{NAME}; + if (IsDisabled($name)) { + Log3 $name, 4, "EnOcean set $name commands disabled."; + return; + } my $data; my $destinationID = AttrVal($name, "destinationID", undef); if (!defined $destinationID || $destinationID eq "multicast") { @@ -4731,6 +4736,18 @@ EnOcean_Undef($$) stored.
dimValueOn is supported for dimmer. +
  • 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.: + +
  • do_not_notify
  • eventMap
  • gwCmd switching|dimming|setpointShift|setpointBasic|controlVar|fanStage|blindCmd