From f1f713933e4a057b21a642124b750896713a7323 Mon Sep 17 00:00:00 2001 From: sidey79 Date: Tue, 19 Feb 2019 22:44:37 +0000 Subject: [PATCH] 41_OREGON.pm: Fixed batteryPercent typo and added german commandref git-svn-id: https://svn.fhem.de/fhem/trunk@18660 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/41_OREGON.pm | 51 ++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 50 insertions(+), 2 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 8e5d54547..3ee6382b8 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 41_OREGON: typo battery percent fixed. de_commandref added - bugfix 73_AutoShuttersControl: fix bug then create timer, timer set to 1970 - new: 98_serviced: new modul for linux services (systemd and initd) diff --git a/fhem/FHEM/41_OREGON.pm b/fhem/FHEM/41_OREGON.pm index d7aa0db03..ee4cacb1f 100755 --- a/fhem/FHEM/41_OREGON.pm +++ b/fhem/FHEM/41_OREGON.pm @@ -990,7 +990,7 @@ OREGON_Parse($$) return "" if(IsIgnored($name)); my $n = 0; - my $tm = TimeNow(); + my $tm = TimeNow(); # todo: wird dies noch benoetigt? my $i; my $val = ""; @@ -1132,6 +1132,7 @@ OREGON_Parse($$) #$def->{CHANGED}[$n++] = $sensor . ": " . $i->{current};; } else { + #todo: ist es so ok, oder ist es mit Log3 besser? Log3 $iohash, 4, "...." print "\nOREGON: Unknown: "; print "Type: ".$i->{type}.", "; print "Value: ".$i->{current}."\n"; @@ -1142,7 +1143,7 @@ OREGON_Parse($$) # remove heading and trailing space chars from $val $val =~ s/^\s+|\s+$//g; - Log3 $iohash, 4, "$name decoded Oregon: $val"; + Log3 $def, 4, "$name decoded Oregon: $val"; readingsBulkUpdate($def, "state", $val); $def->{STATE} = $val; @@ -1211,4 +1212,50 @@ The one byte hex string is generated by the Oregon sensor when is it powered on. =end html +=begin html_DE + + +

OREGON

+ + +=end html_DE =cut