isolation_monitor_API¶
EVerest API definition for isolation monitors
API for EVerest API clients implementing isolation monitoring. Commands without arguments carry an empty JSON object ({}) as payload.
Specification: isolation_monitor_API.yaml · pionix:de:everest:isolation_monitor_API
Servers¶
default mqtt
default local MQTT
- Host
localhost:1883- Topic prefix
everest_api/1/isolation_monitor/{module_id}{module_id}The ID of the module as defined in the EVerest config file.
Operations¶
Client to EVerest¶
send_isolation_measurement¶
- Topic
everest_api/1/isolation_monitor/{module_id}/m2e/isolation_measurement
Direction: Module to EVerest
This operation is used to send a dataset of measured values. The isolation resistance (in Ohm) is required. The voltage is optional.
Message Send isolation monitor measurement application/json
Message send_isolation_measurement
Isolation monitoring measurement results
Payload
Example
{
"resistance_F_Ohm": 0,
"voltage_V": 0
}
send_self_test_result¶
- Topic
everest_api/1/isolation_monitor/{module_id}/m2e/self_test_result
Direction: Module to EVerest
This operation is used to send the result of the self test.
Message Send self test result application/json
Message send_self_test_result
Self test result
Payload
Indicates the self test is done and publishes the result. Set "true" for success, "false" for failure.
Example
true
send_raise_error¶
- Topic
everest_api/1/isolation_monitor/{module_id}/m2e/raise_error
Direction: Module to EVerest
Message Send raise error application/json
Message send_raise_error
Signal to EVerest that an error happened.
Payload
object Error
Errors for Isolation Monitor Note that actual isolation faults should just be reported as resistance values, EvseManager will interpret them according to the limits given in the norm and stop charging. This is only to report device errors to indicate valid isolation resistance measurements etc are no longer possible.
Example
{
"type": "CommunicationFault",
"sub_type": "string",
"message": "string"
}
send_clear_error¶
- Topic
everest_api/1/isolation_monitor/{module_id}/m2e/clear_error
Direction: Module to EVerest
Message Send clear error application/json
Message send_clear_error
Signal to EVerest that a previously raised error is no longer active.
Payload
object Error
Errors for Isolation Monitor Note that actual isolation faults should just be reported as resistance values, EvseManager will interpret them according to the limits given in the norm and stop charging. This is only to report device errors to indicate valid isolation resistance measurements etc are no longer possible.
Example
{
"type": "CommunicationFault",
"sub_type": "string",
"message": "string"
}
send_communication_check¶
- Topic
everest_api/1/isolation_monitor/{module_id}/m2e/communication_check
Message Send communication check application/json
Message send_communication_check
Signal to EVerest that communication is good or check shall be stopped
Payload
Send true at least every cfg_communication_check_to_s seconds to signal that the client is alive, otherwise EVerest raises a CommunicationFault, which the next message clears. Send false to stop the check until the module restarts.
Example
true
EVerest to client¶
receive_start¶
- Topic
everest_api/1/isolation_monitor/{module_id}/e2m/start
Direction: EVerest to Module
By receiving the start command the monitoring of the isolation status should be started. Measurement data should be sent in user dependent interval until the stop command is received.
Message Receive start command application/json
Message receive_start
Start recurring isolation measurements. The device should monitor the isolation status until stopped and publish the resistance data in regular intervals. The actual interval is device dependent.
Payload
No payload.
Example
receive_stop¶
- Topic
everest_api/1/isolation_monitor/{module_id}/e2m/stop
Direction: EVerest to Module
By receiving the stop command the monitoring of the isolation status should be stopped. Measurement data must not be sent until the next start command is received.
Message Receive stop command application/json
Message receive_stop
Stop recurring measurements. The device should stop to monitor the isolation resistance and stop publishing the data.
Payload
No payload.
Example
receive_start_self_test¶
- Topic
everest_api/1/isolation_monitor/{module_id}/e2m/start_self_test
Direction: EVerest to Module
The EvseManager will enable a DC voltage to support the testing, but will not enable output relays such that there is no high voltage on the external plug. The “self_test_result” variable must be published once the self testing is done.
Message Receive start self test command application/json
Message receive_start_self_test
Start self test. EvseManager will enable a DC voltage to support the testing, but will not enable output relais such that there is no high voltage on the external plug.
Payload
Voltage for the isolation monitor self test
Example
0
receive_heartbeat¶
- Topic
everest_api/1/isolation_monitor/{module_id}/e2m/heartbeat
Message Receive heartbeat application/json
Message receive_heartbeat
Heartbeat produced by EVerest as configured via cfg_heartbeat_interval_ms in the EVerest configuration
Payload
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached
Example
42
Messages¶
Schemas¶
IsolationMeasurement object¶
Results of an isolation measurement
Additional properties allowed.
-
resistance_F_Ohmnumber required
Isolation resistance between DC+/DC- and protective earth in Ohm
-
voltage_Vnumber
DC voltage between positive and negative terminal in Volt
-
voltage_to_earth_l1e_Vnumber
DC voltage to earth on L1 in Volt
-
voltage_to_earth_l2e_Vnumber
DC voltage to earth on L2 in Volt
SelfTestResult boolean¶
Indicates the self test is done and publishes the result. Set "true" for success, "false" for failure.
SelfTestVoltage number¶
Voltage for the isolation monitor self test
ErrorEnum string¶
Type of error
- DeviceFault: The IMD device is not fully functional anymore and cannot be used to monitor the isolation resistance.
- CommunicationFault: The communication to the hardware or underlying driver is lost or has errors.
- VendorError: Vendor specific error code. Will stop charging session.
- VendorWarning: Vendor specific error code. Charging may continue.
DeviceFaultCommunicationFaultVendorErrorVendorWarningError object¶
Errors for Isolation Monitor Note that actual isolation faults should just be reported as resistance values, EvseManager will interpret them according to the limits given in the norm and stop charging. This is only to report device errors to indicate valid isolation resistance measurements etc are no longer possible.
Additional properties allowed.
-
Type of error
- DeviceFault: The IMD device is not fully functional anymore and cannot be used to monitor the isolation resistance.
- CommunicationFault: The communication to the hardware or underlying driver is lost or has errors.
- VendorError: Vendor specific error code. Will stop charging session.
- VendorWarning: Vendor specific error code. Charging may continue.
enumDeviceFaultCommunicationFaultVendorErrorVendorWarning -
sub_typestring
The subtype of the error
-
messagestring
Optional free-text detail about this specific occurrence of the error, e.g. a measured value or a diagnostic string from the hardware. Unlike the fixed per-error-type description, this is chosen by the caller. If an OCPP module is part of the EVerest configuration, the message is forwarded to the CSMS:
- OCPP 1.6 (
StatusNotification.req): - MREC errors: sent as
info, truncated to 50 characters. Omitted entirely when the message is empty. - all other errors: sent as
vendorId, truncated to 255 characters. - OCPP 2.x (
NotifyEvent.req): sent astechInfo, truncated to 500 characters. When the message is empty, the error description is sent instead.
- OCPP 1.6 (
-
trigger_valueobject
Optional value that caused this specific occurrence of the error, e.g. the measurement that crossed a limit.
-
text_reprstring
Text representation of the value as the raising entity would print it, including a unit where one applies, e.g.
85.3 degC. EVerest passes it on as is and does not parse it. Longer values are truncated to 2500 characters.max length 2500
-
CommunicationCheck boolean¶
Send true at least every cfg_communication_check_to_s seconds to signal that the client is alive, otherwise EVerest raises a CommunicationFault, which the next message clears. Send false to stop the check until the module restarts.
HeartBeatId integer¶
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached