diff --git a/fhem/FHEM/10_CUL_HM.pm b/fhem/FHEM/10_CUL_HM.pm index 1d3e8fc32..3a0c2629f 100755 --- a/fhem/FHEM/10_CUL_HM.pm +++ b/fhem/FHEM/10_CUL_HM.pm @@ -837,10 +837,11 @@ sub CUL_HM_Attr(@) {################################# CUL_HM_UpdtCentral($name); } else{ - return "$attrName must not be changed by User. \nUse modelForce instead" if ($init_done); + return "$attrName must not be changed by User. \nUse modelForce instead" if ($init_done && AttrVal($name,$attrName,"empty") != m/(empty|$attrVal)/); delete $hash->{helper}{rxType}; # needs new calculation delete $hash->{helper}{mId}; CUL_HM_hmInitMsg($hash);# will update mId, rxType and others + CUL_HM_updtDeviceModel($name,$attrVal) if($init_done); } $attr{$name}{$attrName} = $attrVal if ($cmd eq "set"); } @@ -863,7 +864,7 @@ sub CUL_HM_Attr(@) {################################# return "$attrName must not be changed by User. \nUse modelForce instead" if ($init_done); } elsif($attrName eq "subType"){ - return "$attrName must not be changed by User. \nUse modelForce instead" if ($init_done); + return "$attrName must not be changed by User. \nUse modelForce instead" if ($init_done && AttrVal($name,$attrName,"empty") != m/(empty|$attrVal)/); $updtReq = 1; } elsif($attrName eq "aesCommReq" ){