mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
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:
parent
25044244c4
commit
58ce012dcb
@ -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";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user