It’s an sad scene: your alarm clock starts blaring at 7am. You’re groggy and trying to rub the final remnants of a dream from your eyes. …


Before we all ended up with smartphones consisting of nothing more than a giant touchscreen, we had dumb phones with just a sufficient number of physical keys to make a phone call. …


IoT (Internet of Things) and home automation systems promise to simplify your daily routines by automatically performing repetitive tasks. For example, you can set your coffee maker to turn on at a specific time in the morning so your caffeinated bean juice is hot and ready when you get out of bed. The problem is that those systems mostly only operate on set schedules or in response to explicit commands. To truly automate your routines, your system needs to know what you’re actually doing. That’s why Lewis Barclay developed bed occupancy sensors for Home Assistant.

Image for post
Image for post

The purpose of these bed occupancy sensors is to register when you or your sleep partner are all tucked in for the night. You can then use that to trigger one or more actions through your Home Assistant. For example, you can have it turn off all of the lights, arm your security alarm, and turn down the air conditioner as soon as you crawl into bed. Barclay’s code is written to work with Home Assistant, but it may be possible to adapt it to other assistants like Amazon Echo or Google Home. …

About

Cameron Coward

Author, writer, maker, and a former mechanical designer. www.cameroncoward.com @cameron_coward

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store