diff --git a/fhem/CHANGED b/fhem/CHANGED index 2014fae5d..b25cda272 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: 93_DbLog: fix change off V4.9.4 in default splitting. Forum:#106992 - bugfix: 88_HMCCU: Do not touch state during device definition - bugfix: 70_VIERA: correction of "Rolling Key" - feature: 70_VIERA: add. GetStatus after on_off command diff --git a/fhem/FHEM/93_DbLog.pm b/fhem/FHEM/93_DbLog.pm index 3f294538a..319b11936 100644 --- a/fhem/FHEM/93_DbLog.pm +++ b/fhem/FHEM/93_DbLog.pm @@ -30,6 +30,7 @@ no if $] >= 5.017011, warnings => 'experimental::smartmatch'; # Version History intern by DS_Starter: our %DbLog_vNotesIntern = ( + "4.9.6" => "04.01.2020 fix change off 4.9.4 in default splitting. Forum: #106992 ", "4.9.5" => "01.01.2020 do not reopen database connection if device is disabled (fix) ", "4.9.4" => "29.12.2019 correct behavior if value is empty and attribute addStateEvent is set (default), Forum: #106769 ", "4.9.3" => "28.12.2019 check date/time format got from SVG, Forum: #101005 ", @@ -995,9 +996,13 @@ sub DbLog_ParseEvent($$$$) { #default if(!defined($reading)) { $reading = ""; } if(!defined($value)) { $value = ""; } - if($value eq "" && !AttrVal($name, "addStateEvent", 1)) { - $reading = "state"; - $value = $event; + if($value eq "") { # Default Splitting geƤndert 04.01.20 Forum: #106992 + if($reading =~ /:$/) { + $reading = (split(":", $reading))[0]; + } else { + $reading = "state"; + $value = $event; + } } #globales Abfangen von diff --git a/fhem/contrib/DS_Starter/93_DbLog.pm b/fhem/contrib/DS_Starter/93_DbLog.pm index 1a6829ac8..0fea227d6 100644 --- a/fhem/contrib/DS_Starter/93_DbLog.pm +++ b/fhem/contrib/DS_Starter/93_DbLog.pm @@ -30,7 +30,7 @@ no if $] >= 5.017011, warnings => 'experimental::smartmatch'; # Version History intern by DS_Starter: our %DbLog_vNotesIntern = ( - "4.9.6" => "04.01.2020 fix change in 4.9.4 in default splitting. Forum: #106992 ", + "4.9.6" => "04.01.2020 fix change off 4.9.4 in default splitting. Forum: #106992 ", "4.9.5" => "01.01.2020 do not reopen database connection if device is disabled (fix) ", "4.9.4" => "29.12.2019 correct behavior if value is empty and attribute addStateEvent is set (default), Forum: #106769 ", "4.9.3" => "28.12.2019 check date/time format got from SVG, Forum: #101005 ",