Set Variable Validate

Request/Response messages are used to request custom validation of a variable value.

SetVariableValidateRequest

Topic: josev/cs. Used to request custom validation of Device Model variables to be set

type

object

properties

  • id

type

string

format

uuid

  • name

const

set_variable_validate

  • type

const

request

  • data

type

object

properties

  • attribute_value

type

string

  • attribute_type

enum

MinSet, MaxSet, Actual, Target

  • component

type

object

properties

  • name

type

string

  • instance

type

string

  • evse_id

type

string

  • connector_id

type

integer

  • variable

type

object

properties

  • name

type

string

  • instance

type

string

Example:

{
    "id": "57828133-8cfe-477d-b829-0b60aff90c2a",
    "name": "set_variable_validate",
    "type": "request",
    "data": {
            "attribute_value":"0.5 USD$ / KWh",
            "attribute_type":"Actual",
            "component":{"name": "TariffCostCtrlr", "instance": "dummy-instance-name", "evse_id": "EVSEID", "connector_id": 1},
            "variable":{"name": "FallbackTariff", "instance": "dummy-instance-name"}
            }
}

SetVariableValidateResponse

Topic: cs/josev. Response to custom validation of Device Model variables to be set

type

object

properties

  • id

type

string

format

uuid

  • name

const

set_variable_validate

  • type

const

response

  • data

type

object

properties

  • result

enum

accepted, rejected


Example:

{
    "id": "57828133-8cfe-477d-b829-0b60aff90c2a",
    "name": "set_variable_validate",
    "type": "response",
    "data": {
        "result": "rejected", #or accepted
    }
}