-
Notifications
You must be signed in to change notification settings - Fork 58
-
I calculate a time elsewhere when a function should be executed
I see two possibilities
"once(datetime)" but then I would have to control datetime via a variable (state_persist?) - is that possible
Or
I go over trigger_time and compare with the desired time at a @time_trigger - but I'm unclear how to get trigger_time
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments 1 reply
-
Can you please add code examples to your question? Both variants.
Beta Was this translation helpful? Give feedback.
All reactions
-
There are several options, eg:
Beta Was this translation helpful? Give feedback.
All reactions
-
wait ist not a option :-)
but clocure helps :-)
so
@time_trigger("once({pyscript.my_time}") - i will try
Beta Was this translation helpful? Give feedback.