Invalid config for [sensor.modbus]: [value_template] is an invalid option for [sensor.modbus]. Check: sensor.modbus->registers->11->value_template. (See ?, line ?).
Probably you want a binary sensor instead then. However, if you look at the documentation you’ll see neither supports value_template, hence the error about it being invalid
name: test binary_sensor
hub: victron
slave: 238
address: 259
Invalid config for [sensor.modbus]: expected a list for dictionary value @ data[‘registers’]. Got None. (See ?, line ?).
Invalid config for [binary_sensor.modbus]: [data_type] is an invalid option for [binary_sensor.modbus]. Check: binary_sensor.modbus->inputs->1->data_type. (See ?, line ?).