Configuration¶
UART bus¶
The VE.Direct port sends at 19200 baud. The component checks this and requires an rx_pin.
uart:
id: uart_0
tx_pin: D8 # Not used / Not connected! The communication is read-only
rx_pin: D7
baud_rate: 19200
rx_buffer_size: 256
Hub (victron:)¶
| Option | Type | Default | Description |
|---|---|---|---|
id |
ID | generated | ID of the hub, referenced by victron_id in the entities. |
uart_id |
ID | the only UART | UART bus the device is connected to. Optional with a single UART. |
throttle |
time | 1s |
Publish each block type at most once per interval, see Throttle. |
validate_checksum |
boolean | true |
Drop blocks with a checksum mismatch, see Checksum validation. |
Requires ESPHome 2024.6.0 or higher; older versions are rejected during validation.
Entities¶
Entities are grouped by platform. victron_id is optional if there is only one hub.
sensor:
- platform: victron
victron_id: victron0
battery_voltage:
name: "Battery voltage"
binary_sensor:
- platform: victron
victron_id: victron0
load_state:
name: "Load state"
text_sensor:
- platform: victron
victron_id: victron0
charging_mode:
name: "Charging mode"
The complete list is on the Entities page.
Throttle¶
The victron device sends its data once per second. Devices with many fields (e.g. BMV-70x/712, SmartShunt) split it into several blocks, each with its own checksum. To reduce the update interval of the ESPHome entities please use the throttle parameter to discard whole blocks:
- Each block type (identified by its first field) is published at most once per interval, so all values of the device are updated once per interval.
- The first block of each type after boot is published immediately.
- The interval is rounded to the nearest second (halves are rounded up).
throttle: 2sandthrottle: 1500mspublish every second block of a type,throttle: 1s(default) every block. - Blocks dropped because of a checksum error do not count, the next valid block of that type is published.
Tip
To throttle single entities, use the sensor filters of ESPHome instead (e.g. throttle or throttle_average).
Checksum validation¶
Every block sent by the victron device ends with a checksum. By default (validate_checksum: true) a block with a checksum mismatch is dropped and none of its values are published. Set validate_checksum: false to publish the values as they arrive, even from a corrupted block; a warning is logged for every block with a checksum error.
Multiple devices¶
The hub supports multiple instances. Give each one its own UART bus and ID, and reference it with victron_id. See the multiple devices example.