Computed Attributes Value

Chris H4 years ago

Looking for help understanding how to change a value of an attribute. My device sends Custom1 with a value of B1. I'd like to change B1 to say Voice Call. I've been successful changing the state name, custom1 to Message Type and then hiding custom1 but message type still says B1 no matter what I seem to do. I thought the statement below would work but it just send back no content when tested. I thinking I should be able to do what I want in one statement B1 is voice call B0 is Gps update E is status update.

Message Type
custom1=='b1' ? "Voice":null
String

To Change custom1 to Message Type i simply put custom1 in the expression

Message Type
custom1
String

Thanks in advance

Anton Tananaev4 years ago

What result do you get when you test it?

Chris H4 years ago

It said no content. Just went back and tried making the b1 B1 and now its working as expected. I thought I had to use all lowercase but I guess for the value you have to put exactly what you see. Thanks for your reply!