def setUp(self): self.host = '192.168.13.211' # self.i = HTTP('http', self.host) self.i = Mock_Interface() self.interface = HW_Thermostat(self.i, self.host)
sg.dio_invert(3) sg.dio_invert(4) sg.dio_invert(5) sg.dio_invert(6) sg.dio_invert(7) sg.dio_invert(8) sg.dio_invert(9) sg.dio_invert(10) sg.dio_invert(11) sg.dio_invert(12) # My camera motion software will echo a "motion" to this pipe. pipe_front_yard_motion = StateInterface(NamedPipe('/tmp/front_yard_motion')) thermostat_upstairs = Thermostat( devices=HW_Thermostat(HTTP(host='192.168.13.211'), poll=60), name='Thermostat Upstairs', automatic_delta=2, time=({ Attribute.TIME: (0, 30, 5, '*', '*', (1, 2, 3, 4, 5)), Attribute.COMMAND: (Command.LEVEL, 72), }, )) thermostat_downstairs = Thermostat(devices=HW_Thermostat( HTTP(host='192.168.13.210'), poll=60), name='Thermostat Downstairs', automatic_delta=2) ###################### DEVICE CONFIG ######################### #doors