add drive reason to CommandTemplte varibales

This commit is contained in:
2021-10-26 14:05:06 +02:00
parent 98edf0c5f6
commit 75f5b6bf01
2 changed files with 6 additions and 5 deletions

View File

@ -1827,7 +1827,8 @@ sub _SetCmdFn {
my %specials = (
'$name' => $shuttersDev,
'$level' => $posValue,
'$slatLevel' => $slatPos
'$slatLevel' => $slatPos,
'$reason' => $shutters->getLastDrive
);
$commandTemplate = ::EvalSpecials($commandTemplate, %specials);