Control a fan from sleep position
An AI roommate uses a pose model on a Raspberry Pi to watch the user sleep and presses a remote button to turn the fan on or off. ·
Done with a custom-built or unnamed agent
- What they did
- The setup runs a MediaPipe pose vision model on a Raspberry Pi home server that watches the sleeping person via camera. It detects real-time sleep position and sends a signal to a remote button pusher: arms or leg out triggers fan on, arms curled triggers fan off. The person defined the position rules and installed the hardware.
- How it went
- The fan turns on or off automatically overnight without waking the user. Current version struggles with blankets at times.
- Worth knowing
- Demo uses a stock photo; blanket detection issues are being fixed.
Try it yourself with Claude Code
Help me build a project on a [Raspberry Pi model] with a camera that detects when I'm [asleep or in a certain pose] using a pose estimation model and then triggers [fan or other device] through [remote, relay, or smart plug]. Write the code, the setup steps, and a test mode that logs detections without controlling anything. Finish when I can run the test mode and see it working, and ask before enabling real device control.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
Source: X · Feb 20, 2026
Related use cases
Get a second opinion on an MRI
One person's account of using Claude Code to analyze their own MRI.
Run Codex tasks on your Home Assistant config
An integration starts Codex CLI tasks against a Home Assistant config to diagnose failing automations, check dashboards for broken cards and create scripts.
Pay bills, clear inbox, and order groceries
A Muse agent called Scout reportedly paid bills, cleared the inbox, and ordered groceries for its user.
Debloat an Android TV
Rakesh Prakash asked his Hermes agent to debloat his Android TV and it completed the task successfully.
Query two years of WHOOP and blood-lab data
The author built a Claude agent that answers questions over WHOOP biometrics and lab results extracted from emailed PDFs, and compared it with a Databricks Genie agent on 30 questions.
Handle tenant correspondence end to end
A remote landlord says Claude managed tenant correspondence end to end, handling landlord-tenant messages for a rental property.
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.