bС
Size: a a a
bС
bС
AK
НВ
AK
AK
НВ
DD
НВ
НВ
M
DD
DD
DD
DD
M
def initialize(self):
self.lamps = {self.lamp_1: self.input_boolean_1, self.lamp_2: self.input_boolean_2}
for self.lamp in self.lamps:
self.listen_state(self.dimmer, self.lamp, attribute="all")
def dimmer(self):
if self.get_state(self.lamps[self.lamp]) == "on": # input_boolean
if self.now_is_between("00:00:00", "05:30:00"):
self.turn_on(self.lamp, brightness=1, color_temp=350)
M
DD
M
DD