Numeric State as condition in "conditional cards"

It would be nice to set a numeric state for conditional cards.
Examples:

  1. A gauge that appears when the battery on my EV goes below a certain amount, so that I can analyse whether I need to refuel before departure.
  2. A gauge to tell me how many minutes till the bus arrives. This bus only leaves at night. Therefore I only want the gauge to show up when it’s less than sixty minutes to departure.