FHEM Forum

FHEM => English Corner => Thema gestartet von: franc am 30 November 2014, 01:47:59

Titel: event-min-interval and restarts
Beitrag von: franc am 30 November 2014, 01:47:59
Hi,

I am using event-min-interval to control how often a motion controlled device can fire. It all works well except when I am working on changes to the fhem configuration and do frequent restarts of fhem.

At fhem restart it seems to forget the last time that that the device was fired - does anyone have a suggestion for fixing this ?

thanks
Titel: Antw:event-min-interval and restarts
Beitrag von: rudolfkoenig am 30 November 2014, 08:18:31
Do not use the rereadcfg command, do the changes directly in FHEM (define/attr/etc), and then use save.
Titel: Antw:event-min-interval and restarts
Beitrag von: franc am 30 November 2014, 08:58:01
The last time I did that, it re-ordered my config files making them much harder to read and understand.
Titel: Antw:event-min-interval and restarts
Beitrag von: rudolfkoenig am 30 November 2014, 10:15:16
You should not admire the beauty of config-files, just imagine, that fhem.cfg is a database.
If imagination does not help, then convert fhem.cfg to a database, just like betateilchen did it (look for configDB).