Despite digging ad nauseum in both the official docs and googling, I’m at a loss. Here’s what I’m working with, and I’ll explain my issues at the bottom:
As can be seen, I’m using value_json[0] and value_json[1] to extract each orig_departure_time instance.
My question, however, is how can I extract and identify each instance of orig_delay and nest it under json_attributes? Doing something like this didn’t work:
attributes:
septa1_delay: "{{ state_attr('sensor.septa_1', 'orig_delay') }}"
septa2_delay: "{{ state_attr('sensor.septa_2', 'orig_delay') }}"
# and so on as required
although it might be easier to create many separate sensors with the delay as the state. Depends what you’re trying to do with them.