Hi there !
I already got a great advance with my workflow.
I tried to implement a drop down selector which values an labels should appear on the payload.
{
"device_to_update": {
"compositeState": {
"limit5": {
"value": 100,
"relayType": "flow",
"relayId": "5c60c54b0b719400072d2513",
"time": "2019-02-16T04:42:30.099Z"
},
"limit4": {
"value": 90,
"relayType": "flow",
"relayId": "5c60c54b0b719400072d2513",
"time": "2019-02-16T04:42:28.438Z"
},
"limit3": {
"value": 90,
"relayType": "flow",
"relayId": "5c60c54b0b719400072d2513",
"time": "2019-02-16T04:42:26.598Z"
},
"limit2": {
"value": 83,
"relayType": "flow",
"relayId": "5c60c54b0b719400072d2513",
"time": "2019-02-16T04:42:24.991Z"
},
"limit1": {
"value": 78,
"relayType": "flow",
"relayId": "5c60c54b0b719400072d2513",
"time": "2019-02-16T04:42:24.048Z"
},
"limit0": {
"value": 63,
"relayType": "flow",
"relayId": "5c60c54b0b719400072d2513",
"time": "2019-02-16T04:42:22.783Z"
},
"value8": {
"value": 372,
"relayType": "flow",
"relayId": "5c60c54b0b719400072d2513",
"time": "2019-02-16T04:50:35.088Z"
},
"value7": {
"value": 352,
"relayType": "flow",
"relayId": "5c60c54b0b719400072d2513",
"time": "2019-02-16T04:50:35.088Z"
},
"value6": {
"value": 352,
"relayType": "flow",
"relayId": "5c60c54b0b719400072d2513",
"time": "2019-02-16T04:50:35.088Z"
},
"value5": {
"value": 352,
"relayType": "flow",
"relayId": "5c60c54b0b719400072d2513",
"time": "2019-02-16T04:50:35.088Z"
},
"value4": {
"value": 57,
"relayType": "flow",
"relayId": "5c60c54b0b719400072d2513",
"time": "2019-02-16T04:50:35.088Z"
},
"value3": {
"value": 56,
"relayType": "flow",
"relayId": "5c60c54b0b719400072d2513",
"time": "2019-02-16T04:50:35.088Z"
},
"value2": {
"value": 49,
"relayType": "flow",
"relayId": "5c60c54b0b719400072d2513",
"time": "2019-02-16T04:50:35.088Z"
},
"value1": {
"value": 44,
"relayType": "flow",
"relayId": "5c60c54b0b719400072d2513",
"time": "2019-02-16T04:50:35.088Z"
},
"value0": {
"value": 29,
"relayType": "flow",
"relayId": "5c60c54b0b719400072d2513",
"time": "2019-02-16T04:50:35.088Z"
}
},
"connectionInfo": {
"connected": null
},
"id": "5c639a329833d9000881131f",
"deviceId": "5c639a329833d9000881131f",
"lastUpdated": "2019-02-16T04:36:49.308Z",
"creationDate": "2019-02-13T04:16:50.060Z",
"applicationId": "5c60c3aa0b719400072d2510",
"deviceClass": "standalone",
"tags": [
{
"value": "3e0039000247363339343638",
"key": "particle_device_id"
}
],
"attributes": [
{
"dataType": "number",
"name": "value0"
},
{
"dataType": "number",
"name": "value1"
},
{
"dataType": "number",
"name": "value2"
},
{
"dataType": "number",
"name": "value3"
},
{
"dataType": "number",
"name": "value4"
},
{
"dataType": "number",
"name": "value5"
},
{
"dataType": "number",
"name": "value6"
},
{
"dataType": "number",
"name": "value7"
},
{
"dataType": "number",
"name": "value8"
},
{
"dataType": "number",
"name": "limit0"
},
{
"dataType": "number",
"name": "limit1"
},
{
"dataType": "number",
"name": "limit2"
},
{
"dataType": "number",
"name": "limit3"
},
{
"dataType": "number",
"name": "limit4"
},
{
"dataType": "number",
"name": "limit5"
},
{
"dataType": "number",
"name": "limit6"
},
{
"dataType": "number",
"name": "limit7"
},
{
"dataType": "number",
"name": "limit8"
}
],
"description": "",
"name": "Photon_Star"
},
"globals": {},
"applicationName": "Sensor_Star",
"flowName": "Photon_Star_Wfw",
"flowId": "5c60c54b0b719400072d2513",
"flowVersion": "develop",
"relayType": "integration",
"relayId": "5c60c427dbea67000758af22",
"triggerType": "integration",
"triggerId": "5c60c427dbea67000758af22",
"applicationId": "5c60c3aa0b719400072d2510",
"data": {
"value8": "373",
"value7": "353",
"value6": "353",
"value5": "353",
"value4": "58",
"value3": "57",
"value2": "50",
"value1": "45",
"value0": "30",
"name": "Photon_test1",
"coreid": "xxxxx00024736333xxxxxxx",
"published_at": "2019-02-16T04:50:45.070Z",
"ttl": 60,
"data": "30:45:50:57:58:353:353:353:373"
},
"time": "2019-02-16T04:50:45.085Z"
}
This is the drop down selector:
The name is : REF
I set the labels RA, RB and RC with values 10,20,30. respectively.
I would like to include those labels and values in the payload and be able to access them later.
I do not understand how establish the connection between the drop down selector and the payload.
Can I get some assistance on that?
Thanks in advance.