From 8e07b7a5bb3c47d89e007043e16deeba6da84b96 Mon Sep 17 00:00:00 2001 From: mfr69bs <> Date: Thu, 15 Nov 2012 13:09:21 +0000 Subject: [PATCH] "isn't numeric in sprintf" fiexed git-svn-id: https://svn.fhem.de/fhem/trunk@2122 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/59_HCS.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/59_HCS.pm b/fhem/FHEM/59_HCS.pm index b11e83f1a..4aa4df956 100644 --- a/fhem/FHEM/59_HCS.pm +++ b/fhem/FHEM/59_HCS.pm @@ -448,7 +448,11 @@ HCS_getValues($$) { next if($t eq "CUL_HM" && $attr{$d}{model} eq "HM-CC-TC" && ($attr{$d}{device} || $attr{$d}{chanNo})); $devs{$d}{actuator} = ReadingsVal($d,"actuator","n/a"); - $devs{$d}{actuator} =~ s/(\s+|%)//g; + if ($devs{$d}{actuator} =~ m/^\d+\s*%$/) { + $devs{$d}{actuator} =~ s/(\s+|%)//g; + } else { + $devs{$d}{actuator} = 0; + } $devs{$d}{excluded} = ($exclude =~ m/$d/) ? 1 : 0; $devs{$d}{ignored} = ($attr{$d}{ignore} && $attr{$d}{ignore} == 1) ? 1 : 0; $devs{$d}{tempDesired} = ReadingsVal($d,"desired-temp","n/a"); @@ -874,6 +878,7 @@ HCS_getValues($$) {
exclude
(optional)idleperiod
(mandatory)10
@@ -920,7 +925,7 @@ HCS_getValues($$) {
disable
do_not_notify
event-on-change-reading
event-on-change-reading
state,devicestate,eco,overdrive
event-on-update-reading