This is just off the top of my head, so by no means a comprehensive list, but the conditions that need to be satisfied goes something like this:
Vehicle speed
Driver seat belt buckled
Battery charge state
Ambient temperature
Coolant temperature
Heated windows
Climate Control conditions met, temperature, humidity, a/c compressor
Main battery temperature
Steering wheel load
Engine run time
Battery current draw status (eg heated seats, wipers)
Vacuum status
Bonnet closed, driver door closed
Incline & rolling
But as the poster in post #2 says, 9 times out of 10, it will be one of the 2 batteries (Starter or Aux) that need replacing.