From a975110e67b2223122fc58c726b338111a109f0f Mon Sep 17 00:00:00 2001 From: Beta-User <> Date: Mon, 1 Feb 2021 06:28:26 +0000 Subject: [PATCH] WeekdayTimer: prepare for changes to weekprofile git-svn-id: https://svn.fhem.de/fhem/trunk@23654 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_WeekdayTimer.pm | 2 +- fhem/contrib/AttrTemplate/99_attrT_z2m_thermostat_Utils.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/98_WeekdayTimer.pm b/fhem/FHEM/98_WeekdayTimer.pm index a0f0e428b..9943d4957 100644 --- a/fhem/FHEM/98_WeekdayTimer.pm +++ b/fhem/FHEM/98_WeekdayTimer.pm @@ -687,7 +687,7 @@ E: while (@$a > 0) { return if !$wp_profile; my $wp_sunaswe = $wprof[2]//0; - my $wp_profile_data = CommandGet(undef,$wp_name . " profile_data ". $wp_profile); + my $wp_profile_data = CommandGet(undef,"$wp_name profile_data $wp_profile 0"); if ($wp_profile_data =~ m{(profile.*not.found|usage..profile_data..name)}xms ) { Log3( $hash, 3, "[$name] weekprofile $wp_name: no profile named \"$wp_profile\" available" ); return; diff --git a/fhem/contrib/AttrTemplate/99_attrT_z2m_thermostat_Utils.pm b/fhem/contrib/AttrTemplate/99_attrT_z2m_thermostat_Utils.pm index e617662e2..420e69e33 100644 --- a/fhem/contrib/AttrTemplate/99_attrT_z2m_thermostat_Utils.pm +++ b/fhem/contrib/AttrTemplate/99_attrT_z2m_thermostat_Utils.pm @@ -65,7 +65,7 @@ sub z2t_send_weekprofile { my $hash = $defs{$name}; $topic .= ' '; - my $wp_profile_data = CommandGet(undef,"$wp_name profile_data $wp_profile"); + my $wp_profile_data = CommandGet(undef,"$wp_name profile_data $wp_profile 0"); if ($wp_profile_data =~ m{(profile.*not.found|usage..profile_data..name)}xms ) { Log3( $hash, 3, "[$name] weekprofile $wp_name: no profile named \"$wp_profile\" available" ); return;