Openhabian on Pi 4 running openHAB 3.2.0 Build #2454
Ok I have to admit defeat. Been reading through the various posts, (DPs thanks @rlkoshak !) and documentation for using the ephem_tod for a few days and I’m not getting it …
I have many other jython scripts working so my setup is largely correct (obviously missing something though)
what would be helpful for me is the simplest example that gets all the components of ephem_tod working… and basically sets the TimeOfDay item accordingly …
So here is what I have so far:
time_utils.py (and the py.class was created)
What I dont have is the configuration.py populated because I don’t know what to put in there … I see that it wants
from configuration import tod_group, tod_item but of course they are not there … and so also of course there isn’t a TimeOfDay item to set!
I see the python example at:
But I dont know where that is supposed to go … I cant add it to a Rules yaml as is implied.
I’m also confused since alot of the docs are assuming you are going from rules to jython from a pre-OH3 world … I have just started with OH3 and never wrote DSL Rules (just doing mostly jython) … perhaps that’s the reason i’m not getting it … also, I see some of the posts are very new, so possibly I am trying to do something that isn’t fully baked yet?
Anyway … has someone else had this similar conundrum trying to get the ephem_tod.py examples to work? … any pointers would be helpful!
#Frustrated but not giving up