0 Members and 1 Guest are viewing this topic.
# turn on entertainment center if presentIf MotionSensor == 'tripped': If Location == 'Living Room': TurnOnHomeEntertainmentCenter()or# morning wakeup lightdt = datetime.now() if dt.strftime('%A') == 'Monday' and dt.hour == 7 and dt.minute == 21: TurnOnBedroomLamp()or#turn on/off all three bulbs in fixtures= {}s['sensor0'] = 0s['sensor1'] = 1s['sensor2'] = 0for key in d: if key.value == 1: break SetfixtureBool(key.value)
Page created in 0.122 seconds with 22 queries.