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