ginjo / esphome-dynamic-cron

This ESPhome external component provides dynamic cron functionality, editable at runtime with no flash or reboot required.
MIT License
1 stars 0 forks source link

FR: initial crontab #1

Open Masterz69 opened 1 month ago

Masterz69 commented 1 month ago

Feature: define initial crontab expression to be working 'out-of-the-box' as soon device flashed and started.

ginjo commented 1 month ago

I had considered that, maybe even allowing a default value for each of the (currently 4) user controls. I'll see what I can do there.

ginjo commented 1 month ago

Ok, latest commit 6984681 now has options for default values. There is also an option clear_prefs to determine whether the first flash of a new firmware upload will clear existing prefs or leave them alone. Note that all preferences are keyed to the id of the schedule instance. If you change the id between firmware updates, new default preferences will be applied.