2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-19 06:36:04 +00:00

FHEM2FHEM: disable / disableForIntervals added

git-svn-id: https://svn.fhem.de/fhem/trunk@6059 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-06-04 20:01:55 +00:00
parent 16dad96be9
commit b45b1177bc

View File

@ -29,7 +29,7 @@ FHEM2FHEM_Initialize($)
# Normal devices # Normal devices
$hash->{DefFn} = "FHEM2FHEM_Define"; $hash->{DefFn} = "FHEM2FHEM_Define";
$hash->{UndefFn} = "FHEM2FHEM_Undef"; $hash->{UndefFn} = "FHEM2FHEM_Undef";
$hash->{AttrList}= "dummy:1,0"; $hash->{AttrList}= "dummy:1,0 disable:0,1 disabledForIntervals";
} }
##################################### #####################################
@ -126,9 +126,11 @@ FHEM2FHEM_Read($)
if(!defined($buf) || length($buf) == 0) { if(!defined($buf) || length($buf) == 0) {
FHEM2FHEM_Disconnected($hash); FHEM2FHEM_Disconnected($hash);
return ""; return;
} }
return if(IsDisabled($name));
my $data = $hash->{PARTIAL}; my $data = $hash->{PARTIAL};
Log3 $hash, 5, "FHEM2FHEM/RAW: $data/$buf"; Log3 $hash, 5, "FHEM2FHEM/RAW: $data/$buf";
$data .= $buf; $data .= $buf;
@ -376,6 +378,8 @@ FHEM2FHEM_SimpleRead($)
<b>Attributes</b> <b>Attributes</b>
<ul> <ul>
<li><a href="#dummy">dummy</a></li> <li><a href="#dummy">dummy</a></li>
<li><a href="#disable">disable</a></li>
<li><a href="#disabledForIntervals">disabledForIntervals</a></li>
</ul> </ul>
</ul> </ul>
@ -464,9 +468,11 @@ FHEM2FHEM_SimpleRead($)
<b>Get</b> <ul>N/A</ul><br> <b>Get</b> <ul>N/A</ul><br>
<a name="FHEM2FHEMattr"></a> <a name="FHEM2FHEMattr"></a>
<b>Attributes</b> <b>Attribute</b>
<ul> <ul>
<li><a href="#dummy">dummy</a></li> <li><a href="#dummy">dummy</a></li>
<li><a href="#disable">disable</a></li>
<li><a href="#disabledForIntervals">disabledForIntervals</a></li>
</ul> </ul>
</ul> </ul>