Building a Home Automation and Security System with Python

Grab some relatively inexpensive hardware and use Python to string it all together into a home security system.
______________________

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Breaking the loop

Anonymous's picture

If using for example a PIR motion sensor, the sensor can come on for a period as brief as half a second. So what I do is query the status of all input devices every 0.2 seconds not to miss it.

This works great, however to use any of the relays, I need to interrupt this loop, otherwise the serial device gets confused being sent conflicting commands at the same time, then restart the loop.

Are there any better ways to poll the serial device other than starting a separate process or thread, running a loop and adding a condition to the loop whenever you want to briefly stop it?

Me 2 make a Home automation

Binu's picture

Me 2 make a Home automation system with python for mobiles, check out here
www.bluehome.info

self made security system

sugam's picture

i want to make a security system myself. Can you send me any ideas of what can be made and what are the requirements and how to make it.

Webinar
One Click, Universal Protection: Implementing Centralized Security Policies on Linux Systems

As Linux continues to play an ever increasing role in corporate data centers and institutions, ensuring the integrity and protection of these systems must be a priority. With 60% of the world's websites and an increasing share of organization's mission-critical workloads running on Linux, failing to stop malware and other advanced threats on Linux can increasingly impact an organization's reputation and bottom line.

Learn More

Sponsored by Bit9

Webinar
Linux Backup and Recovery Webinar

Most companies incorporate backup procedures for critical data, which can be restored quickly if a loss occurs. However, fewer companies are prepared for catastrophic system failures, in which they lose all data, the entire operating system, applications, settings, patches and more, reducing their system(s) to “bare metal.” After all, before data can be restored to a system, there must be a system to restore it to.

In this one hour webinar, learn how to enhance your existing backup strategies for better disaster recovery preparedness using Storix System Backup Administrator (SBAdmin), a highly flexible bare-metal recovery solution for UNIX and Linux systems.

Learn More

Sponsored by Storix