Bitte verschiebe mal die Zeile 390 an den Anfang des if-Blocks ab Zeile 396
Sollte dann so aussehen:
my $type = $msg->{subType};
#my $typeStr = datastreamTypeToStr($type);
my $blType = AttrVal($name, "OTA_BL_Type", "");
my $fwType = hex2Short(substr($msg->{payload}, 0, 4));
TYPE_HANDLER: {
$type == ST_FIRMWARE_CONFIG_REQUEST and do {
if (length($msg->{payload}) == 20) {
my $blVersion = hex(substr($msg->{payload}, 16, 2)) . "." . hex(substr($msg->{payload}, 18, 2));
readingsBeginUpdate($hash);