browser icon
You are using an insecure version of your web browser. Please update your browser!
Using an outdated browser makes your computer unsafe. For a safer, faster, more enjoyable user experience, please update your browser today or try a newer browser.

Tagged With: Electronics

DsBox Light Switches as part of my Home Automation

Summary

After 40+ weekends my DIY smart light switches are working as part of my home automation. There is more to do but i’m pleased with what they do so far.  I’ve now built 5 switches – one for each room of my apartment except the bathroom.  These detect motion as i walk in and out of each room. The switches get/set attributes on a central mysql database and run an evolving logic python script that

  • switches hue lights on in rooms during “evening/night” when there is motion
  • maintains a ranked list of rooms by last activity seen
  • keeps the light on in the most recent room with activity , and switches of other rooms after a period of inactivity.
  • start/stop video recording of activity each room

The shared database allows for global or per room or per switch configuration of of sunrise/sunset times as well as other configurations. It also means a Grafana server can display metrics on switches and room occupancy. The shared mysql database and Grafana server run as docker containers running on a Synology NAS that also provides storage for video recordings and a central syslog service.

Future work to switches

  • Adding the capacitive touch/dial to each switch so that they can be manually adjusted up/down/off etc. For the moment I’ve used a dummy cover until i can perfect the capacitive dial design.
  • Remount some of the fisheye camera modules which are not centered as i would line them
  • Adding/Evolving logic scripts to learn the appropriate brightness for each room at different times, to simulate activity when i am away based on observed usage, to track how long i spend working/sleeping/relaxing
  • Auto update the sunrise/sunset times from https://sunrise-sunset.org/api
  • Adding image recognition to the camera in the kitchen to read barcodes for shopping lists
  • As screens improve i’d like to replace the 8×8 led matrix with a e-ink display. I do not think the tech is where i want it yet. in another 12 months I’ll re-evaluate
  • Enabling me to view the Cameras remotely when i’m out to see if i left the oven on etc

The switches are the first of my DsBox projects based on small cheap compute modules working together to provide Home Automation.  Eventually I may build a small AI to run distributed across the boxes. Its name will be “Leo” as a tribute to a tv character I admired.

Assembly and mounting of the switches

Categories: HomeAutomation | Tags: , , , , , , , | Leave a comment

Fritzing- Great tool for designing electonics

I found a tool called Fritzing,  It is a great tool which can help design and draw electronic circuits.

My initial thoughts and therefore untested plans are below. These Fritzing diagrams help give me an idea of what I need to purchase . They also provide a starting idea of how to assemble things. ( There was not a symbol for camera 🙁 )

Now I need to order some parts and stripboard…

Categories: HomeAutomation | Tags: , , | Leave a comment