V
Size: a a a
V
M
M
M
RO
Y
RO
DD
M
DD
DD
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)
DD
M
M
AS
AS
AS
G
G
AS