added devicelog none
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@3808 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -637,7 +637,7 @@ sub TRX_LIGHT_parse_X10 ($$)
|
||||
|
||||
$sensor = $firstdevice == 1 ? $def->{TRX_LIGHT_devicelog} : $def->{TRX_LIGHT_devicelog2};
|
||||
$val .= $current;
|
||||
readingsBulkUpdate($def, $sensor, $current);
|
||||
if ($sensor ne "none") { readingsBulkUpdate($def, $sensor, $current); }
|
||||
} else {
|
||||
$error = sprintf "TRX_LIGHT: error unknown sensor type=%x device_type=%s devn=%s first=%d command=%s", $type, $device_type, $device_name, $firstdevice, $command;
|
||||
Log3 $name, 1, "TRX_LIGHT_parse_X10() ".$error;
|
||||
@@ -772,7 +772,7 @@ sub TRX_LIGHT_parse_PT2262 ($$)
|
||||
}
|
||||
Log3 $name, 1,"TRX_LIGHT_parse_PT2262() readingsBulkUpdate($def, $sensor, $command)";
|
||||
$val = $command;
|
||||
readingsBulkUpdate($def, $sensor, $val);
|
||||
if ($sensor ne "none") { readingsBulkUpdate($def, $sensor, $val); }
|
||||
}
|
||||
|
||||
readingsBulkUpdate($def, "state", $val);
|
||||
@@ -887,7 +887,7 @@ KlikAanKlikUit, NEXA, CHACON, HomeEasy UK. <br> You need to define an RFXtrx433
|
||||
<br>
|
||||
<code><devicelog></code>
|
||||
<ul>
|
||||
is the name of the Reading used to report. Suggested: "motion" for motion sensors.
|
||||
is the name of the Reading used to report. Suggested: "motion" for motion sensors. If you use "none" then no additional Reading is reported. Just the state is used to report the change.
|
||||
</ul>
|
||||
<br>
|
||||
<code><deviceid2></code>
|
||||
@@ -897,7 +897,7 @@ KlikAanKlikUit, NEXA, CHACON, HomeEasy UK. <br> You need to define an RFXtrx433
|
||||
<br>
|
||||
<code><devicelog2></code>
|
||||
<ul>
|
||||
is optional for the name used for the Reading of <code><deviceid2></code>.
|
||||
is optional for the name used for the Reading of <code><deviceid2></code>.If you use "none" then no addional Reading is reported. Just the state is used to report the change.
|
||||
</ul>
|
||||
<br>
|
||||
<code><commandcodes></code>
|
||||
|
||||
@@ -182,7 +182,7 @@ TRX_SECURITY_Set($@)
|
||||
|
||||
# Now set the devicelog:
|
||||
$sensor = $hash->{TRX_SECURITY_devicelog};
|
||||
readingsBulkUpdate($hash, $sensor, $command);
|
||||
if ($sensor ne "none") { readingsBulkUpdate($hash, $sensor, $command); }
|
||||
|
||||
# Set battery
|
||||
$sensor = "battery";
|
||||
@@ -462,7 +462,7 @@ sub TRX_SECURITY_parse_X10Sec($$) {
|
||||
if ($firstdevice == 1) {
|
||||
$val .= $current;
|
||||
}
|
||||
readingsBulkUpdate($def, $sensor, $current);
|
||||
if ($sensor ne "none") { readingsBulkUpdate($def, $sensor, $current); }
|
||||
|
||||
# KD101 does not show normal, so statechange does not make sense
|
||||
if (($def->{STATE} ne $val) && ($device_type ne "KD101")) {
|
||||
@@ -611,7 +611,7 @@ TRX_SECURITY_Parse($$)
|
||||
<br>
|
||||
<code><devicelog></code>
|
||||
<ul>
|
||||
is the name of the Reading used to report. Suggested: "Window" or "Door" for ds10a, "motion" for motion sensors, "smoke" for sd90.
|
||||
is the name of the Reading used to report. Suggested: "Window" or "Door" for ds10a, "motion" for motion sensors, "smoke" for sd90. If you use "none" then no additional Reading is reported. Just the state is used to report the change.
|
||||
</ul>
|
||||
<br>
|
||||
<code><deviceid2></code>
|
||||
@@ -621,7 +621,7 @@ TRX_SECURITY_Parse($$)
|
||||
<br>
|
||||
<code><devicelog2></code>
|
||||
<ul>
|
||||
is optional for the name used for the Reading of <code><deviceid2></code>.
|
||||
is optional for the name used for the Reading of <code><deviceid2></code>. If you use "none" then no additional Reading is reported. Just the state is used to report the change.
|
||||
</ul>
|
||||
<br>
|
||||
Example: <br>
|
||||
|
||||
Reference in New Issue
Block a user