Beispiel #1
0
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_family = familyAPI(self.m_pyhouse_obj).LoadFamilyTesting()
     self.m_pyhouse_obj.House.FamilyData = self.m_family
     self.m_light_obj = LightData()
     self.m_version = '1.4.0'
Beispiel #2
0
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_pyhouse_obj.House.FamilyData = familyAPI(
         self.m_pyhouse_obj).LoadFamilyTesting()
     #
     lightingAPI(self.m_pyhouse_obj).LoadXml(self.m_pyhouse_obj)
Beispiel #3
0
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_family = familyAPI(self.m_pyhouse_obj).LoadFamilyTesting()
     self.m_pyhouse_obj.House.FamilyData = self.m_family
     self.m_api = securityAPI
     self.m_garage_door_obj = GarageDoorData()
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_family = familyAPI(self.m_pyhouse_obj).LoadFamilyTesting()
     self.m_pyhouse_obj.House.FamilyData = self.m_family
     self.m_api = controllerAPI()
     self.m_controller_obj = ControllerData()
Beispiel #5
0
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_light_obj = LightData()
     self.m_api = lightingAPI(self.m_pyhouse_obj)
     self.m_family = familyAPI(self.m_pyhouse_obj).LoadFamilyTesting()
     self.m_pyhouse_obj.House.FamilyData = self.m_family
Beispiel #6
0
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_family = familyAPI(self.m_pyhouse_obj).LoadFamilyTesting()
     self.m_pyhouse_obj.House.FamilyData = self.m_family
     self.m_api = buttonsAPI()
     self.m_button_obj = ButtonData()
     self.m_version = '1.4.0'
Beispiel #7
0
 def setUp(self):
     SetupMixin.setUp(self, ET.fromstring(XML_LONG))
     self.m_api = GetPyhouse(self.m_pyhouse_obj)
     self.m_light_api = lightsAPI()
     self.m_pyhouse_obj.House.FamilyData = familyAPI(
         self.m_pyhouse_obj).m_family
     self.m_pyhouse_obj.House.Lighting.Lights = self.m_light_api.read_all_lights_xml(
         self.m_pyhouse_obj, self.m_xml.light_sect, self.m_version)
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_family = familyAPI(self.m_pyhouse_obj).LoadFamilyTesting()
     self.m_pyhouse_obj.House.FamilyData = self.m_family
     self.m_api = controllerAPI()
     self.m_controller_obj = ControllerData()
     self.m_version = '1.4.0'
Beispiel #9
0
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_yaml = SetupPyHouseObj().BuildYaml(None)
     #
     self.m_family = familyAPI(self.m_pyhouse_obj).LoadFamilyTesting()
     self.m_pyhouse_obj._Families = self.m_family
     self.m_filename = CONFIG_FILE_NAME
     self.m_yamlconf = configYaml(self.m_pyhouse_obj)
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_obj = ControllerData()
     self.inst = Util
     self.m_pyhouse_obj.House.FamilyData = familyAPI(self.m_pyhouse_obj).LoadFamilyTesting()
     self.m_pyhouse_obj.House.Lighting = lightingUtility()._read_lighting_xml(self.m_pyhouse_obj)
     self.m_pyhouse_obj.House.Hvac = hvacXML.read_hvac_xml(self.m_pyhouse_obj)
Beispiel #11
0
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_family = familyAPI(self.m_pyhouse_obj).LoadFamilyTesting()
     self.m_pyhouse_obj.House.FamilyData = self.m_family
     self.m_api = buttonsAPI()
     self.m_button_obj = ButtonData()
     self.m_version = "1.4.0"
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_pyhouse_obj.House.FamilyData = familyAPI(self.m_pyhouse_obj).LoadFamilyTesting()
     self.m_pyhouse_obj.House.Lighting = lightingUtility()._read_lighting_xml(self.m_pyhouse_obj)
     self.m_pyhouse_obj.House.Security.GarageDoors = securityXML().read_all_GarageDoors_xml(self.m_pyhouse_obj)
     self.m_pyhouse_obj.House.Security.MotionSensors = securityXML().read_all_MotionSensors_xml(self.m_pyhouse_obj)
     self.m_pyhouse_obj.House.Hvac = hvacXML.read_hvac_xml(self.m_pyhouse_obj)
