Referencing Device Properties within a Synthetic Variable

Hello, I am trying to reference a Device Property in a Synthetic Variable.

I am following these instructions: Analytics: Advanced Synthetic Variables | Ubidots Help Center

I don’t seem to be able to reference the device/property correctly (I cannot press submit on the synthetic variable).

For example, here is a simple equation:

image

I am using the API Key in place of the for the devices, and the property is called “test”. I have also tried the Device ID with no luck.

What am I doing incorrectly?

Thank you!

Just following up on this :slight_smile:

Hello @qntfy, we apologize for the late reply.

[Update] Reviewing this issue further, the behavior is as expected. I must clarify some important things to keep in mind in order for this to work:

  • Add the device ID correctly: To retrieve the properties you want to use in your expression, you must use the ID of the device, which you can obtain from the device view or directly from the URL.

  • Verify the key of the property you are using is exactly the one you configured previously: If the property key does not exist, it won’t work. In my case I used the name “test” for my property

  • You must add a variable to the expression: Please keep in mind that you are adding the property as a constant to the expression, this means you still need to add a variable for this to be a Synthetic Variable. Note: leave a space between the key and the next mathematical symbol of the expression.

If you do this correctly, and according to the article, you should have a valid expression.
–Camilo