Here is what I do on my side for my 2 covers:
self.shutter_tv = self.get_entity('cover.shutter_tv_cover')
self.shutter_stairs = self.get_entity('cover.shutter_stairs_cover')
self.run_at_sunset(self.run_daily_sunset_callback, offset=1800)
self.run_at_sunrise(self.run_daily_sunrise_callback, offset=-1800)
#--------------------------------------------------------------
def run_daily_sunset_callback(self, kwargs):
self.shutter_tv.call_service("close_cover")
self.shutter_stairs.call_service("close_cover")
self.log("sunset:close shutters")
self.set_textvalue('input_text.info_shutter_timing', "will open at "+str(self.morning_time))
def run_daily_sunrise_callback(self, kwargs):
self.shutter_tv.call_service("open_cover")
self.shutter_stairs.call_service("open_cover")
self.log("sunrise:open shutters")
self.set_textvalue('input_text.info_shutter_timing', "will close at "+str(self.evening_time))