Computed attributes not logged for vehicles

Luke!2 years ago

Good afternoon.
Via Settings - computed attributes, I defined some custom attributes which basically is a copy of an already existing variable. Example:

  • Description: "Battery connected"
  • Attribute: "door"
  • Expression: "door ? "Yes" : "No"
  • Type: text

If I run a test against a vehicle, it gives me to correct result "Yes" or "No", so the expression validates and the data is there.

However, I now want to activate this Computed attribute for some vehicles. What I did is first connect/linked it to the Device group, and afterwards even to the Vehicle itself, but the Computed attribute won't show up at the "More details" list per vehicle.

Any clue as to what I forgot in order to have the custom attribute show up?

Anton Tananaev2 years ago

Have you tried connecting directly to the device?

Luke!2 years ago

Thank you for your swift reply. Yes, that's what I meant with "What I did is first connect/linked it to the Device group, *** and afterwards even to the Vehicle itself, ***"

Anton Tananaev2 years ago

And you waited for new data from the device? In that case you should definitely see it.

Luke!2 years ago

Yes, it refreshes every 10 seconds, I waited 15 mins.

Anton Tananaev2 years ago

You don't see the "door" in details? You're clearly missing something. Based on the information provided, it's guaranteed to show.

Luke!2 years ago

Yes, I see the "door" in the details, but I want to see my computed attribute "Battery connected". I try to use the door variable to compute the "Battery connected" variable.

Luke!2 years ago

Ah, now I understand. I need to add an attribute "Battery connected" and then created a Computed attribute as follows:
Description: "Battery connected"
Attribute: "Battery connected" ----> instead of "door"
Expression: "door ? "Yes" : "No"
Type: text

Anton Tananaev2 years ago

Yeah, attribute is what you will see in the position. Description is not used anywhere.