diff --git a/fhem/FHEM/50_HP1000.pm b/fhem/FHEM/50_HP1000.pm index a9a67baad..ee858a889 100755 --- a/fhem/FHEM/50_HP1000.pm +++ b/fhem/FHEM/50_HP1000.pm @@ -151,7 +151,7 @@ sub HP1000_Initialize($) { $hash->{parseParams} = 1; $hash->{AttrList} = -"disable:1,0 disabledForIntervals do_not_notify:1,0 wu_push:1,0 wu_indoorValues:1,0 wu_id wu_password wu_realtime:1,0 wu_dataValues extSrvPush_Url stateReadingsLang:en,de,at,ch,nl,fr,pl webhookFWinstances:sortable-strict,$webhookFWinstance stateReadings stateReadingsFormat:0,1 " +"disable:1,0 disabledForIntervals do_not_notify:1,0 wu_push:1,0 wu_indoorValues:1,0 wu_id wu_password wu_realtime:1,0 wu_dataValues extSrvPush_Url stateReadingsLang:en,de,at,ch,nl,fr,pl webhookFWinstances:sortable-strict,$webhookFWinstance stateReadings stateReadingsFormat:0,1 bogusFilter:0,1 " . $readingFnAttributes; my @wu; @@ -586,6 +586,22 @@ sub HP1000_CGI() { my %HP1000_pwsMappingEquivalent_rev = %{ { reverse %HP1000_pwsMappingEquivalent } }; + # Filter values that seem bogus + if ( AttrVal( $name, 'bogusFilter', 0 ) ne '0' ) { + foreach ($webArgs) { + next unless ( looks_like_number( $webArgs->{$_} ) ); + + if ( $webArgs->{$_} < -273.2 ) { + Log3 $name, 4, + "HP1000: " + . "Received value '" + . $webArgs->{$_} + . "' for '$_' seems out of range - removed from data set"; + delete $webArgs->{$_}; + } + } + } + # calculate readings for Metric standard from Angloamerican standard # @@ -1579,36 +1595,40 @@ sub HP1000_HistoryDb($$;$$$) { Define

+ IMPORTANT: In your hardware device, make sure you use a DNS name as most revisions cannot handle IP addresses correctly.
You might want to check to install a firmware update from here. -
+
-
+
Attributes
-

+
Attributes
  • readingFnAttributes
  • -
    +
  • webhookFWinstances
  • Explizite Angabe der FHEMWEB Instanzen, äber die Dateneingaben erlaubt sind (Standard ist weatherstation) @@ -1695,7 +1715,7 @@ sub HP1000_HistoryDb($$;$$$) { Weather Underground (Wunderground) Passwort
  • wu_dataValues
  • - Ersetzt Werte oder fügt neue Werte hinzu, bevor diese zu Weather Underground übertragen werden.
    + Ersetzt Werte oder fügt neue Werte hinzu, bevor diese zu Weather Underground übertragen werden.
    Das Format entspricht key=value wobei value im Format set magic sein kann.
  • wu_indoorValues