Beispiel #13
0
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_pyhouse_obj.House.Location.RiseSet = Mock.RiseSet()
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_api = scheduleAPI(self.m_pyhouse_obj)
     self.m_schedules = scheduleXml.read_schedules_xml(self.m_pyhouse_obj)
     self.m_pyhouse_obj.House.Schedule = self.m_schedules
     self.m_schedule_obj = self.m_schedules[0]
     twisted.internet.base.DelayedCall.debug = True
     self.m_pyhouse_obj.House.FamilyData = familyAPI(self.m_pyhouse_obj).LoadFamilyTesting()
Beispiel #14
0
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_pyhouse_obj.House.Location.RiseSet = Mock.RiseSet()
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_api = scheduleAPI(self.m_pyhouse_obj)
     self.m_schedules = scheduleXml.read_schedules_xml(self.m_pyhouse_obj)
     self.m_pyhouse_obj.House.Schedule = self.m_schedules
     self.m_schedule_obj = self.m_schedules[0]
     twisted.internet.base.DelayedCall.debug = True
     self.m_pyhouse_obj.House.FamilyData = familyAPI(self.m_pyhouse_obj).LoadFamilyTesting()
Beispiel #15
0
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_pyhouse_obj.House.FamilyData = familyAPI(self.m_pyhouse_obj).m_family
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_device_obj = LightData()
     self.m_device_obj.Name = TESTING_LIGHTING_LIGHTS_NAME_1
     self.m_device_obj.DeviceFamily = TESTING_DEVICE_FAMILY_INSTEON
     self.m_device_obj.Active = True
     self.m_device_obj.DeviceType = 1
     self.m_device_obj.DeviceSubType = 234
     self.m_version = "1.4.0"
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_version = '1.4.0'
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_pyhouse_obj.House.FamilyData = familyAPI(
         self.m_pyhouse_obj).LoadFamilyTesting()
     self.m_pyhouse_obj.House.Lighting.Controllers = controllerAPI(
     ).read_all_controllers_xml(self.m_pyhouse_obj)
     self.m_pyhouse_obj.House.Lighting.Lights = lightsAPI.read_all_lights_xml(
         self.m_pyhouse_obj, self.m_xml.controller_sect, self.m_version)
     self.m_pyhouse_obj.House.Hvac = hvacXML.read_hvac_xml(
         self.m_pyhouse_obj)
Beispiel #17
0
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_version = '1.4.0'
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_pyhouse_obj.House.FamilyData = familyAPI(
                         self.m_pyhouse_obj).LoadFamilyTesting()
     self.m_pyhouse_obj.House.Lighting.Controllers = controllerAPI().read_all_controllers_xml(
                         self.m_pyhouse_obj, self.m_xml.controller_sect, self.m_version)
     self.m_pyhouse_obj.House.Lighting.Lights = lightsAPI.read_all_lights_xml(
                         self.m_pyhouse_obj, self.m_xml.controller_sect, self.m_version)
     self.m_pyhouse_obj.House.Hvac = hvacXML.read_hvac_xml(
                         self.m_pyhouse_obj)
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_pyhouse_obj._Families = familyAPI(
         self.m_pyhouse_obj).LoadFamilyTesting()
     self.m_pyhouse_obj.House.Lighting = lightingUtility(
     )._read_lighting_xml(self.m_pyhouse_obj)
     self.m_pyhouse_obj.House.Security.GarageDoors = securityXML(
     ).read_all_GarageDoors_xml(self.m_pyhouse_obj)
     self.m_pyhouse_obj.House.Security.MotionSensors = securityXML(
     ).read_all_MotionSensors_xml(self.m_pyhouse_obj)
     self.m_pyhouse_obj.House.Hvac = hvacXML.read_hvac_xml(
         self.m_pyhouse_obj)
Beispiel #19
0
 def _init_component_apis(p_pyhouse_obj, p_api):
     """
     Initialize all the house APIs
     """
     p_pyhouse_obj.APIs.House.HouseAPI = p_api
     p_pyhouse_obj.APIs.House.EntertainmentAPI = entertainmentAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.FamilyAPI = familyAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.HvacAPI = hvacAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.IrrigationAPI = irrigationAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.LightingAPI = lightingAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.PoolAPI = poolAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.ScheduleAPI = scheduleAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.SecurityAPI = securityAPI(p_pyhouse_obj)
