Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

My small smart home projects using raspberry Pi and various sensors

License

Notifications You must be signed in to change notification settings

starryalley/not_so_smart_home

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My own little not so smart home automation project

Purpose

I just installed the following gadgets on my raspi over the weekend:

  • SSD1306 display
  • TSL2561 light sensor
  • DHT22 temperature and humidity sensor
  • a RGB LED (common anode type)

Also I have a Xiaomi Smart Home gateway with the following connected sensors

  • 2 door sensors (front and back)
  • 1 human body sensor placed in the kitchen
  • 1 smart plug to control a floor lamp in the living room

I just want to have something else in addition to what Xiaomi's app can do.

Current automation

Temperature to RGB Light

Based on current temperature in the room, the color of the RGB LED will change accordingly, where blue means cold, and red means warm.

Turn on floor lamp automatically

If it's already sunset and no one is home (dark in the living room), the floor lamp will turn on automatically until midnight.

When living room is bright (someone is there) the floor lamp will turn off as well.

Door monitor

If the door is kept open for too long, send a warning notification to my phone through IFTTT webhook.

Usually this is feasible through Xiaomi's app but that app is a crap. I never got notification while my wife gets it most of the time. So I think I'd better write my own.

This is to prevent myself from leaving the garage door open for the whole day.

Save sensors data to Google spreadsheet

The script will also upload temperature/humidity/luminosity data into a private google sheet for record.

TODO

I still can't figure out if there is anything else I can do with the sensors I got. Guess it's all for now.

About

My small smart home projects using raspberry Pi and various sensors

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published