def setup(self, opts): ZoneController.setup(self, opts) # we want to publish the heat/cool setpoints self.add_timeseries('/temp_heat','F',data_type='double') self.add_timeseries('/temp_cool','F',data_type='double') # we want to write a special averaging function to handle the temperature sensors, so # we use add_callback to run it automatically when new sensor data comes in self.add_callback('temp_sensor', self.avg_temp, opts.get('subscribe/temp_sensor'))
def setup(self, opts): ZoneController.setup(self, opts) # we want to publish the heat/cool setpoints self.add_timeseries('/temp_heat', 'F', data_type='double') self.add_timeseries('/temp_cool', 'F', data_type='double') # we want to write a special averaging function to handle the temperature sensors, so # we use add_callback to run it automatically when new sensor data comes in self.add_callback('temp_sensor', self.avg_temp, opts.get('subscribe/temp_sensor'))
def setup(self, opts): ZoneController.setup(self, opts) self.add_timeseries('/temp_heat','F',data_type='double') self.add_timeseries('/temp_cool','F',data_type='double')