openhab-scripters / openhab-helper-libraries

Scripts and modules for use with openHAB
Eclipse Public License 1.0
88 stars 70 forks source link

Initial check in for Item Init #284

Closed rkoshak closed 4 years ago

rkoshak commented 4 years ago

A simple Rule that looks for Items with an init metadata and updates the Item with it's value. The intended use case is for those times when you want to boot strap an Item's state or ensure it get's initialized to a specific state rather than using a System started Rule or restoreOnStartup. Once accepted, this could be used in the Time of Day Ephemeris submission instead of having that library use it's own metadata syntax.

It supports updating the Item only if it's different, updating the Item every time, and it can clear out the metadata once the Item is updated (a true bootstrap situation) but that only works if not using .items files.

Signed-off-by: Rich Koshak rlkoshak@gmail.com

rkoshak commented 4 years ago

This PR is ready for review.

rkoshak commented 4 years ago

I've basically completely rewritten this so am closing this PR. When reviewing submissions to the helper library becomes a priority I'll resubmit. In the mean time I'll keep in in my own repo where I can continue development.