diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 6e189e3c0..1c2a18937 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -2226,8 +2226,9 @@ fhem_setIoDev($$) return "unknown IODev $val specified"; } + my $av = AttrVal($hash->{NAME}, "IODev", ""); return "$hash->{NAME}: not setting IODev to $val, as different attr exists" - if(AttrVal($hash->{NAME}, "IODev", "") ne $val); + if($av && $av ne $val); $hash->{IODev} = $defs{$val}; setReadingsVal($hash, "IODev", $val, TimeNow()); # 120603