Output Messages
The application produces four types of output messages: start events, stop events, cancel events and heartbeats.
Start event message
This message is generated when an EV charging session is detected and has the following format:
{
"eventType": "start",
"start": 1744791347,
"level": 11000,
"confidence": "medium"
}where
eventType [str]: The type of the event. In this case, the start value is used to indicate the start of charging.
start [int]: Start time of the charging event (UNIX timestamp in seconds).
level [int]: The EV charging power level in Watts (W).
confidence [str]: A confidence score, based on the detected power and the configured reporting interval. Higher power levels and longer intervals typically lead to higher confidence values. Expected values are “low”, “medium”, and “high”.
Stop event message
Such messages are sent when the charging session ends and have the following format:
{
"eventType": "stop",
"start": 1744791347,
"stop": 1744800815,
"level": 11000,
"energy": 28930
}where
eventType [str]: The type of the event. In this case, the stop value is used to indicate the event of stop charging.
start [int]: Start time of the charging event (UNIX timestamp in seconds). It should match the timestamp in the respective start event.
stop [int]: Stop time of the charging event (UNIX timestamp in seconds).
level [int]: The EV charging power level in Watts (W).
energy [int]: The amount of energy that was consumed in Wh.
Cancel event message
If a previously reported charging event is determined to be a false positive, the application issues a cancel message instead of a stop event, with the following structure:
where
eventType [str]: The type of the event. In this case, the cancel value is used to indicate the cancellation of the previous start event.
start [int]: Start time of the charging event (UNIX timestamp in seconds).
cancel [int]: Time of charging event cancellation (UNIX timestamp in seconds)
Heartbeat message
The heartbeat message is sent daily to confirm the application is running and functioning correctly. This message may include metadata such as version, current configuration, and operational status. The message format is the following:
where
version [str]: The current application version.
inferences [int]: The number of model inferences during the period covered by the heartbeat message (one inference per three minutes is expected, resulting in 480 in total for a daily message).
evt_count [int]: The number of charging events since the last heartbeat, in case a model has been successfully trained (0 if still in training period).
ev_detected [bool]: A boolean flag indicating if an EV has been detected in any previous training period.
ev_detected_ts [int]: The UNIX timestamp when EV existence is confirmed (i.e., a training period is successful). If an EV has not been detected, it will be 0.
train_evt_count [int]: The number of events detected during the last 7 days of the training period.
run_days [int]: The number of days that the application has been running in total.
restart_count [int]: The number of restarts of the application.
rpt_intv [int]: The reporting interval in minutes.
mean_dur [float]: The mean duration of EV charging events during the last 7 days of the training period.
energy_ratio [float]: The ratio of EV events over the total consumption during the last 7 days of the training period.
train_score [float]: The training score of EV existence based on the last 7days.
high_score_streak [int]: The number of consecutive days with a high train_score.
B2B Export Queue
All messages can be exported in real time to the B2B queue ev-edge-events-queue-v1. Each message includes an additional key-value pair, "esn": "{electronic_serial_number}", which identifies the installation.
The queue can be used by customer systems for receiving the EV charging events from the NET2GRID's EV edge detection agent.
Queue URL
Queue Configuration
Type: AWS SQS standard queue
Visibility timeout: 5 minutes
Message retention period: 5 days
Maximum message size: 256 KB
Last updated
Was this helpful?

