How do I get Rules to see my custom entity? From what I've read in the past few days, Rules will gather all information it needs from hook_entity_info.  I still can't get my custom entity to appear in the data selector to make things work though.  Here is my implementation of hook_entity_info:

function badge_entity_info() {                                                     
  $info = array();                                                                 

  $info['badge'] = array(                                                          
    'label' =&gt; t('Badge'),                                                         
    'base table' =&gt; 'badge',                                                       
    'class' =&gt; 'DrupalDefaultEntity',                                              
    'controller class' =&gt; 'DrupalDefaultEntityController',                         
    'entity keys' =&gt; array(                                                        
      'id' =&gt; 'bid',                                                               
      'label' =&gt; 'name',                                                           
    ),                                                                             
    'module' =&gt; 'badge',                                                           
    'access callback' =&gt; 'badge_access',                                           
    'admin ui' =&gt; array(                                                           
      'path' =&gt; 'admin/structure/badge',                                           
      'file' =&gt; 'badge.admin.inc',                                                 
    ),                                                                             
    'uri callback' =&gt; 'badge_uri',                                                 
  );                                                                               

  return $info;                                                                    
}


Everything else is working perfectly, I just need to understand how to make Rules recognize my custom entity.
Individual rules can have a type associated with them. Most rules work with Nodes but an Entity is 1 object up in the type hierarchy of Drupal. therefore rule(s) defined with the Rules module must be made aware that they are compatible with your custom entity type.

You would do this with an alter hook for Rules, or providing property information for your Entity:
I can&#39;t set a data value using rule on a custom entity