Using rest, i get warning: str object has no attribute 'piaware_status'. when rendering

Hopefully someone can help:

I get the following warning:

WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: ‘str object’ has no attribute ‘piaware_status’ when rendering ‘{{ value.piaware_status }}’

Each time the interval expires.

Here is the code from sensor.yaml…

- platform: rest 
  name: Piaware Status
  json_attributes:
    - modes_enabled
    - dump978_version
    - interval
    - cpu_load_percent
    - time
    - site_url
    - system_uptime
    - expiry
    - piaware
    - cpu_temp_celcius
    - uat_enabled
    - dump1090_version
    - adept
    - mlat
    - piaware_version
    - radio
  resource: http://10.1.1.40:8080/data/status.json
  method: GET
  value_template: "{{ value.piaware_status }}"
  scan_interval: 15

- platform: template
  sensors:   
    dump978_version:
      friendly_name: "PI Dump978"
      value_template: "{{ state_attr('sensor.piaware_status', 'dump978_version') }}"
      
    cpu_load_percent:
      friendly_name: "PI CPU Load"
      value_template: "{{ state_attr('sensor.piaware_status', 'cpu_load_percent') }}"
      unit_of_measurement: '%'

    time:
      friendly_name: "PI CPU Time"
      value_template: "{{ state_attr('sensor.piaware_status', 'time') }}"

    system_up: 
      friendly_name: "Pi Uptime"
      value_template: "{{ ((state_attr('sensor.piaware_status', 'system_uptime') / 604800) % 604800) | round(0) }} Wks, {{ ((state_attr('sensor.piaware_status', 'system_uptime') / 86400) % 7) | round(0) }} Days, {{ ((state_attr('sensor.piaware_status', 'system_uptime')  / 3600) % 24) | round(0) }} Hrs, {{ ((state_attr('sensor.piaware_status', 'system_uptime')  / 60) % 60) | round(0) }} Mins."

    piaware:
      friendly_name: "PI PiAware Status"
      value_template: "{{ state_attr('sensor.piaware_status', 'piaware')['message'] }}"

    cpu_temp_celcius:
      friendly_name: "PI CPU Temp"
      value_template: "{{ state_attr('sensor.piaware_status', 'cpu_temp_celcius') | round(1)}}"
      unit_of_measurement: '°C'

    dump1090_version:
      friendly_name: "PI Dump1090"
      value_template: "{{ state_attr('sensor.piaware_status', 'dump1090_version') }}"

    adept: 
      friendly_name: "PI PiAware Connection Status"
      value_template: "{{ state_attr('sensor.piaware_status', 'adept')['status'] }}"

    mlat: 
      friendly_name: "PI PiAware MLAT Status"
      value_template: "{{ state_attr('sensor.piaware_status', 'mlat')['status'] }}"