2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-20 19:36:02 +00:00

98_Weekdaytimer, 98_Heating_Control: it is now possible to specify params with blanks by using a ":". when a ":" must be conserve you can mask it by using a backslash. to send to a HUE "21:23|pct 40 : transitiontime 18000" you can achieve ist by defining a param like "21:23|pct:40:\::transitiontime:18000"

git-svn-id: https://svn.fhem.de/fhem/trunk@13071 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
orti-otto 2017-01-14 20:41:22 +00:00
parent dbc56a183c
commit 9d77df2cb0

View File

@ -983,7 +983,12 @@ sub WeekdayTimer_Device_Schalten($$$) {
if ($command && !$disabled && $activeTimer
&& $aktParam ne $newParam
) {
$newParam =~ s/:/ /;
$newParam =~ s/\\:/|/g;
Log3 $hash, 3, "newParam------------>$newParam";
$newParam =~ s/:/ /g;
Log3 $hash, 3, "newParam------------>$newParam";
$newParam =~ s/\|/:/g;
Log3 $hash, 3, "newParam------------>$newParam";
my %specials = ( "%NAME" => $hash->{DEVICE}, "%EVENT" => $newParam);
$command= EvalSpecials($command, %specials);