Hi! About how cold was your house last night? A hamster should always be kept at 20°C, give or take 2 or 3 degrees. If not, it is possible they can go into a type of hibernation, and it can be dangerous. Here's a good video on it:
Do Hamsters Hibernate? - YouTube