def initialize(self, botengine): ''' Initializer :param botengine: BotEngine ''' Device.initialize(self, botengine) if not hasattr(self, "ee_offset_c"): self.ee_offset_c = None if not hasattr(self, "absolute_max_cooling_offset_c"): self.absolute_max_cooling_offset_c = 8.3 if not hasattr(self, 'absolute_max_heating_offset_c'): self.absolute_max_heating_offset_c = 8.3 if not hasattr(self, 'dr_stack'): self.dr_stack = {} if not hasattr(self, 'ee_active'): self.ee_active = False if not hasattr(self, 'ee_offset_c'): self.ee_offset_c = None if not hasattr(self, 'ee_stack'): self.ee_stack = {} if not hasattr(self, 'last_cooling_setpoint_command'): self.last_cooling_setpoint_command = None if not hasattr(self, 'last_heating_setpoint_command'): self.last_heating_setpoint_command = None if not hasattr(self, 'last_system_mode_colmmand'): self.last_system_mode_command = None if not hasattr(self, 'preferred_cooling_offset_away_c'): self.preferred_cooling_offset_away_c = 2.4 if not hasattr(self, 'preferred_heating_offset_away_c'): self.preferred_heating_offset_away_c = 2.4 if not hasattr(self, 'preferred_cooling_setpoint_home_c'): self.preferred_cooling_setpoint_home_c = 23.9 if not hasattr(self, 'preferred_heating_setpoint_home_c'): self.preferred_heating_setpoint_home_c = 20.0 if not hasattr(self, 'preferred_cooling_offset_sleep_c'): self.preferred_cooling_offset_sleep_c = 2.4 if not hasattr(self, 'preferred_heating_offset_sleep_c'): self.preferred_heating_offset_sleep_c = 2.4 if not hasattr(self, 'saved_system_mode'): self.saved_system_mode = None if not hasattr(self, 'user_adjusted_timestamp'): self.user_adjusted_timestamp = None
def initialize(self, botengine): Device.initialize(self, botengine) if not hasattr(self, 'saved_brightness'): self.saved_brightness = None if not hasattr(self, 'saved_hue'): self.saved_hue = None if not hasattr(self, 'saved_saturation'): self.saved_saturation = None
def initialize(self, botengine): Device.initialize(self, botengine) if not hasattr(self, 'saved_brightness'): self.saved_brightness = None if not hasattr(self, 'saved_hue'): self.saved_hue = None if not hasattr(self, 'saved_saturation'): self.saved_saturation = None
def initialize(self, botengine): Device.initialize(self, botengine)
def initialize(self, botengine): Device.initialize(self, botengine)