From 9d77df2cb0d04d112e23b75a4d164a531323077f Mon Sep 17 00:00:00 2001 From: orti-otto <> Date: Sat, 14 Jan 2017 20:41:22 +0000 Subject: [PATCH] 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 --- fhem/FHEM/98_WeekdayTimer.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/98_WeekdayTimer.pm b/fhem/FHEM/98_WeekdayTimer.pm index 214d96ee8..343fab409 100644 --- a/fhem/FHEM/98_WeekdayTimer.pm +++ b/fhem/FHEM/98_WeekdayTimer.pm @@ -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);