Ok thanks Rich for the quick response … I was suspecting I was trying something that was still work in progress … I think I will abandon the Jython version for now (or forever) and just get the ephem_tod javascript to work.
So I will remove the python code related to ephem_tod and add the yaml javascript code for ephem_tod.
Then I read the and tried to follow " How to boot strap the state of an Item … I created an item named Default_Day, added it to the TimesOfDay group, added the various fields of the “Default Standalone Widget” (fyi type = datetime-local s/b time-local) … and then set the time to 08:00:00 (and hit the check mark to save it) … then I hit “Run” for the Rule …
making process, but now have the error:
2021-08-02 13:29:57.082 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID 'TOD_Javascript' failed: Default_Day lacks metadata or metadata value.
Invalid metadata for Item! Expected metadata in the form of etod="STATE"[type="daytype", set="dayset", file="uri"] where set is required if type is dayset and file is required if type is custom. in <eval> at line number 256 at column number 6
any ideas?