Variable Help (setpoints)

Trying to create a template sensor that will give me the value of this_sp within setpoints, can anyone help … just want to put another line on an apex chart to show what it should be and use my temp to show what it is …


  - sensor:
      - name: This SP
        unit_of_measurement: "°C"
        device_class: temperature
        state_class: measurement
        state: "{{ state_attr('climate.livingroom','setpoints').this_sp_temp }}"