Thanks @robmarkcole I see what you mean now I have read a bit more, so I should be OK without the window checking - although that would be nice to add at some point so its not pointlessly spamming the TransportAPI severs! I really couldn’t follow what needs doing, but its something I will look into again when I have more time - I really do want to learn abit more about all this, so will be a good project
Had to make a couple of tweaks to add EARLY as a state as well (yes, believe it or not, my test train was actually reporting early!), and am thinking how I can added a couple of other features (both morning and evening commute, and also if it can flip over to the next available service after the TOI time has passed, if it was cancelled).
HI @andrewdolphin the SCAN_INTERVAL is calculated from the total number of sensors including bus and train, see the component file. SCAN_INTERVAL (seconds) = 87*number_sensors
You can use the transport API developer tools to check your usage.
You are also correct that destination is a filter is applied to the return of the API, again see the component file.
HI @davefi glad to hear you are finding this complement useful. Python scripts are a nice way to dip your toe into developing HA components. Developing for HA is enjoyable and satisfying so I recommend it. I am not a professional developer and am self-taught so is is possible with persistence.
With regard to adding functionality, there is a balance between adding new features and adding more ways for people to accidentally break the component
I guess it all depends on use case. Where i live every bus that goes through my nearest bus stop goes into the town centre and then to various destinations the other side of town so I’m interested in all buses.
Edit: also the destination is still available in the attributes I thInk.
I’m trying to make this look neater but I am at a loss at how I could do it. As you can see when multiple buses go from the same stop, it orders them on bus number and not time. Any idea how I can get it to be ordered on time of the next bus please?
this works perfectly for me now but I wanted to make it show in the tablet you are using via a custom card.
I copied your example for trains and couldn’t get it to work… am I missing a huge piece of the puzzle please?
This add on looks very useful. Would there be a way to just look for a specific train. E.g I get the 8.15 everyday and only really want to know whether that one.is running on time.
Thanks