I have a sunset job in the old way .
This I want now to realsize with the scheduler.
I already use scheduler jobs on habapp that runs every x minutes or only on special days.
Now my question:
I want to have a sunset job that runs on sunset, but not before a special time.
If I look in the class reference for the Scheduler I found a class SunSetJob
with a Method earliest().
That was the one I cann use to set the earliest Time.
But how can I use/set this in the habapp pythons Script.
In the HabAppSchedulerView I have a method (on_sundown()) that returns
a SunSetJob as the returnValue.
But with this I’m not able to set or call the earliest.
I did something like
But after that i have no sel.mysunset.earliest()
Any hints what I’m doing wrong?
Sorry for the bad format, but sitting in the train, only with the smartphone isn’t easy
to format code snippets.