From b961fbaeb58424b082c20e0e15d384982f711684 Mon Sep 17 00:00:00 2001 From: jamesgo Date: Sun, 22 Nov 2015 08:35:47 +0000 Subject: [PATCH] 93_PWMR.pm : 2 bugfixes in calculation rule definitions containing "mi"; Log call in SetRoom caused Warning. git-svn-id: https://svn.fhem.de/fhem/trunk@9962 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/93_PWMR.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fhem/contrib/93_PWMR.pm b/fhem/contrib/93_PWMR.pm index 079c27388..c5d6540f9 100644 --- a/fhem/contrib/93_PWMR.pm +++ b/fhem/contrib/93_PWMR.pm @@ -19,6 +19,8 @@ # 17.11.15 GA add ReadRoom will now set a reading named temperature containing the last temperature used for calculation # 18.11.15 GA add adjusted energyusedp to be in percent. Now it can be used in Tablet-UI as valve-position # 19.11.15 GA fix move actorState to readings +# 22.11.15 GA fix rules on wednesday are now possible (thanks to Skusi) +# 22.11.15 GA fix error handling in SetRoom (thanks to cobra112) # module for PWM (Pulse Width Modulation) calculation @@ -63,7 +65,7 @@ use warnings; my %dayno = ( "mo" => 1, "di" => 2, - "di" => 3, + "mi" => 3, "do" => 4, "fr" => 5, "sa" => 6, @@ -624,6 +626,7 @@ PWMR_SetRoom(@) push @{$room->{CHANGED}}, "actor $newState"; DoTrigger($name, undef); + } else { Log3 ($room, 2, "PWMR_SetRoom $name: set $room->{actor} $newState failed ($ret)"); }