mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +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:
parent
15952bd51d
commit
d5585e088c
@ -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";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user