Energy Manager Configuration
The energy_manager module manages the state and configuration of the WARP Energy Manager Bricklet.
Not supported on this hardware!
Not supported on this hardware!
Not supported on this hardware!
Not supported on this hardware!
energy_manager/config
Energy Manager configuration
# $HOST e.g. wem-AbCd
Read
curl http://$HOST/energy_manager/config
{ "contactor_installed": true }
Write
curl http://$HOST/energy_manager/config -d '{ "contactor_installed": true }'
or abbreviated:
curl http://$HOST/energy_manager/config -d 'true'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. wem/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/energy_manager/config
{ "contactor_installed": true }
Write
With MQTT on $PREFIX/energy_manager/config_update
mosquitto_pub -h $BROKER -t $PREFIX/energy_manager/config_update -m '{ "contactor_installed": true }'
or abbreviated:
mosquitto_pub -h $BROKER -t $PREFIX/energy_manager/config_update -m 'true'
| Name | Description |
|---|---|
contactor_installedbool | Indicates whether a contactor is connected that can switch the controlled chargers between three-phase and single-phase operation. Input 4 is then automatically used for contactor monitoring. |
energy_manager/state
Energy Manager state
{
"phases_switched": 1,
"input3_state": false,
"input4_state": false,
"relay_state": false,
"error_flags": 0,
"config_error_flags": 0
}
| Name | Description |
|---|---|
phases_switchedint | Phase switching state
|
input3_statebool | State of input 3
|
input4_statebool | State of input 4
|
relay_statebool | State of the relay
|
error_flagsint | Active error states of the Energy Manager. This is a bitmask, so any combination of error values can occur.
|
config_error_flagsint | Active configuration errors of the Energy Manager. This is a bitmask, so any combination of configuration errors can occur.
|
energy_manager/low_level_state
Low-level state of the Energy Manager
{
"consecutive_bricklet_errors": 0,
"contactor": false,
"contactor_check_state": 1,
"input_voltage": 11925,
"led_rgb": [0, 0, 0],
"uptime": 940868435
}
| Name | Description |
|---|---|
consecutive_bricklet_errorsint | Number of consecutive internal communication errors |
contactorbool | Contactor state set by the Energy Manager
|
contactor_check_stateint | Contactor check state
|
input_voltageint (mV) | Internal supply voltage in millivolts. |
led_rgbint[3] | Status LED color
|
uptimeint (ms) | Time since starting the Energy Manager Bricklet. |
energy_manager/sdcard_state
Information about the inserted MicroSD card.
{
"sd_status": 0,
"lfs_status": 0,
"card_type": 12,
"sector_count": 15759360,
"sector_size": 512,
"manufacturer_id": 116,
"product_rev": 32,
"product_name": "USDU1"
}
| Name | Description |
|---|---|
sd_statusint | SD card status
|
lfs_statusint | Status of the file system (LittleFS) on the SD card
|
card_typeint | SD card type
|
sector_countint | SD card size in sectors |
sector_sizeint | Size of a sector |
manufacturer_idint | Manufacturer ID |
product_revint | Product revision |
product_namestring | Product name |
energy_manager/sdcard_format
Formats the inserted SD card and thus deletes the energy balance history. Cannot be undone! A restart is automatically performed afterwards.
| Name | Description |
|---|---|
do_i_know_what_i_am_doingbool | Indicates whether the SD card should be formatted
|
energy_manager/config
Energy Manager configuration
# $HOST e.g. wem2-AbCd
Read
curl http://$HOST/energy_manager/config
{ "contactor_installed": true }
Write
curl http://$HOST/energy_manager/config -d '{ "contactor_installed": true }'
or abbreviated:
curl http://$HOST/energy_manager/config -d 'true'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. wem2/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/energy_manager/config
{ "contactor_installed": true }
Write
With MQTT on $PREFIX/energy_manager/config_update
mosquitto_pub -h $BROKER -t $PREFIX/energy_manager/config_update -m '{ "contactor_installed": true }'
or abbreviated:
mosquitto_pub -h $BROKER -t $PREFIX/energy_manager/config_update -m 'true'
| Name | Description |
|---|---|
contactor_installedbool | Indicates whether a contactor is connected that can switch the controlled chargers between three-phase and single-phase operation. Input 4 is then automatically used for contactor monitoring. |
energy_manager/state
Energy Manager state
{
"phases_switched": 1,
"input3_state": false,
"input4_state": false,
"relay_state": false,
"error_flags": 0,
"config_error_flags": 0
}
| Name | Description |
|---|---|
phases_switchedint | Phase switching state
|
input3_statebool | State of input 3
|
input4_statebool | State of input 4
|
relay_statebool | State of the relay
|
error_flagsint | Active error states of the Energy Manager. This is a bitmask, so any combination of error values can occur.
|
config_error_flagsint | Active configuration errors of the Energy Manager. This is a bitmask, so any combination of configuration errors can occur.
|
energy_manager/low_level_state
Low-level state of the Energy Manager
{
"consecutive_bricklet_errors": 0,
"contactor": false,
"contactor_check_state": 1,
"input_voltage": 11925,
"led_rgb": [0, 0, 0],
"uptime": 940868435
}
| Name | Description |
|---|---|
consecutive_bricklet_errorsint | Number of consecutive internal communication errors |
contactorbool | Contactor state set by the Energy Manager
|
contactor_check_stateint | Contactor check state
|
input_voltageint (mV) | Internal supply voltage in millivolts. |
led_rgbint[3] | Status LED color
|
uptimeint (ms) | Time since starting the Energy Manager Bricklet. |
energy_manager/sdcard_state
Information about the inserted MicroSD card.
{
"sd_status": 0,
"lfs_status": 0,
"card_type": 12,
"sector_count": 15759360,
"sector_size": 512,
"manufacturer_id": 116,
"product_rev": 32,
"product_name": "USDU1"
}
| Name | Description |
|---|---|
sd_statusint | SD card status
|
lfs_statusint | Status of the file system (LittleFS) on the SD card
|
card_typeint | SD card type
|
sector_countint | SD card size in sectors |
sector_sizeint | Size of a sector |
manufacturer_idint | Manufacturer ID |
product_revint | Product revision |
product_namestring | Product name |
energy_manager/sdcard_format
Formats the inserted SD card and thus deletes the energy balance history. Cannot be undone! A restart is automatically performed afterwards.
| Name | Description |
|---|---|
do_i_know_what_i_am_doingbool | Indicates whether the SD card should be formatted
|
energy_manager/config
Energy Manager configuration
# $HOST e.g. warp-AbCd
Read
curl http://$HOST/energy_manager/config
{ "contactor_installed": true }
Write
curl http://$HOST/energy_manager/config -d '{ "contactor_installed": true }'
or abbreviated:
curl http://$HOST/energy_manager/config -d 'true'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/energy_manager/config
{ "contactor_installed": true }
Write
With MQTT on $PREFIX/energy_manager/config_update
mosquitto_pub -h $BROKER -t $PREFIX/energy_manager/config_update -m '{ "contactor_installed": true }'
or abbreviated:
mosquitto_pub -h $BROKER -t $PREFIX/energy_manager/config_update -m 'true'
| Name | Description |
|---|---|
contactor_installedbool | Indicates whether a contactor is connected that can switch the controlled chargers between three-phase and single-phase operation. Input 4 is then automatically used for contactor monitoring. |
energy_manager/state
Energy Manager state
{
"phases_switched": 1,
"input3_state": false,
"input4_state": false,
"relay_state": false,
"error_flags": 0,
"config_error_flags": 0
}
| Name | Description |
|---|---|
phases_switchedint | Phase switching state
|
input3_statebool | State of input 3
|
input4_statebool | State of input 4
|
relay_statebool | State of the relay
|
error_flagsint | Active error states of the Energy Manager. This is a bitmask, so any combination of error values can occur.
|
config_error_flagsint | Active configuration errors of the Energy Manager. This is a bitmask, so any combination of configuration errors can occur.
|
energy_manager/low_level_state
Low-level state of the Energy Manager
{
"consecutive_bricklet_errors": 0,
"contactor": false,
"contactor_check_state": 1,
"input_voltage": 11925,
"led_rgb": [0, 0, 0],
"uptime": 940868435
}
| Name | Description |
|---|---|
consecutive_bricklet_errorsint | Number of consecutive internal communication errors |
contactorbool | Contactor state set by the Energy Manager
|
contactor_check_stateint | Contactor check state
|
input_voltageint (mV) | Internal supply voltage in millivolts. |
led_rgbint[3] | Status LED color
|
uptimeint (ms) | Time since starting the Energy Manager Bricklet. |
energy_manager/sdcard_state
Information about the inserted MicroSD card.
{
"sd_status": 0,
"lfs_status": 0,
"card_type": 12,
"sector_count": 15759360,
"sector_size": 512,
"manufacturer_id": 116,
"product_rev": 32,
"product_name": "USDU1"
}
| Name | Description |
|---|---|
sd_statusint | SD card status
|
lfs_statusint | Status of the file system (LittleFS) on the SD card
|
card_typeint | SD card type
|
sector_countint | SD card size in sectors |
sector_sizeint | Size of a sector |
manufacturer_idint | Manufacturer ID |
product_revint | Product revision |
product_namestring | Product name |
energy_manager/sdcard_format
Formats the inserted SD card and thus deletes the energy balance history. Cannot be undone! A restart is automatically performed afterwards.
| Name | Description |
|---|---|
do_i_know_what_i_am_doingbool | Indicates whether the SD card should be formatted
|