# free-sleep

> Open-source, self-hosted server that runs on jailbroken Eight Sleep pods for local web control of temperature, schedules, alarms and sleep biometrics.

- **Category:** Smart Home
- **Licence:** Other
- **Open source:** oss
- **Languages:** Typescript, Python
- **Platforms:** Linux
- **Tags:** REST API, Offline, Home Automation, Local Control, Self Hosting, Biometrics, Eight Sleep, Jailbreak, Sleep Pod, Smart Bed, Temperature Control, Heart Rate

## Description

Free Sleep takes an Eight Sleep Pod off the cloud by installing its own software directly on the small Linux computer inside the pod. After opening the device and gaining root over a JTAG serial connection, a one-line bash script deploys a Node.js and Express service that starts automatically on boot and serves a React web interface plus a REST API at the pod's LAN address on port 3000. From any device on the same network you can adjust each side's temperature in real time, set power on/off times, queue temperature changes and a daily prime time, configure alarms, and change timezone, away mode and the pod LED brightness. An optional biometrics mode records heart rate, breathing rate and HRV into a SQLite database with charts in the app; the project notes only heart rate has been validated. Internet access can be blocked afterwards because nothing depends on it, and a firmware reset returns the pod to the official app. Only Pod 3, 4 and 5 are compatible, and installation involves hardware teardown.

## Links

- [Homepage](https://github.com/throwaway31265/free-sleep)
- [Website](https://free-sleep.vercel.app)
- [Discord server](https://discord.gg/JpArXnBgEj)

---
Source: https://selfhost.directory/project/free-sleep