98_RandomTimer.pm: add LastCommand reading (forum #102621)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@19935 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Beta-User 2019-08-02 12:26:39 +00:00
parent 73b8df6071
commit be24006048

View File

@ -173,6 +173,7 @@ sub RandomTimer_device_switch ($) {
} }
$command =~ s/@/$hash->{DEVICE}/g; $command =~ s/@/$hash->{DEVICE}/g;
$command = SemicolonEscape($command); $command = SemicolonEscape($command);
readingsSingleUpdate($hash, 'LastCommand', $command, 1);
Log3 $hash, 4, "[".$hash->{NAME}. "]"." command: $command"; Log3 $hash, 4, "[".$hash->{NAME}. "]"." command: $command";
my $ret = AnalyzeCommandChain(undef, $command); my $ret = AnalyzeCommandChain(undef, $command);