I added a "Next Bus Due In" attribute that will provide the min until the next bus assuming the a next bus is known. If not it will default to "-".
Often by Sensor state goes into the negative and the bus has already past my stop. With this attribute I can expose the minutes until the next bus arrives, just like the main state of the sensor.
I also setup the TIME_STR_FORMAT variable to be used when specifying the time format of the arrival times. I was after 24 hour time format. This can be removed from the PR if desired. Really only after the Next Bus Due In attribute.
Hello,
I added a "Next Bus Due In" attribute that will provide the min until the next bus assuming the a next bus is known. If not it will default to "-".
Often by Sensor state goes into the negative and the bus has already past my stop. With this attribute I can expose the minutes until the next bus arrives, just like the main state of the sensor.
I also setup the TIME_STR_FORMAT variable to be used when specifying the time format of the arrival times. I was after 24 hour time format. This can be removed from the PR if desired. Really only after the Next Bus Due In attribute.
Thanks, Kyle