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

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

View File

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