i think it id wise to mention that import is neccesary if you use examples like this:
# Run at 4pm today, or 4pm tomorrow if it is already after 4pm
runtime = datetime.time(16, 0, 0)
handle = self.run_once(self.run_once_c, runtime)
this one probably wont work
# Run daily at 7pm
time = datetime.time(19, 0, 0)
self.run_daily(self.run_daily_c, runtime)
this one is beneath run hourly:
# Run every hour, on the hour
time = datetime.time(0, 0, 0)
self.run_daily(self.run_daily_c, runtime)
i think you forgot an enter here:
self.turn_off("switch.patio_lights") self.turn_off("light.office_1")
and in that part some more.
this one i already mentioned the missing selfs
time = parse_time("17:30:00")
time = parse_time("sunrise")
time = parse_time("sunset + 00:30:00")
time = parse_time("sunrise + 01:00:00")
i think it is wise to read it yourselve 1 more time slowly, i think you can find and update more than i.
but i am still very glad with it.
right now i’m moving other automations to apps.
another advantage i see is that you can easyly create logfiles just like you like them.
i missed an easy way to look back if an automation had fired or not, now i made an automations.log and can find them in a second.