Hello,
I’m trying to disable the UPS beeper using the set_state() app, as following (the status is changing for few seconds … but it turn back to the default status value):
# Create a time object for Disabled the UPS Beeper status at 20:00 every night.
runtime_ups_beeper_off = datetime.time(20, 00, 0)
self.run_daily(self.disabel_ups_beeper, runtime_ups_beeper_off)
def disabel_ups_beeper(self, entity):
self.log("Disabled the UPS Beeper status at 20:00 every night.")
self.set_state(self._ups_beeper_status, state="disabled")
Any suggestions ?