Apologies for this post, but I am very new in terms of trying to code in HA.
I have added the UK National Rail integration where a sensor had been successfully set up. In Developer Tools I can see its attributes and values. I would like to retrieve some values from there where I can add them to a dashboard via more custom sensors. Existing dashboards that I had seen are a bit bulky and I just need very simple info.
I have tried using {{state_attr(‘sensor.train_schedule_lem_bho’,‘trains’)[1].lines}} to retrieve by lines but it doesn’t seem to work from post here. Also since there are “repetitive” attributes I like to retrieve (e.g “Scheduled”), how do we identify them? is it by occurrence?
Thank you!
