diff --git a/fhem/configDB.pm b/fhem/configDB.pm index aba7f0962..ecd6621a8 100644 --- a/fhem/configDB.pm +++ b/fhem/configDB.pm @@ -536,7 +536,11 @@ sub cfgDB_SaveState { $val =~ s/;/;;/g; $val =~ s/\n/\\\n/g; $out = "setstate $d $rd->{TIME} $c $val"; - push @rowList, $out; + if (length($out) > 65530) { + Debug "setstate $d $c: value too long!"; + } else { + push @rowList, $out; + } } } }