2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

14_CUL_TX.pm: bugfix: display the last temp/hum value (Forum #74680)

git-svn-id: https://svn.fhem.de/fhem/trunk@14784 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-07-25 15:06:43 +00:00
parent 15952bd51d
commit d5585e088c

View File

@ -120,6 +120,9 @@ CUL_TX_Parse($$)
my $state="";
my $t = ReadingsVal($name, "temperature", undef);
my $h = ReadingsVal($name, "humidity", undef);
$t = $val if($msgtype eq "temperature");
$h = $val if($msgtype eq "humidity");
if(defined($t) && defined($h)) {
$state="T: $t H: $h";