dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.9k stars 498 forks source link

Improve rules database handling #7672

Closed manup closed 6 months ago

manup commented 6 months ago
ebaauw commented 6 months ago

I kinda liked that timestiggered and lasttriggered reset on deCONZ restart. Makes for easier checking that rules are fired; now I would need to record the values and compare them later, instead of simply restarting deCONZ and checking whether they've become non-null

sadpixel commented 6 months ago

Could persisiting these values across service restart be offered as an option? Maybe toggled by a new entry under /config? (Or perhaps it would make more sense as a new CLI flag…)

manup commented 6 months ago

Reverted the loading at startup in PR #7678 for my purpose it's enough to have the last session recorded in the database.