mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 20:24:36 +00:00
45_TRX.pm: change state on every command received
git-svn-id: https://svn.fhem.de/fhem/trunk@11456 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
61b86445a6
commit
1ed3c72820
@ -523,6 +523,7 @@ TRX_Parse($$$$)
|
|||||||
$hash->{"${name}_MSGCNT"}++;
|
$hash->{"${name}_MSGCNT"}++;
|
||||||
$hash->{"${name}_TIME"} = TimeNow();
|
$hash->{"${name}_TIME"} = TimeNow();
|
||||||
$hash->{RAWMSG} = $rmsg;
|
$hash->{RAWMSG} = $rmsg;
|
||||||
|
readingsSingleUpdate($hash, "state", $hash->{READINGS}{state}{VAL}, 0);
|
||||||
} else {
|
} else {
|
||||||
Log3 $hash, 5, "TRX_Parse() '$rmsg' dup";
|
Log3 $hash, 5, "TRX_Parse() '$rmsg' dup";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user