2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

93_DbLog: fix change off V4.9.4 in default splitting. Forum:#106992

git-svn-id: https://svn.fhem.de/fhem/trunk@20883 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2020-01-04 20:03:51 +00:00
parent 5cde867a19
commit 1cbc52768b
3 changed files with 10 additions and 4 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # 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. # 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: 88_HMCCU: Do not touch state during device definition
- bugfix: 70_VIERA: correction of "Rolling Key" - bugfix: 70_VIERA: correction of "Rolling Key"
- feature: 70_VIERA: add. GetStatus after on_off command - feature: 70_VIERA: add. GetStatus after on_off command

View File

@ -30,6 +30,7 @@ no if $] >= 5.017011, warnings => 'experimental::smartmatch';
# Version History intern by DS_Starter: # Version History intern by DS_Starter:
our %DbLog_vNotesIntern = ( 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.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.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 ", "4.9.3" => "28.12.2019 check date/time format got from SVG, Forum: #101005 ",
@ -995,9 +996,13 @@ sub DbLog_ParseEvent($$$$) {
#default #default
if(!defined($reading)) { $reading = ""; } if(!defined($reading)) { $reading = ""; }
if(!defined($value)) { $value = ""; } if(!defined($value)) { $value = ""; }
if($value eq "" && !AttrVal($name, "addStateEvent", 1)) { if($value eq "") { # Default Splitting geändert 04.01.20 Forum: #106992
$reading = "state"; if($reading =~ /:$/) {
$value = $event; $reading = (split(":", $reading))[0];
} else {
$reading = "state";
$value = $event;
}
} }
#globales Abfangen von #globales Abfangen von

View File

@ -30,7 +30,7 @@ no if $] >= 5.017011, warnings => 'experimental::smartmatch';
# Version History intern by DS_Starter: # Version History intern by DS_Starter:
our %DbLog_vNotesIntern = ( 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.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.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 ", "4.9.3" => "28.12.2019 check date/time format got from SVG, Forum: #101005 ",