diff --git a/fhem/FHEM/31_HUEDevice.pm b/fhem/FHEM/31_HUEDevice.pm index 20d9ead73..8fad3f559 100644 --- a/fhem/FHEM/31_HUEDevice.pm +++ b/fhem/FHEM/31_HUEDevice.pm @@ -1253,10 +1253,13 @@ HUEDevice_Get($@) $list = ' devStateIcon:noArg' if( $subtype eq 'blind' ); } - if( $hash->{IODev} && $hash->{IODev}{helper}{apiversion} && $hash->{IODev}{helper}{apiversion} >= (1<<16) + (26<<8) ) { + if( !$hash->{helper}->{devtype} + && $hash->{IODev} && $hash->{IODev}{helper}{apiversion} && $hash->{IODev}{helper}{apiversion} >= (1<<16) + (26<<8) ) { $list .= " startup:noArg"; } + return "Unknown argument $cmd" if( !$list ); + return "Unknown argument $cmd, choose one of $list"; }