Theming custom entity created with Entity API: accessing entity's fields in template file
This can be easily solved by including this snippet at the beginning of your template file:

// my_template.tpl.php
&lt;?php
$keys = array_keys($element['my_entity_type']);
$my_entity_name = $keys[0];
$my_entity = $element['my_entity_type'][$my_entity_name];
?&gt;


Now you can easily print values like so:

&lt;?php print render($my_entity['address']['#markup']); ?&gt;