Are the steps below feasible to automatically spin up attributes based on a payload with multiple measurements? I have tried to get it to work but there seems to be an issue if the attribute does not exist:
- Manually add or clone new asset
- Create json object ‘payload’ attribute to receive payload data
- Consume uplink payload via MQTT agent link etc
- Create boolean attribute called ‘provisionDevice’
- Manually check ‘provisionDevice’ attribute
- Groovy rule triggers and decodes payload into individual names, values and types
- Groovy rule adds new attributes to the asset
- Groovy rule create Attribute Links etc
- Turns ‘provisionDevice’ to false