mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
The sunrise / sunset example code is not working
I removed the offset so the callback is simply: self.run_at_sunrise(self.sunrise_cb)
This commit is contained in:
parent
2edf3c5242
commit
130a3d0ea1
@ -40,8 +40,8 @@ import appdaemon.appapi as appapi
|
|||||||
class OutsideLights(appapi.AppDaemon):
|
class OutsideLights(appapi.AppDaemon):
|
||||||
|
|
||||||
def initialize(self):
|
def initialize(self):
|
||||||
self.run_at_sunrise(self.sunrise_cb, 0)
|
self.run_at_sunrise(self.sunrise_cb)
|
||||||
self.run_at_sunset(self.sunset_cb, 0)
|
self.run_at_sunset(self.sunset_cb)
|
||||||
|
|
||||||
def sunrise_cb(self, kwargs):
|
def sunrise_cb(self, kwargs):
|
||||||
self.turn_on(self.args["off_scene"])
|
self.turn_on(self.args["off_scene"])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user