To Today


Force reload

Runs at midnight and moves the date for any tagged DateTime Items that are in the past to today’s date. The rule handles DST. The tag it looks for is a configuration parameter. Any Item with the tag that is not a DateTime Item, those DateTime Items with a NULL or UNDEF state, and any DateTime Item whose state is in the future is ignored.

Language: Nashorn JavaScript ECMAScript 5.1 or JSScripting


Version 0.2

  • Made compatible with both Nashorn and JSScripting
    NOTE: Will drop Nashorn support sometime after OH 3.2 release.

Version 0.1

  • initial release



I appreciate what you did.