diff --git a/FHEM/46_TRX_WEATHER.pm b/FHEM/46_TRX_WEATHER.pm index da500ca48..eb70b1b6e 100755 --- a/FHEM/46_TRX_WEATHER.pm +++ b/FHEM/46_TRX_WEATHER.pm @@ -117,6 +117,8 @@ use warnings; # Hex-Debugging into READING hexline? YES = 1, NO = 0 my $TRX_HEX_debug = 0; +# Max temperatute für Maverick BBQ +my $TRX_MAX_TEMP_BBQ = 1000; my $time_old = 0; my $trx_rssi; @@ -244,6 +246,8 @@ sub TRX_WEATHER_temperature_food { my $temp = $bytes->[$off]*256 + $bytes->[$off+1]; + return if ($temp > $TRX_MAX_TEMP_BBQ); + push @$res, { device => $dev, type => 'temp-food', @@ -258,6 +262,8 @@ sub TRX_WEATHER_temperature_bbq { my $temp = $bytes->[$off]*256 + $bytes->[$off+1]; + return if ($temp > $TRX_MAX_TEMP_BBQ); + push @$res, { device => $dev, type => 'temp-bbq',