# What are ways to convert enumerated message to meaning message?

**URL:** <https://discourse.nodered.org/t/what-are-ways-to-convert-enumerated-message-to-meaning-message/11599>\
**Category:** General\
**Created:** [27 May 2019 13:11 UTC](https://discourse.nodered.org/t/what-are-ways-to-convert-enumerated-message-to-meaning-message/11599 "2019-05-27T13:11:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![muharremsari](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/muharremsari/32/7996_2.png) [@muharremsari](https://discourse.nodered.org/u/muharremsari)\
**Post date:** [27 May 2019 13:11 UTC](https://discourse.nodered.org/t/what-are-ways-to-convert-enumerated-message-to-meaning-message/11599/1 "2019-05-27T13:11:28Z")

</div>

I have a enumerated states from an UPS . How can I convert enumarated message to meaning message ?

other(1),  
none(2),  
primaryUtility(3),  
bypassFeed(4),  
secondaryUtility(5),  
generator(6),  
flywheel(7),  
fuelcell(8)

 ![enumerated_to_meaning](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/0/0c03094bac825757087e067a673051629e538729.jpeg)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [27 May 2019 16:26 UTC](https://discourse.nodered.org/t/what-are-ways-to-convert-enumerated-message-to-meaning-message/11599/2 "2019-05-27T16:26:52Z")

</div>

this thread will help you...

> [@Map device id to name and vice versa](https://discourse.nodered.org/t/map-device-id-to-name-and-vice-versa/11561/2):
>
> Hi, I really wanted to write up and explain (one of many) ways you could achieve this but TBH, I am fairly hungover and found it easier just to knock up a demo (picture/flow worth a thousand words etc)... [{"id":"911d97ae.52d498","type":"tab","label":"Flow 5","disabled":false,"info":""},{"id":"8a23298a.31ec48","type":"inject","z":"911d97ae.52d498","name":"Init pulse","topic":"","payload":"","payloadType":"bool","repeat":"","crontab":"","once":true,"onceDelay":0.1,"x":120,"y":60,"wires…

---

<div class="post-metadata">

**Author:** ![muharremsari](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/muharremsari/32/7996_2.png) [@muharremsari](https://discourse.nodered.org/u/muharremsari)\
**Post date:** [27 May 2019 17:59 UTC](https://discourse.nodered.org/t/what-are-ways-to-convert-enumerated-message-to-meaning-message/11599/3 "2019-05-27T17:59:53Z")

</div>

Wow Wow Wow ... Bro.

There's no better way to do it. U are so amazing.

Best ragards
