def _pre_delete_callback(self, m): cbpi.stop_sensor(m.id)
def _post_put_callback(self, m): cbpi.stop_sensor(m.id) cbpi.init_sensor(m.id)