Downloading data from the uart string to the HA entity

Hi.
Using esp and esphome, I receive a string of data from the device via UART in the following format:

71,63,254,1,1,1,233,253

I would like to retrieve the first two items of this string and add them as entities to HA.
Will you help me?