action smart_me_custom_device_post { label: "Creates or updates a Custom Device or updates it's values." description: "Creates or updates a Custom Device or updates it's values. \n A Custom Device can be any device that like to add some measurement values to the smart-me Cloud. \n Only use a custom device for all non meters. \n For a new device leave the ID empty. To create a device you have to set the DeviceEnergyType. \n To update values, add the ID of the device and the values you like to set. (See the Data Type Model for more Information)" provider: smart_me method: POST path: "/api/CustomDevice" encoding: form input: { type: "object" description: "Container Class for the Web API" properties: { Id: { type: "string" description: "The ID of the device" } Name: { type: "string" description: "The Name of the Device" } Serial: { type: "integer" format: "int64" description: "The Serial number" } ValueDate: { type: "string" format: "date-time" description: "The Date of the Value (in UTC). If this is null the Server Time is used." } Values: { type: "array" description: "The Values of the custom Device" items: { type: "object" description: "Container Class for the Custom Device Values" properties: { Name: { type: "string" description: "The Name of the Value." } Value: { type: "number" format: "double" description: "The Value" } } } } } } output: { type: "object" description: "Container Class for the Web API" properties: { Id: { type: "string" description: "The ID of the device" } Name: { type: "string" description: "The Name of the Device" } Serial: { type: "integer" format: "int64" description: "The Serial number" } ValueDate: { type: "string" format: "date-time" description: "The Date of the Value (in UTC). If this is null the Server Time is used." } Values: { type: "array" description: "The Values of the custom Device" items: { type: "object" description: "Container Class for the Custom Device Values" properties: { Name: { type: "string" description: "The Name of the Value." } Value: { type: "number" format: "double" description: "The Value" } } } } } } }