During the day, hummingbirds can use a lot of energy, so they need to sleep in order to rest. They are very small creatures, so even a few hours of uninterrupted rest can refresh them and help them fly, hover and feed throughout the day.
Hummingbirds are primarily diurnal, so they are active during the day and sleep at night. When it gets dark, they look for sheltered spots where they can relax and rest. They often choose spots with big leaves that will protect them from rain and wind. They also love to sleep in the tangled branches of shrubs, where they can hide from predators that may try to eat them. They can be found in many locations, including under the eaves of houses.
When hummingbirds go to sleep, they enter a deep state known as torpor. This allows them to conserve energy because their metabolism and body temperature drop significantly. It is a survival mechanism that allows them to survive on colder nights when food and water are scarce. Hummingbirds that go into torpor usually wake up around dawn the next day to start feeding again.
While hummingbirds typically sleep alone, they sometimes roost together in groups. This offers them increased protection from predators and it can also provide some thermoregulation. However, they can be very sensitive to disturbances, so if you see them roosting together, you should leave them alone. It may take them 20 minutes or more to re-awaken from torpor, so you shouldn't be surprised if they sound like they are snoring!