From 6f1f05eacd570b0d736f0d3c505b5e1f5976d542 Mon Sep 17 00:00:00 2001 From: martinp876 Date: Fri, 19 Jul 2013 09:52:46 +0000 Subject: [PATCH] repair saveConfig, add HMinfe register copy git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@3452 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_CUL_HM.pm | 6 +-- fhem/FHEM/98_HMinfo.pm | 119 +++++++++++++++++++++++++---------------- 2 files changed, 76 insertions(+), 49 deletions(-) diff --git a/fhem/FHEM/10_CUL_HM.pm b/fhem/FHEM/10_CUL_HM.pm index 842ec21e9..3d26766de 100755 --- a/fhem/FHEM/10_CUL_HM.pm +++ b/fhem/FHEM/10_CUL_HM.pm @@ -1779,7 +1779,7 @@ sub CUL_HM_Get($@) { my $eName = CUL_HM_id2Name($e); push @eNames, $eName if($eName !~ m/_chn:/); } - + foreach my $eName (@eNames){ print aSave "\n#--- entity:".$eName; my $pIds = AttrVal($eName, "peerIDs", ""); @@ -1790,7 +1790,7 @@ sub CUL_HM_Get($@) { print aSave "\nset ".$eName." peerBulk ".$pIds; } my $ehash = $defs{$eName}; - foreach my $read (sort grep(!/^[\.]?RegL_/,keys %{$ehash->{READINGS}})){ + foreach my $read (sort grep(/^[\.]?RegL_/,keys %{$ehash->{READINGS}})){ print aSave "\nset ".$eName." regBulk ".$read." " .ReadingsVal($eName,$read,""); $timestamps .= "\n# ".ReadingsTimestamp($eName,$read,"")." :".$read; @@ -4808,7 +4808,7 @@ sub CUL_HM_putHash($) {# provide data for HMinfo '3' includes '2' plus updates on writes to the device
'4' includes '3' plus tries to request status if it seems to be missing
Execution will be delayed in order to prevent congestion at startup. Therefore the update - of the readings and the display will be delayed depending on the sice of the database.
+ of the readings and the display will be delayed depending on the size of the database.
Recommendations and constrains upon usage: