{
"address": "{{device-uuid}}",
"name": "{{$commerce.productAdjective}} {{$commerce.productName}}",
"class": "cls:AllAttributes",
"functions": [
{
"id": "fBasicFunction",
"type": "BasicFunction",
"Binary": {
"type": "AttributeBinary",
"value": "ON"
},
"Boolean": {
"type": "AttributeBoolean"
},
"BooleanState": {
"type": "AttributeBooleanState",
"value": {
"name": "BooleanState",
"value": true
}
},
"CabinetActuatingType": {
"type": "AttributeCabinetActuatingType"
},
"CabinetSegmentsConfiguration": {
"type": "AttributeCabinetSegmentsConfiguration",
"value": [
{
"level": 1,
"segmentMonitors": [
{
"segmentMonitorFunctionId": "123",
"relayState": "OFF"
}
]
},
{
"level": 100,
"segmentMonitors": []
}
]
},
"CCTColorState": {
"type": "AttributeCCTColorState"
},
"Command": {
"type": "AttributeCommand",
"value": {
"state": {
"name": "LevelState",
"value": 50
}
}
},
"ContentsType": {
"type": "AttributeContentsType"
},
"DateTime": {
"type": "AttributeDateTime"
},
"FactorSense": {
"type": "AttributeFactorSense"
},
"Float": {
"type": "AttributeFloat"
},
"FloatKVPArray": {
"type": "AttributeFloatKVPArray"
},
"FloatState": {
"type": "AttributeFloatState"
},
"GasName": {
"type": "AttributeGasName"
},
"Integer": {
"type": "AttributeInteger"
},
"IntegerState": {
"type": "AttributeIntegerState"
},
"LevelAndCCTColorState": {
"type": "AttributeLevelAndCCTColorState"
},
"LevelAndRGBWAFColorState": {
"type": "AttributeLevelAndRGBWAFColorState"
},
"LevelAndXYColorState": {
"type": "AttributeLevelAndXYColorState"
},
"LevelState": {
"type": "AttributeLevelState"
},
"LocalOverride": {
"type": "AttributeLocalOverride"
},
"Location": {
"type": "AttributeLocation"
},
"LuminaireConnectionType": {
"type": "AttributeLuminaireConnectionType"
},
"MountingOption": {
"type": "AttributeMountingOption"
},
"Orientation": {
"type": "AttributeOrientation"
},
"ParkingSlotDataArray": {
"type": "AttributeParkingSlotDataArray"
},
"ParkingSlotOccupancyStatus": {
"type": "AttributeParkingSlotOccupancyStatus"
},
"Percent": {
"type": "AttributePercent"
},
"PositionedTextState": {
"type": "AttributePositionedTextState"
},
"PowerSource": {
"type": "AttributePowerSource"
},
"RGBState": {
"type": "AttributeRGBState"
},
"RGBWAFColorState": {
"type": "AttributeRGBWAFColorState"
},
"RoadUser": {
"type": "AttributeRoadUser"
},
"String": {
"type": "AttributeString"
},
"StringArray": {
"type": "AttributeStringArray"
},
"SupplyType": {
"type": "AttributeSupplyType"
},
"TextState": {
"type": "AttributeTextState"
},
"TrafficDirection": {
"type": "AttributeTrafficDirection"
},
"Uri": {
"type": "AttributeUri",
"value": "https://google.com"
},
"Velocity": {
"type": "AttributeVelocity",
"value": {
"horizontalVelocity": {
"horizontalSpeed": 1,
"bearing": 1
}
}
},
"WindDirection": {
"type": "AttributeWindDirection",
"value": "N"
},
"XYColorState": {
"type": "AttributeXYColorState",
"value": {
"name": "XYColorState",
"x": 0.1
}
}
}
]
}
curl --location -g --request PUT 'https://iot.exati.com.br/talq/devices/{{device-uuid}}?clientAddress={{gateway-uuid}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"address": "{{device-uuid}}",
"name": "{{$commerce.productAdjective}} {{$commerce.productName}}",
"class": "cls:AllAttributes",
"functions": [
{
"id": "fBasicFunction",
"type": "BasicFunction",
"Binary": {
"type": "AttributeBinary",
"value": "ON"
},
"Boolean": {
"type": "AttributeBoolean"
},
"BooleanState": {
"type": "AttributeBooleanState",
"value": {
"name": "BooleanState",
"value": true
}
},
"CabinetActuatingType": {
"type": "AttributeCabinetActuatingType"
},
"CabinetSegmentsConfiguration": {
"type": "AttributeCabinetSegmentsConfiguration",
"value": [
{
"level": 1,
"segmentMonitors": [
{
"segmentMonitorFunctionId": "123",
"relayState": "OFF"
}
]
},
{
"level": 100,
"segmentMonitors": []
}
]
},
"CCTColorState": {
"type": "AttributeCCTColorState"
},
"Command": {
"type": "AttributeCommand",
"value": {
"state": {
"name": "LevelState",
"value": 50
}
}
},
"ContentsType": {
"type": "AttributeContentsType"
},
"DateTime": {
"type": "AttributeDateTime"
},
"FactorSense": {
"type": "AttributeFactorSense"
},
"Float": {
"type": "AttributeFloat"
},
"FloatKVPArray": {
"type": "AttributeFloatKVPArray"
},
"FloatState": {
"type": "AttributeFloatState"
},
"GasName": {
"type": "AttributeGasName"
},
"Integer": {
"type": "AttributeInteger"
},
"IntegerState": {
"type": "AttributeIntegerState"
},
"LevelAndCCTColorState": {
"type": "AttributeLevelAndCCTColorState"
},
"LevelAndRGBWAFColorState": {
"type": "AttributeLevelAndRGBWAFColorState"
},
"LevelAndXYColorState": {
"type": "AttributeLevelAndXYColorState"
},
"LevelState": {
"type": "AttributeLevelState"
},
"LocalOverride": {
"type": "AttributeLocalOverride"
},
"Location": {
"type": "AttributeLocation"
},
"LuminaireConnectionType": {
"type": "AttributeLuminaireConnectionType"
},
"MountingOption": {
"type": "AttributeMountingOption"
},
"Orientation": {
"type": "AttributeOrientation"
},
"ParkingSlotDataArray": {
"type": "AttributeParkingSlotDataArray"
},
"ParkingSlotOccupancyStatus": {
"type": "AttributeParkingSlotOccupancyStatus"
},
"Percent": {
"type": "AttributePercent"
},
"PositionedTextState": {
"type": "AttributePositionedTextState"
},
"PowerSource": {
"type": "AttributePowerSource"
},
"RGBState": {
"type": "AttributeRGBState"
},
"RGBWAFColorState": {
"type": "AttributeRGBWAFColorState"
},
"RoadUser": {
"type": "AttributeRoadUser"
},
"String": {
"type": "AttributeString"
},
"StringArray": {
"type": "AttributeStringArray"
},
"SupplyType": {
"type": "AttributeSupplyType"
},
"TextState": {
"type": "AttributeTextState"
},
"TrafficDirection": {
"type": "AttributeTrafficDirection"
},
"Uri": {
"type": "AttributeUri",
"value": "https://google.com"
},
"Velocity": {
"type": "AttributeVelocity",
"value": {
"horizontalVelocity": {
"horizontalSpeed": 1,
"bearing": 1
}
}
},
"WindDirection": {
"type": "AttributeWindDirection",
"value": "N"
},
"XYColorState": {
"type": "AttributeXYColorState",
"value": {
"name": "XYColorState",
"x": 0.1
}
}
}
]
}'
[
{
"address": "string",
"name": "string",
"class": "string",
"functions": [
{
"id": "string",
"type": "BasicFunction"
}
]
}
]