A heat pump works as an air conditioner in hot weather, but can also reverse the process and heat the home in winters.
A heat pump serves as an air conditioner in high temperatures and can switch roles to generate heat in colder seasons.