Lattice Boltzmann method with self-consistent thermo-hydrodynamic equilibria