# Display ENUM as title instead of ID

**URL:** <https://community.homey.app/t/display-enum-as-title-instead-of-id/19458>\
**Category:** Developers\
**Created:** [October 18, 2019, 3:27pm UTC](https://community.homey.app/t/display-enum-as-title-instead-of-id/19458 "2019-10-18T15:27:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan\_Lenders](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/stefan_lenders/32/10368_2.png) [@Stefan\_Lenders](https://community.homey.app/u/Stefan_Lenders)\
**Post date:** [October 18, 2019, 3:27pm UTC](https://community.homey.app/t/display-enum-as-title-instead-of-id/19458/1 "2019-10-18T15:27:00Z")

</div>

I’m trying to get an enum capability to show the title of the value as a sensor value.  
Sadly it only shows the ID value instead of the title.

Is there a way to display the title from the proper language of the enum value?  
This is what I currently have to set the value

```
this.changeCapabilityValue('tarifcode', String(tariff));

```

Thanks so far
