def __init__(self, botengine, device_id, device_type, device_description, precache_measurements=True): Device.__init__(self, botengine, device_id, device_type, device_description, precache_measurements=precache_measurements) # The boolean on/off state of this device that was saved self.saved_state = False # Saved brightess self.saved_brightness = None # Saved hue self.saved_hue = None # Saved saturation self.saved_saturation = None # Whether the saved_state is valid or not self.saved = False
def __init__(self, botengine, device_id, device_type, device_description, precache_measurements=True): Device.__init__(self, botengine, device_id, device_type, device_description, precache_measurements=precache_measurements) if not hasattr(self, "saved_state"): self.saved_state = False if not hasattr(self, "saved"): self.saved = False
def __init__(self, device_manager: 'DeviceManager', device_name: str, state: State = State.unknown): Device.__init__(self, device_manager, device_name, state) self.adb_port = 5037 self.port = None
def __init__(self, botengine, device_id, device_type, device_description, precache_measurements=True): Device.__init__(self, botengine, device_id, device_type, device_description, precache_measurements=precache_measurements)
def __init__(self, device_manager: 'DeviceManager', device_name: str = "", state: State = State.unknown) -> None: Device.__init__(self, device_manager, device_name, state) self.avd_manager = RequiredFeature('avd_manager').request() self.port: Optional[int] self.adb_port: Optional[int] if device_name != "": # we assume device_name has form "emulator-xxxx" self.port = int(device_name.split('-')[1]) self.adb_port = self.get_adb_server_port_for_emulator_port( self.port) else: self.port = None self.adb_port = None self.avd_name: str = ""
def __init__(self): Device.__init__(self, ping_reverse_order, ping_parser_list) self.partitions = []
def __init__(self, ping=ping_source_repeat_caller): Device.__init__(self, ping, ping_parser_dot)
def __init__(self): Device.__init__(self, ping_a_caller, ping_parser_list)
def __init__(self, botengine, device_id, device_type, device_description, precache_measurements=True): # Whether we've saved the state of this thermostat self.ee_active = False # Saved system mode self.saved_system_mode = None # Stack of energy efficiency policies. # Each policy is a dictionary of the form: # # "name of the policy so it can be cancelled later": offset_c relative to the user's preferred temperature while home (always a positive number) # # The act of having a policy stored implies the policy is active. # The most aggressive energy efficiency policy is applied. # Energy efficiency policies are additive to any current demand response event. self.ee_stack = {} # Stack of demand response policies. # Each policy is a dictionary of the form: # # "name of the policy so it can be cancelled later": offset_c relative to the user's preferred temperature while home (always a positive number) # # The act of having a policy stored implies the policy is active. # The most aggressive demand response policy is applied. # Demand response policies are additive to any current energy efficiency policies. self.dr_stack = {} # Tuple (value, timestamp, verified): the last system mode command we sent the thermostat self.last_system_mode_command = None # Tuple (value, timestamp, verified): the last cooling setpoint command we sent the thermostat self.last_cooling_setpoint_command = None # Tuple (value, timestamp, verified): the last heating setpoint command we sent the thermostat self.last_heating_setpoint_command = None # Timestamp at which the user last adjusted their thermostat self.user_adjusted_timestamp = None # Preferred heating setpoint for this thermostat while you're home self.preferred_heating_setpoint_home_c = 20.0 # 68F # Preferred cooling setpoint for this thermostat while you're home self.preferred_cooling_setpoint_home_c = 23.9 # 75F # Absolute maximum heating offset (when you're on vacation or something) self.absolute_max_heating_offset_c = 8.3 # 15F # Absolute maximum cooling offset (when you're on vacation or something) self.absolute_max_cooling_offset_c = 8.3 # 15F # Preferred cooling offset when we're in away mode self.preferred_heating_offset_away_c = 2.4 # 5F # Preferred heating offset when we're in away mode self.preferred_cooling_offset_away_c = 2.4 # 5F # Preferred cooling offset when we're in away mode self.preferred_heating_offset_sleep_c = 2.4 # 5F # Preferred heating offset when we're in away mode self.preferred_cooling_offset_sleep_c = 2.4 # 5F Device.__init__(self, botengine, device_id, device_type, device_description, precache_measurements=precache_measurements)
def __init__(self): Device.__init__(self, ping_source_repeat_caller, ping_parser_list)
def __init__(self): Device.__init__(self, ping_source_ip_caller, ping_parser_dot)