disclaimer : just diving into HA and python, so I’m still a noob, but as far as I understand, the rest sensor doesn’t submit any attributes with the rest of the json data which could be used to create other template sensor from the same result (feature request needed).
Did you check this : [SOLVED] Parsing a json value from an existing entity in a template sensor where someone made a custom component to retrieve the data?