add drive reason to CommandTemplte varibales

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

View File

@ -1,5 +1,5 @@
UPD 2021-10-25_19:54:19 114872 FHEM/73_AutoShuttersControl.pm
UPD 2021-10-25_19:29:35 75118 lib/FHEM/Automation/ShuttersControl.pm
UPD 2021-10-26_14:03:13 114872 FHEM/73_AutoShuttersControl.pm
UPD 2021-10-26_14:03:57 75174 lib/FHEM/Automation/ShuttersControl.pm
UPD 2021-10-09_07:12:54 2657 lib/FHEM/Automation/ShuttersControl/Dev.pm
UPD 2021-10-09_07:12:54 2494 lib/FHEM/Automation/ShuttersControl/Roommate.pm
UPD 2021-10-24_07:33:53 31900 lib/FHEM/Automation/ShuttersControl/Shutters.pm
@ -9,8 +9,8 @@ UPD 2021-10-09_07:12:54 40628 lib/FHEM/Automation/ShuttersControl/Helper.pm
UPD 2021-10-09_07:12:54 2173 lib/FHEM/Automation/ShuttersControl/Window.pm
UPD 2021-10-09_07:12:54 11739 lib/FHEM/Automation/ShuttersControl/Dev/Attr.pm
UPD 2021-10-09_07:12:54 7249 lib/FHEM/Automation/ShuttersControl/Dev/Readings.pm
UPD 2021-10-25_19:29:35 52649 lib/FHEM/Automation/ShuttersControl/Shutters/Attr.pm
UPD 2021-10-26_14:03:13 52649 lib/FHEM/Automation/ShuttersControl/Shutters/Attr.pm
UPD 2021-10-09_07:12:54 2901 lib/FHEM/Automation/ShuttersControl/Shutters/Readings.pm
UPD 2021-10-09_07:12:54 3978 lib/FHEM/Automation/ShuttersControl/Window/Attr.pm
UPD 2021-10-09_07:12:54 2286 lib/FHEM/Automation/ShuttersControl/Window/Readings.pm
UPD 2021-10-25_19:29:35 6693 lib/FHEM/Automation/ShuttersControl/Rainprotection.pm
UPD 2021-10-26_14:03:13 6693 lib/FHEM/Automation/ShuttersControl/Rainprotection.pm

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);