diff --git a/fhem/FHEM/46_TRX_LIGHT.pm b/fhem/FHEM/46_TRX_LIGHT.pm index 12621c3b9..36c488ae7 100755 --- a/fhem/FHEM/46_TRX_LIGHT.pm +++ b/fhem/FHEM/46_TRX_LIGHT.pm @@ -219,7 +219,7 @@ TRX_LIGHT_Define($$) my $deviceid2 = $a[5]; my $devicelog2 = $a[6]; - my $device_name2 = "TRX".$DOT.$type.$DOT.$deviceid2; + my $device_name2 = "TRX".$DOT.$my_type.$DOT.$deviceid2; $hash->{TRX_LIGHT_deviceid2} = $deviceid2; $hash->{TRX_LIGHT_devicelog2} = $devicelog2;