mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-15 04:20:56 +00:00
46_TRX_WEATHER.pm: Maverick ET732,733 changed: do not update reading if sensor is not attached.
git-svn-id: https://svn.fhem.de/fhem/trunk@10798 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
093a65b3c3
commit
ff1322d098
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user