make-all / metlink-nz

Metlink Wellington Public Transport integration for Home Assistant
Apache License 2.0
10 stars 4 forks source link

Add service alerts #11

Closed meringu closed 6 months ago

meringu commented 6 months ago

Adds new service alert attributes to the sensor. For each trip:

Alerts details are zero indexed, as there isn't a concept of a default alert like how the next service is the default trip.

I've only run this on my particular train route for a couple of alerts this morning. I don't have any alerts at the moment. Metlink should have some alerts affecting me tomorrow, so I can report back the results once that has happened.

meringu commented 6 months ago

This seemed to work pretty well for me this morning. I forgot to wire in the severity_level, so that has been done now.