Aliasing IoT Sitewise Asset Attributes

0

Is it possible to alias the attributes of an IoT Sitewise asset, so that we can update the attributes dynamically for many devices ?

Say I have many IoT things , modelled as assets, iot-car. Cars have a 'color' attribute, string, which is updated very rarely, and so isn't really timeseries data, but a car an be painted once per year maybe.

I know I can manually change the attribute via the cli or console, and I know I can automatically update it from an IoT Rule if I specify the Asset ID and the property ID (and I can see that the 'color' property ID is the same for all my different cars).

Is it possible, using aliasing/substitution/similar, to have cars automatically update themselves, without requiring a different rule per car ? As I have to specify the property AND asset ID in the rule it seems like I can't.

asked a year ago295 views
2 Answers
0
Accepted Answer

Hi scriobhneoir,

perhaps you can change the color attribute to a measurement. Then you can update the color with a property alias.

In case you want to modify the attribute via IoT Core you don't need one rule per car. You can use one rule and put the assetId and propertId into the payload for example:

{
  "assetId": 1234,
  "propertId: 5678,
  "color": "gray"
}

Then you can use substitution templates in the IoT rule action, for example ${propertId} or ${assetId}.

Cheers,
Philipp

AWS
EXPERT
answered a year ago
0

Hi scriobhneoir,

does this help: Mapping industrial data streams to asset properties?

Cheers,
Philipp

AWS
EXPERT
answered a year ago
  • Hi Philipp, thanks for the link, though it doesn't help.

    I read through all (I think) of the AWS docs related to ingesting sitewise data through IoT rules. The links there explain how to alias properties, but not attributes.

    I would like to alias attributes, which are the non-time-series data associated with an asset. You can send data to them with an IoT rule, but you have to specify the exact asset ID and property ID. To use my example above, if I have two cars, with asset ID 1234 and another with 5678, I would have to create specific IoT rules targeting each asset, and new rules for any new asset, which isn't scalable.

    Is there a way to use the substitution template to set to the asset ID for adding attributes to an asset ?

  • Hi Philipp, any update ?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions