A new smart mattress called Luna to help you sleep better, It’s embedded with sensors to detect breathing and heart rate, accelerometers to track sleep patterns and microphones to hear your snoring.

The cover then sends data to an Android or iOS app and adjusts temperatures accordingly, depending on your preference. Yep, it heats up or cools down to make you feel comfortable, and it can supposedly even maintain different temperatures on each side of the bed.

Even better, since it’s open source, you can make it work with the rest of a connected home, assuming you’ve been replacing your fixtures and furniture with their internet-connected counterparts. Luna can integrate with Nest, and you can also program it so that your smart door lock activates when you get into bed, or so that the coffee maker starts brewing as soon as you wake up. It’s not exactly available just yet, but it’s now open for preorder for $179 a piece.

Source: Engadget