diff --git a/fhem/FHEM/98_configdb.pm b/fhem/FHEM/98_configdb.pm
index c35afe106..d1c4c6b3a 100644
--- a/fhem/FHEM/98_configdb.pm
+++ b/fhem/FHEM/98_configdb.pm
@@ -302,13 +302,14 @@ sub _cfgDB_readConfig() {
93_DbLog.pm
95_holiday.pm
98_SVG.pm
+ 98_weekprofile.pm
will use configDB to read their configuration data from database
instead of formerly used configuration files inside the filesystem.
This requires you to import your configuration files from filesystem into database.
- Example:
+ Examples:
configdb fileimport FHEM/nrw.holiday
configdb fileimport FHEM/myrss.layout
configdb fileimport www/gplot/xyz.gplot
diff --git a/fhem/configDB.pm b/fhem/configDB.pm
index ad9185379..b05ed235d 100644
--- a/fhem/configDB.pm
+++ b/fhem/configDB.pm
@@ -147,6 +147,8 @@
#
# 2019-02-16 - changed default field length for table creation
#
+# 2020-02-25 - added support weekprofile in automatic migration
+#
##############################################################################
=cut
@@ -614,6 +616,15 @@ sub cfgDB_MigrationImport() {
push @files, $filename;
}
+# find weekprofile configurations
+ $filename ='';
+ @def = '';
+ @def = _cfgDB_findDef('TYPE=weekprofile','CONFIGFILE');
+ foreach $filename (@def) {
+ next unless $filename;
+ push @files, $filename;
+ }
+
# find holiday files
$filename ='';
@def = '';