Dynamic energy demand models with latent equipment