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