Set Variable Validate¶
Request/Response messages are used to request custom validation of a variable value.
To enable variable validation, set the variable OEMCustomSetVariablesValidation of the component JosevCtrlr with a comma-separated string containing the component name and variable name separated by a colon.
For example:
Single variable:
TariffCostCtrlr:TariffFallbackMessageMultiple variables:
TariffCostCtrlr:TariffFallbackMessage, TariffCostCtrlr:TotalCostFallbackMessage
SetVariableValidateRequest¶
Topic: josev/cs. Used to request custom validation of Device Model variables to be set  | 
||||
type  | 
object  | 
|||
properties  | 
||||
  | 
type  | 
string  | 
||
format  | 
uuid  | 
|||
  | 
const  | 
set_variable_validate  | 
||
  | 
const  | 
request  | 
||
  | 
type  | 
object  | 
||
properties  | 
||||
  | 
type  | 
string  | 
||
  | 
enum  | 
MinSet, MaxSet, Actual, Target  | 
||
  | 
type  | 
object  | 
||
properties  | 
||||
  | 
type  | 
string  | 
||
  | 
type  | 
string  | 
||
  | 
type  | 
string  | 
||
  | 
type  | 
integer  | 
||
  | 
type  | 
object  | 
||
properties  | 
||||
  | 
type  | 
string  | 
||
  | 
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  | 
|||
  | 
type  | 
string  | 
|
format  | 
uuid  | 
||
  | 
const  | 
set_variable_validate  | 
|
  | 
const  | 
response  | 
|
  | 
type  | 
object  | 
|
properties  | 
|||
  | 
enum  | 
accepted, rejected  | 
|
Example:
{
    "id": "57828133-8cfe-477d-b829-0b60aff90c2a",
    "name": "set_variable_validate",
    "type": "response",
    "data": {
        "result": "rejected", #or accepted
    }
}