Charge Manager
The charge_manager module implements a charge manager that can distribute an available amount of current across one or more WARP Chargers (of any generation). The charge manager ensures that the configured group of WARP Chargers never draws more than the available current and attempts to distribute it as fairly as possible. A WARP Energy Manager also uses the charge manager to safely implement phase switching of a group of WARP Chargers via an external contactor.
charge_manager/available_current
The currently available current. This current is distributed among the configured chargers.
# $HOST e.g. warp-AbCd
Read
curl http://$HOST/charge_manager/available_current
{ "current": 16000 }
Write
curl http://$HOST/charge_manager/available_current -d '{ "current": 16000 }'
or abbreviated:
curl http://$HOST/charge_manager/available_current -d '16000'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/charge_manager/available_current
{ "current": 16000 }
Write
With MQTT on $PREFIX/charge_manager/available_current_update
mosquitto_pub -h $BROKER -t $PREFIX/charge_manager/available_current_update -m '{ "current": 16000 }'
or abbreviated:
mosquitto_pub -h $BROKER -t $PREFIX/charge_manager/available_current_update -m '16000'
| Name | Description |
|---|---|
currentint (mA) | The available current. Only currents that are less than the configured maximum current maximum_available_current from |
charge_manager/state
The state of the charge manager and all configured chargers. Used by the web interface for display. Changes to this object are not considered an API breaking change!
charge_manager/low_level_state
The low-level state of the charge manager and all configured chargers. Used by the web interface for display. Changes to this object are not considered an API breaking change!
charge_manager/low_level_config
The low-level configuration of the charge manager. Used for fine-tuning the distribution algorithm. Changes to this object are not considered an API breaking change!
charge_manager/config
The charge manager configuration.
# $HOST e.g. warp-AbCd
Read
curl http://$HOST/charge_manager/config
{
"enable_charge_manager": true,
"enable_watchdog": false,
"default_available_current": 16000,
"maximum_available_current": 32000,
"minimum_current_auto": true,
"minimum_current": 9200,
"minimum_current_1p": 6000,
"minimum_current_vehicle_type": 1,
"verbose": true,
"requested_current_threshold": 60,
"requested_current_margin": 3000,
"chargers": [
{ "host": "127.0.0.1", "name": "warp-AbCd" },
{ "host": "warp2-22oH.local", "name": "warp2-22oH" }
]
}
Write
curl http://$HOST/charge_manager/config -d '{
"enable_charge_manager": true,
"enable_watchdog": false,
"default_available_current": 16000,
"maximum_available_current": 32000,
"minimum_current_auto": true,
"minimum_current": 9200,
"minimum_current_1p": 6000,
"minimum_current_vehicle_type": 1,
"verbose": true,
"requested_current_threshold": 60,
"requested_current_margin": 3000,
"chargers": [
{ "host": "127.0.0.1", "name": "warp-AbCd" },
{ "host": "warp2-22oH.local", "name": "warp2-22oH" }
]
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/charge_manager/config
{
"enable_charge_manager": true,
"enable_watchdog": false,
"default_available_current": 16000,
"maximum_available_current": 32000,
"minimum_current_auto": true,
"minimum_current": 9200,
"minimum_current_1p": 6000,
"minimum_current_vehicle_type": 1,
"verbose": true,
"requested_current_threshold": 60,
"requested_current_margin": 3000,
"chargers": [
{ "host": "127.0.0.1", "name": "warp-AbCd" },
{ "host": "warp2-22oH.local", "name": "warp2-22oH" }
]
}
Write
With MQTT on $PREFIX/charge_manager/config_update
mosquitto_pub -h $BROKER -t $PREFIX/charge_manager/config_update -m '{
"enable_charge_manager": true,
"enable_watchdog": false,
"default_available_current": 16000,
"maximum_available_current": 32000,
"minimum_current_auto": true,
"minimum_current": 9200,
"minimum_current_1p": 6000,
"minimum_current_vehicle_type": 1,
"verbose": true,
"requested_current_threshold": 60,
"requested_current_margin": 3000,
"chargers": [
{ "host": "127.0.0.1", "name": "warp-AbCd" },
{ "host": "warp2-22oH.local", "name": "warp2-22oH" }
]
}'
| Name | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
enable_charge_managerbool | Specifies whether the charge manager should be enabled.
| ||||||||
enable_watchdogbool | Specifies whether the watchdog should be enabled. The watchdog sets the available current to the default setting (default_available_current) if no message is received on
| ||||||||
verbosebool | Specifies whether each current distribution should be recorded in the event log.
| ||||||||
default_available_currentint (mA) | Current that should be available after restart of the charge manager. When triggered, the watchdog resets the available current to this current. | ||||||||
maximum_available_currentint (mA) | Maximum that may be set as available current via the API and web interface. Should be configured to the maximum permitted current of the charger group connection, which is limited e.g. by the grid connection, fusing or supply line. | ||||||||
minimum_current_autobool | Specifies whether the minimum charge current is set based on the selected vehicle type (minimum_current_vehicle_type).
| ||||||||
minimum_current_vehicle_typeint | Vehicle type for which the minimum charge current is selected.
| ||||||||
minimum_currentint (mA) | Smallest amount of current to be allocated to a charger in three-phase operation for it to start a charging session. This can influence how many chargers charge simultaneously. | ||||||||
minimum_current_1pint (mA) | Smallest amount of current to be allocated to a charger in single-phase operation for it to start a charging session. This can influence how many chargers charge simultaneously. | ||||||||
requested_current_thresholdint (s) | Chargers with an electricity meter that measures phase currents are limited to the largest phase current plus the configured margin requested_current_threshold seconds after charge start. This allows the available current to be distributed more efficiently across multiple chargers. | ||||||||
requested_current_marginint (mA) | Margin added to the largest measured phase current. | ||||||||
chargersobject[10] | Chargers to be controlled by the charge manager.
|
charge_manager/available_current
The currently available current. This current is distributed among the configured chargers.
# $HOST e.g. warp2-AbCd
Read
curl http://$HOST/charge_manager/available_current
{ "current": 16000 }
Write
curl http://$HOST/charge_manager/available_current -d '{ "current": 16000 }'
or abbreviated:
curl http://$HOST/charge_manager/available_current -d '16000'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp2/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/charge_manager/available_current
{ "current": 16000 }
Write
With MQTT on $PREFIX/charge_manager/available_current_update
mosquitto_pub -h $BROKER -t $PREFIX/charge_manager/available_current_update -m '{ "current": 16000 }'
or abbreviated:
mosquitto_pub -h $BROKER -t $PREFIX/charge_manager/available_current_update -m '16000'
| Name | Description |
|---|---|
currentint (mA) | The available current. Only currents that are less than the configured maximum current maximum_available_current from |
charge_manager/state
The state of the charge manager and all configured chargers. Used by the web interface for display. Changes to this object are not considered an API breaking change!
charge_manager/low_level_state
The low-level state of the charge manager and all configured chargers. Used by the web interface for display. Changes to this object are not considered an API breaking change!
charge_manager/low_level_config
The low-level configuration of the charge manager. Used for fine-tuning the distribution algorithm. Changes to this object are not considered an API breaking change!
charge_manager/config
The charge manager configuration.
# $HOST e.g. warp2-AbCd
Read
curl http://$HOST/charge_manager/config
{
"enable_charge_manager": true,
"enable_watchdog": false,
"default_available_current": 16000,
"maximum_available_current": 32000,
"minimum_current_auto": true,
"minimum_current": 9200,
"minimum_current_1p": 6000,
"minimum_current_vehicle_type": 1,
"verbose": true,
"requested_current_threshold": 60,
"requested_current_margin": 3000,
"chargers": [
{ "host": "127.0.0.1", "name": "warp2-AbCd" },
{ "host": "warp2-22oH.local", "name": "warp2-22oH" }
]
}
Write
curl http://$HOST/charge_manager/config -d '{
"enable_charge_manager": true,
"enable_watchdog": false,
"default_available_current": 16000,
"maximum_available_current": 32000,
"minimum_current_auto": true,
"minimum_current": 9200,
"minimum_current_1p": 6000,
"minimum_current_vehicle_type": 1,
"verbose": true,
"requested_current_threshold": 60,
"requested_current_margin": 3000,
"chargers": [
{ "host": "127.0.0.1", "name": "warp2-AbCd" },
{ "host": "warp2-22oH.local", "name": "warp2-22oH" }
]
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp2/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/charge_manager/config
{
"enable_charge_manager": true,
"enable_watchdog": false,
"default_available_current": 16000,
"maximum_available_current": 32000,
"minimum_current_auto": true,
"minimum_current": 9200,
"minimum_current_1p": 6000,
"minimum_current_vehicle_type": 1,
"verbose": true,
"requested_current_threshold": 60,
"requested_current_margin": 3000,
"chargers": [
{ "host": "127.0.0.1", "name": "warp2-AbCd" },
{ "host": "warp2-22oH.local", "name": "warp2-22oH" }
]
}
Write
With MQTT on $PREFIX/charge_manager/config_update
mosquitto_pub -h $BROKER -t $PREFIX/charge_manager/config_update -m '{
"enable_charge_manager": true,
"enable_watchdog": false,
"default_available_current": 16000,
"maximum_available_current": 32000,
"minimum_current_auto": true,
"minimum_current": 9200,
"minimum_current_1p": 6000,
"minimum_current_vehicle_type": 1,
"verbose": true,
"requested_current_threshold": 60,
"requested_current_margin": 3000,
"chargers": [
{ "host": "127.0.0.1", "name": "warp2-AbCd" },
{ "host": "warp2-22oH.local", "name": "warp2-22oH" }
]
}'
| Name | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
enable_charge_managerbool | Specifies whether the charge manager should be enabled.
| ||||||||
enable_watchdogbool | Specifies whether the watchdog should be enabled. The watchdog sets the available current to the default setting (default_available_current) if no message is received on
| ||||||||
verbosebool | Specifies whether each current distribution should be recorded in the event log.
| ||||||||
default_available_currentint (mA) | Current that should be available after restart of the charge manager. When triggered, the watchdog resets the available current to this current. | ||||||||
maximum_available_currentint (mA) | Maximum that may be set as available current via the API and web interface. Should be configured to the maximum permitted current of the charger group connection, which is limited e.g. by the grid connection, fusing or supply line. | ||||||||
minimum_current_autobool | Specifies whether the minimum charge current is set based on the selected vehicle type (minimum_current_vehicle_type).
| ||||||||
minimum_current_vehicle_typeint | Vehicle type for which the minimum charge current is selected.
| ||||||||
minimum_currentint (mA) | Smallest amount of current to be allocated to a charger in three-phase operation for it to start a charging session. This can influence how many chargers charge simultaneously. | ||||||||
minimum_current_1pint (mA) | Smallest amount of current to be allocated to a charger in single-phase operation for it to start a charging session. This can influence how many chargers charge simultaneously. | ||||||||
requested_current_thresholdint (s) | Chargers with an electricity meter that measures phase currents are limited to the largest phase current plus the configured margin requested_current_threshold seconds after charge start. This allows the available current to be distributed more efficiently across multiple chargers. | ||||||||
requested_current_marginint (mA) | Margin added to the largest measured phase current. | ||||||||
chargersobject[64] | Chargers to be controlled by the charge manager.
|
charge_manager/available_current
The currently available current. This current is distributed among the configured chargers.
# $HOST e.g. warp3-AbCd
Read
curl http://$HOST/charge_manager/available_current
{ "current": 16000 }
Write
curl http://$HOST/charge_manager/available_current -d '{ "current": 16000 }'
or abbreviated:
curl http://$HOST/charge_manager/available_current -d '16000'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp3/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/charge_manager/available_current
{ "current": 16000 }
Write
With MQTT on $PREFIX/charge_manager/available_current_update
mosquitto_pub -h $BROKER -t $PREFIX/charge_manager/available_current_update -m '{ "current": 16000 }'
or abbreviated:
mosquitto_pub -h $BROKER -t $PREFIX/charge_manager/available_current_update -m '16000'
| Name | Description |
|---|---|
currentint (mA) | The available current. Only currents that are less than the configured maximum current maximum_available_current from |
charge_manager/state
The state of the charge manager and all configured chargers. Used by the web interface for display. Changes to this object are not considered an API breaking change!
charge_manager/low_level_state
The low-level state of the charge manager and all configured chargers. Used by the web interface for display. Changes to this object are not considered an API breaking change!
charge_manager/low_level_config
The low-level configuration of the charge manager. Used for fine-tuning the distribution algorithm. Changes to this object are not considered an API breaking change!
charge_manager/config
The charge manager configuration.
# $HOST e.g. warp3-AbCd
Read
curl http://$HOST/charge_manager/config
{
"enable_charge_manager": true,
"enable_watchdog": false,
"default_available_current": 16000,
"maximum_available_current": 32000,
"minimum_current_auto": true,
"minimum_current": 9200,
"minimum_current_1p": 6000,
"minimum_current_vehicle_type": 1,
"verbose": true,
"requested_current_threshold": 60,
"requested_current_margin": 3000,
"chargers": [
{ "host": "127.0.0.1", "name": "warp3-AbCd" },
{ "host": "warp2-22oH.local", "name": "warp2-22oH" }
]
}
Write
curl http://$HOST/charge_manager/config -d '{
"enable_charge_manager": true,
"enable_watchdog": false,
"default_available_current": 16000,
"maximum_available_current": 32000,
"minimum_current_auto": true,
"minimum_current": 9200,
"minimum_current_1p": 6000,
"minimum_current_vehicle_type": 1,
"verbose": true,
"requested_current_threshold": 60,
"requested_current_margin": 3000,
"chargers": [
{ "host": "127.0.0.1", "name": "warp3-AbCd" },
{ "host": "warp2-22oH.local", "name": "warp2-22oH" }
]
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp3/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/charge_manager/config
{
"enable_charge_manager": true,
"enable_watchdog": false,
"default_available_current": 16000,
"maximum_available_current": 32000,
"minimum_current_auto": true,
"minimum_current": 9200,
"minimum_current_1p": 6000,
"minimum_current_vehicle_type": 1,
"verbose": true,
"requested_current_threshold": 60,
"requested_current_margin": 3000,
"chargers": [
{ "host": "127.0.0.1", "name": "warp3-AbCd" },
{ "host": "warp2-22oH.local", "name": "warp2-22oH" }
]
}
Write
With MQTT on $PREFIX/charge_manager/config_update
mosquitto_pub -h $BROKER -t $PREFIX/charge_manager/config_update -m '{
"enable_charge_manager": true,
"enable_watchdog": false,
"default_available_current": 16000,
"maximum_available_current": 32000,
"minimum_current_auto": true,
"minimum_current": 9200,
"minimum_current_1p": 6000,
"minimum_current_vehicle_type": 1,
"verbose": true,
"requested_current_threshold": 60,
"requested_current_margin": 3000,
"chargers": [
{ "host": "127.0.0.1", "name": "warp3-AbCd" },
{ "host": "warp2-22oH.local", "name": "warp2-22oH" }
]
}'
| Name | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
enable_charge_managerbool | Specifies whether the charge manager should be enabled.
| ||||||||
enable_watchdogbool | Specifies whether the watchdog should be enabled. The watchdog sets the available current to the default setting (default_available_current) if no message is received on
| ||||||||
verbosebool | Specifies whether each current distribution should be recorded in the event log.
| ||||||||
default_available_currentint (mA) | Current that should be available after restart of the charge manager. When triggered, the watchdog resets the available current to this current. | ||||||||
maximum_available_currentint (mA) | Maximum that may be set as available current via the API and web interface. Should be configured to the maximum permitted current of the charger group connection, which is limited e.g. by the grid connection, fusing or supply line. | ||||||||
minimum_current_autobool | Specifies whether the minimum charge current is set based on the selected vehicle type (minimum_current_vehicle_type).
| ||||||||
minimum_current_vehicle_typeint | Vehicle type for which the minimum charge current is selected.
| ||||||||
minimum_currentint (mA) | Smallest amount of current to be allocated to a charger in three-phase operation for it to start a charging session. This can influence how many chargers charge simultaneously. | ||||||||
minimum_current_1pint (mA) | Smallest amount of current to be allocated to a charger in single-phase operation for it to start a charging session. This can influence how many chargers charge simultaneously. | ||||||||
requested_current_thresholdint (s) | Chargers with an electricity meter that measures phase currents are limited to the largest phase current plus the configured margin requested_current_threshold seconds after charge start. This allows the available current to be distributed more efficiently across multiple chargers. | ||||||||
requested_current_marginint (mA) | Margin added to the largest measured phase current. | ||||||||
chargersobject[64] | Chargers to be controlled by the charge manager.
|
charge_manager/available_current
The currently available current. This current is distributed among the configured chargers.
# $HOST e.g. wem-AbCd
Read
curl http://$HOST/charge_manager/available_current
{ "current": 16000 }
Write
curl http://$HOST/charge_manager/available_current -d '{ "current": 16000 }'
or abbreviated:
curl http://$HOST/charge_manager/available_current -d '16000'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. wem/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/charge_manager/available_current
{ "current": 16000 }
Write
With MQTT on $PREFIX/charge_manager/available_current_update
mosquitto_pub -h $BROKER -t $PREFIX/charge_manager/available_current_update -m '{ "current": 16000 }'
or abbreviated:
mosquitto_pub -h $BROKER -t $PREFIX/charge_manager/available_current_update -m '16000'
| Name | Description |
|---|---|
currentint (mA) | The available current. Only currents that are less than the configured maximum current maximum_available_current from |
charge_manager/state
The state of the charge manager and all configured chargers. Used by the web interface for display. Changes to this object are not considered an API breaking change!
charge_manager/low_level_state
The low-level state of the charge manager and all configured chargers. Used by the web interface for display. Changes to this object are not considered an API breaking change!
charge_manager/low_level_config
The low-level configuration of the charge manager. Used for fine-tuning the distribution algorithm. Changes to this object are not considered an API breaking change!
charge_manager/config
The charge manager configuration.
# $HOST e.g. wem-AbCd
Read
curl http://$HOST/charge_manager/config
{
"enable_charge_manager": true,
"enable_watchdog": false,
"default_available_current": 16000,
"maximum_available_current": 32000,
"minimum_current_auto": true,
"minimum_current": 9200,
"minimum_current_1p": 6000,
"minimum_current_vehicle_type": 1,
"verbose": true,
"requested_current_threshold": 60,
"requested_current_margin": 3000,
"chargers": [
{ "host": "192.168.178.12", "name": "warp-222i" },
{ "host": "warp2-22oH.local", "name": "warp2-22oH" }
]
}
Write
curl http://$HOST/charge_manager/config -d '{
"enable_charge_manager": true,
"enable_watchdog": false,
"default_available_current": 16000,
"maximum_available_current": 32000,
"minimum_current_auto": true,
"minimum_current": 9200,
"minimum_current_1p": 6000,
"minimum_current_vehicle_type": 1,
"verbose": true,
"requested_current_threshold": 60,
"requested_current_margin": 3000,
"chargers": [
{ "host": "192.168.178.12", "name": "warp-222i" },
{ "host": "warp2-22oH.local", "name": "warp2-22oH" }
]
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. wem/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/charge_manager/config
{
"enable_charge_manager": true,
"enable_watchdog": false,
"default_available_current": 16000,
"maximum_available_current": 32000,
"minimum_current_auto": true,
"minimum_current": 9200,
"minimum_current_1p": 6000,
"minimum_current_vehicle_type": 1,
"verbose": true,
"requested_current_threshold": 60,
"requested_current_margin": 3000,
"chargers": [
{ "host": "192.168.178.12", "name": "warp-222i" },
{ "host": "warp2-22oH.local", "name": "warp2-22oH" }
]
}
Write
With MQTT on $PREFIX/charge_manager/config_update
mosquitto_pub -h $BROKER -t $PREFIX/charge_manager/config_update -m '{
"enable_charge_manager": true,
"enable_watchdog": false,
"default_available_current": 16000,
"maximum_available_current": 32000,
"minimum_current_auto": true,
"minimum_current": 9200,
"minimum_current_1p": 6000,
"minimum_current_vehicle_type": 1,
"verbose": true,
"requested_current_threshold": 60,
"requested_current_margin": 3000,
"chargers": [
{ "host": "192.168.178.12", "name": "warp-222i" },
{ "host": "warp2-22oH.local", "name": "warp2-22oH" }
]
}'
| Name | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
enable_charge_managerbool | Specifies whether the charge manager should be enabled.
| ||||||||
enable_watchdogbool | Specifies whether the watchdog should be enabled. The watchdog sets the available current to the default setting (default_available_current) if no message is received on
| ||||||||
verbosebool | Specifies whether each current distribution should be recorded in the event log.
| ||||||||
default_available_currentint (mA) | Current that should be available after restart of the charge manager. When triggered, the watchdog resets the available current to this current. | ||||||||
maximum_available_currentint (mA) | Maximum that may be set as available current via the API and web interface. Should be configured to the maximum permitted current of the charger group connection, which is limited e.g. by the grid connection, fusing or supply line. | ||||||||
minimum_current_autobool | Specifies whether the minimum charge current is set based on the selected vehicle type (minimum_current_vehicle_type).
| ||||||||
minimum_current_vehicle_typeint | Vehicle type for which the minimum charge current is selected.
| ||||||||
minimum_currentint (mA) | Smallest amount of current to be allocated to a charger in three-phase operation for it to start a charging session. This can influence how many chargers charge simultaneously. | ||||||||
minimum_current_1pint (mA) | Smallest amount of current to be allocated to a charger in single-phase operation for it to start a charging session. This can influence how many chargers charge simultaneously. | ||||||||
requested_current_thresholdint (s) | Chargers with an electricity meter that measures phase currents are limited to the largest phase current plus the configured margin requested_current_threshold seconds after charge start. This allows the available current to be distributed more efficiently across multiple chargers. | ||||||||
requested_current_marginint (mA) | Margin added to the largest measured phase current. | ||||||||
chargersobject[64] | Chargers to be controlled by the charge manager.
|
charge_manager/available_current
The currently available current. This current is distributed among the configured chargers.
# $HOST e.g. wem2-AbCd
Read
curl http://$HOST/charge_manager/available_current
{ "current": 16000 }
Write
curl http://$HOST/charge_manager/available_current -d '{ "current": 16000 }'
or abbreviated:
curl http://$HOST/charge_manager/available_current -d '16000'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. wem2/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/charge_manager/available_current
{ "current": 16000 }
Write
With MQTT on $PREFIX/charge_manager/available_current_update
mosquitto_pub -h $BROKER -t $PREFIX/charge_manager/available_current_update -m '{ "current": 16000 }'
or abbreviated:
mosquitto_pub -h $BROKER -t $PREFIX/charge_manager/available_current_update -m '16000'
| Name | Description |
|---|---|
currentint (mA) | The available current. Only currents that are less than the configured maximum current maximum_available_current from |
charge_manager/state
The state of the charge manager and all configured chargers. Used by the web interface for display. Changes to this object are not considered an API breaking change!
charge_manager/low_level_state
The low-level state of the charge manager and all configured chargers. Used by the web interface for display. Changes to this object are not considered an API breaking change!
charge_manager/low_level_config
The low-level configuration of the charge manager. Used for fine-tuning the distribution algorithm. Changes to this object are not considered an API breaking change!
charge_manager/config
The charge manager configuration.
| Name | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
enable_charge_managerbool | Specifies whether the charge manager should be enabled.
| ||||||||
enable_watchdogbool | Specifies whether the watchdog should be enabled. The watchdog sets the available current to the default setting (default_available_current) if no message is received on
| ||||||||
verbosebool | Specifies whether each current distribution should be recorded in the event log.
| ||||||||
default_available_currentint (mA) | Current that should be available after restart of the charge manager. When triggered, the watchdog resets the available current to this current. | ||||||||
maximum_available_currentint (mA) | Maximum that may be set as available current via the API and web interface. Should be configured to the maximum permitted current of the charger group connection, which is limited e.g. by the grid connection, fusing or supply line. | ||||||||
minimum_current_autobool | Specifies whether the minimum charge current is set based on the selected vehicle type (minimum_current_vehicle_type).
| ||||||||
minimum_current_vehicle_typeint | Vehicle type for which the minimum charge current is selected.
| ||||||||
minimum_currentint (mA) | Smallest amount of current to be allocated to a charger in three-phase operation for it to start a charging session. This can influence how many chargers charge simultaneously. | ||||||||
minimum_current_1pint (mA) | Smallest amount of current to be allocated to a charger in single-phase operation for it to start a charging session. This can influence how many chargers charge simultaneously. | ||||||||
requested_current_thresholdint (s) | Chargers with an electricity meter that measures phase currents are limited to the largest phase current plus the configured margin requested_current_threshold seconds after charge start. This allows the available current to be distributed more efficiently across multiple chargers. | ||||||||
requested_current_marginint (mA) | Margin added to the largest measured phase current. | ||||||||
chargersobject[64] | Chargers to be controlled by the charge manager.
|
charge_manager/available_current
The currently available current. This current is distributed among the configured chargers.
# $HOST e.g. warp-AbCd
Read
curl http://$HOST/charge_manager/available_current
{ "current": 16000 }
Write
curl http://$HOST/charge_manager/available_current -d '{ "current": 16000 }'
or abbreviated:
curl http://$HOST/charge_manager/available_current -d '16000'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/charge_manager/available_current
{ "current": 16000 }
Write
With MQTT on $PREFIX/charge_manager/available_current_update
mosquitto_pub -h $BROKER -t $PREFIX/charge_manager/available_current_update -m '{ "current": 16000 }'
or abbreviated:
mosquitto_pub -h $BROKER -t $PREFIX/charge_manager/available_current_update -m '16000'
| Name | Description |
|---|---|
currentint (mA) | The available current. Only currents that are less than the configured maximum current maximum_available_current from |
charge_manager/state
The state of the charge manager and all configured chargers. Used by the web interface for display. Changes to this object are not considered an API breaking change!
charge_manager/low_level_state
The low-level state of the charge manager and all configured chargers. Used by the web interface for display. Changes to this object are not considered an API breaking change!
charge_manager/low_level_config
The low-level configuration of the charge manager. Used for fine-tuning the distribution algorithm. Changes to this object are not considered an API breaking change!
charge_manager/config
The charge manager configuration.
# $HOST e.g. warp-AbCd
Read
curl http://$HOST/charge_manager/config
{
"enable_charge_manager": true,
"enable_watchdog": false,
"default_available_current": 16000,
"maximum_available_current": 32000,
"minimum_current_auto": true,
"minimum_current": 9200,
"minimum_current_1p": 6000,
"minimum_current_vehicle_type": 1,
"verbose": true,
"requested_current_threshold": 60,
"requested_current_margin": 3000,
"chargers": [
{ "host": "127.0.0.1", "name": "warp-AbCd" },
{ "host": "warp2-22oH.local", "name": "warp2-22oH" }
]
}
Write
curl http://$HOST/charge_manager/config -d '{
"enable_charge_manager": true,
"enable_watchdog": false,
"default_available_current": 16000,
"maximum_available_current": 32000,
"minimum_current_auto": true,
"minimum_current": 9200,
"minimum_current_1p": 6000,
"minimum_current_vehicle_type": 1,
"verbose": true,
"requested_current_threshold": 60,
"requested_current_margin": 3000,
"chargers": [
{ "host": "127.0.0.1", "name": "warp-AbCd" },
{ "host": "warp2-22oH.local", "name": "warp2-22oH" }
]
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/charge_manager/config
{
"enable_charge_manager": true,
"enable_watchdog": false,
"default_available_current": 16000,
"maximum_available_current": 32000,
"minimum_current_auto": true,
"minimum_current": 9200,
"minimum_current_1p": 6000,
"minimum_current_vehicle_type": 1,
"verbose": true,
"requested_current_threshold": 60,
"requested_current_margin": 3000,
"chargers": [
{ "host": "127.0.0.1", "name": "warp-AbCd" },
{ "host": "warp2-22oH.local", "name": "warp2-22oH" }
]
}
Write
With MQTT on $PREFIX/charge_manager/config_update
mosquitto_pub -h $BROKER -t $PREFIX/charge_manager/config_update -m '{
"enable_charge_manager": true,
"enable_watchdog": false,
"default_available_current": 16000,
"maximum_available_current": 32000,
"minimum_current_auto": true,
"minimum_current": 9200,
"minimum_current_1p": 6000,
"minimum_current_vehicle_type": 1,
"verbose": true,
"requested_current_threshold": 60,
"requested_current_margin": 3000,
"chargers": [
{ "host": "127.0.0.1", "name": "warp-AbCd" },
{ "host": "warp2-22oH.local", "name": "warp2-22oH" }
]
}'
| Name | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
enable_charge_managerbool | Specifies whether the charge manager should be enabled.
| ||||||||||||||||
enable_watchdogbool | Specifies whether the watchdog should be enabled. The watchdog sets the available current to the default setting (default_available_current) if no message is received on
| ||||||||||||||||
verbosebool | Specifies whether each current distribution should be recorded in the event log.
| ||||||||||||||||
default_available_currentint (mA) | Current that should be available after restart of the charge manager. When triggered, the watchdog resets the available current to this current. | ||||||||||||||||
maximum_available_currentint (mA) | Maximum that may be set as available current via the API and web interface. Should be configured to the maximum permitted current of the charger group connection, which is limited e.g. by the grid connection, fusing or supply line. | ||||||||||||||||
minimum_current_autobool | Specifies whether the minimum charge current is set based on the selected vehicle type (minimum_current_vehicle_type).
| ||||||||||||||||
minimum_current_vehicle_typeint | Vehicle type for which the minimum charge current is selected.
| ||||||||||||||||
minimum_currentint (mA) | Smallest amount of current to be allocated to a charger in three-phase operation for it to start a charging session. This can influence how many chargers charge simultaneously. | ||||||||||||||||
minimum_current_1pint (mA) | Smallest amount of current to be allocated to a charger in single-phase operation for it to start a charging session. This can influence how many chargers charge simultaneously. | ||||||||||||||||
requested_current_thresholdint (s) | Chargers with an electricity meter that measures phase currents are limited to the largest phase current plus the configured margin requested_current_threshold seconds after charge start. This allows the available current to be distributed more efficiently across multiple chargers. | ||||||||||||||||
requested_current_marginint (mA) | Margin added to the largest measured phase current. | ||||||||||||||||
chargersobject[..] | Chargers to be controlled by the charge manager. (Only WARP 1)
|