powermon.protocols.ved module

protocols / ved.py

class powermon.protocols.ved.VictronEnergyDirect

Bases: AbstractProtocol

VictronEnergyDirect - VEDirect protocol handler

check_crc(response: str, command_definition: CommandDefinition = None) bool

crc check, needs override in protocol

check_valid(response: str, command_definition: CommandDefinition = None) bool

check response is valid

get_full_command(command) bytes

Override the default get_full_command as its different for VEDirect

trim_response(response: str, command_definition: CommandDefinition = None) str

Remove extra characters from response