Tcp sensor extracting attributes

Hi, I need to use the values of the ph level of a pool that the tcp component returns to me. The problem is that it does not return it to me as an attribute but as a state. For which I can not extract the value with a template. I would appreciate help.
This is my config :

  - platform: tcp
    name: swimpool
    host: 192.168.1.2
    port: 256
    timeout: 10
    payload: "0123 \nmeas#getall#\n"
    value_template: "{{ value.split(';')[0] }}"
    unit_of_measurement: pH 

What i get is  a state :
OK {"Sensors":"pH":752, "ORP":653