Beispiel #20
0
 def _init_component_apis(p_pyhouse_obj, p_api):
     """
     Initialize all the house APIs
     """
     # print(PrettyFormatAny.form(p_pyhouse_obj.House, 'house.API-2', 180))
     p_pyhouse_obj.APIs.House.HouseAPI = p_api
     p_pyhouse_obj.APIs.House.EntertainmentAPI = entertainmentAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.FamilyAPI = familyAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.HvacAPI = hvacAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.IrrigationAPI = irrigationAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.LightingAPI = lightingAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.PoolAPI = poolAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.ScheduleAPI = scheduleAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.SecurityAPI = securityAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.SyncAPI = syncAPI(p_pyhouse_obj)
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_pyhouse_obj.House.FamilyData = familyAPI(self.m_pyhouse_obj).m_family
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_device_obj = LightData()
     self.m_device_obj.Name = TESTING_LIGHT_NAME_0
     self.m_device_obj.Key = TESTING_LIGHT_KEY_0
     self.m_device_obj.Active = TESTING_LIGHT_ACTIVE_0
     self.m_device_obj.Comment = TESTING_DEVICE_COMMENT_0
     self.m_device_obj.BrightnessPct = TESTING_LIGHT_CUR_LEVEL_0
     self.m_device_obj.DeviceFamily = TESTING_LIGHT_DEVICE_FAMILY_0
     self.m_device_obj.DeviceType = 1
     self.m_device_obj.DeviceSubType = 3
     self.m_device_obj.RoomCoords = TESTING_DEVICE_ROOM_COORDS
     self.m_device_obj.RoomName = TESTING_LIGHT_ROOM_NAME_0
     self.m_device_obj.RoomUID = TESTING_DEVICE_ROOM_UUID
     self.m_api = deviceXML()
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_pyhouse_obj.House.FamilyData = familyAPI(
         self.m_pyhouse_obj).m_family
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_device_obj = LightData()
     self.m_device_obj.Name = TESTING_LIGHT_NAME_0
     self.m_device_obj.Key = TESTING_LIGHT_KEY_0
     self.m_device_obj.Active = TESTING_LIGHT_ACTIVE_0
     self.m_device_obj.Comment = TESTING_DEVICE_COMMENT
     self.m_device_obj.CurLevel = TESTING_LIGHT_CUR_LEVEL_0
     self.m_device_obj.DeviceFamily = TESTING_LIGHT_FAMILY_0
     self.m_device_obj.DeviceType = 1
     self.m_device_obj.DeviceSubType = 234
     self.m_device_obj.RoomCoords = TESTING_DEVICE_ROOM_COORDS
     self.m_device_obj.RoomName = TESTING_DEVICE_ROOM_NAME
     self.m_version = '1.4.0'
Beispiel #23
0
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_pyhouse_obj._Families = familyAPI(self.m_pyhouse_obj).m_family
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_api = deviceXML()
Beispiel #24
0
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_families = familyAPI(self.m_pyhouse_obj).LoadFamilyTesting()
Beispiel #25
0
 def LoadHouse(self, p_pyhouse_obj):
     p_pyhouse_obj.House.FamilyData = familyAPI(p_pyhouse_obj).LoadFamilyTesting()
     housingAPI(p_pyhouse_obj).LoadXml(p_pyhouse_obj)
     return
Beispiel #26
0
 def LoadHouse(self, p_pyhouse_obj):
     p_pyhouse_obj.House.FamilyData = familyAPI(
         p_pyhouse_obj).LoadFamilyTesting()
     housingAPI(p_pyhouse_obj).LoadXml(p_pyhouse_obj)
     return
Beispiel #27
0
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_pyhouse_obj.House.FamilyData = familyAPI(self.m_pyhouse_obj).LoadFamilyTesting()
     #
     lightingAPI(self.m_pyhouse_obj).LoadXml(self.m_pyhouse_obj)
 def setUp(self):
     SetupMixin.setUp(self, ET.fromstring(XML_LONG))
     self.m_pyhouse_obj.House.FamilyData = familyAPI().build_lighting_family_info()
     self.m_controller_obj = ControllerData()
Beispiel #29
0
 def setUp(self):
     SetupMixin.setUp(self, ET.fromstring(XML_LONG))
     self.m_api = GetPyhouse(self.m_pyhouse_obj)
     self.m_light_api = lightsAPI()
     self.m_pyhouse_obj.House.FamilyData = familyAPI(self.m_pyhouse_obj).m_family
     self.m_pyhouse_obj.House.Lighting.Lights = self.m_light_api.read_all_lights_xml(self.m_pyhouse_obj, self.m_xml.light_sect, self.m_version)
Beispiel #30
0
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_families = familyAPI(self.m_pyhouse_obj).LoadFamilyTesting()