20 lines
514 B
Python
20 lines
514 B
Python
import base
|
|
|
|
class HelloWorld(base.Timers):
|
|
|
|
def initialize(self):
|
|
super().initialize()
|
|
|
|
self.log("Hello from AppDaemon")
|
|
self.log("You are now ready to run Apps!")
|
|
|
|
self.run_in('test1', self.after_time, 3)
|
|
self.run_in('test2', self.after_time2, 5)
|
|
self.run_in(self.after_time2, 7)
|
|
self.cancel_timer('test2')
|
|
|
|
def after_time(self, kwargs):
|
|
self.log("Running function")
|
|
def after_time2(self, kwargs):
|
|
self.log("Running function2")
|