Lights off ! WiFi home lights monitoring and control


Idea and reason

One of my long running projects, “lights off” comes from the need to know : “Did I turned off my bathroom light?” ; “This light are on for too much time, I wonder how much I am paying for it”.

Without wanting to rewire my house, I came up with designing the WiFi switches, battery powered.lights off wifi home lights monitoring and control

Switch unit 

To do so, the wall switch is controlling the Mega’s inputs that is setting and resetting the relay.

For the relay I am using a latch relay as it does not consume power during a set state.

After the state is set/reset, using the WiFi transceiver NRF24l01+ information is sent to the base station.

The switch is designed to be able to be turned off remotely and therefore the watchdog is waking the device to listen for an off command.

This approach comes from the need of the project and also it is a major improvement on the battery life. The current configuration allows running on 2 AAA batteries for 2 months.

Base station

For the base station I chose the RasPi as it can act also as a server if needed to hold the DB and the webapp.

Hooked with a NRF24l01, a daemon is listening for events from the switches and inserting them in the DB ( MongoDB).

Also the daemon is responsible in sending off command to a certain switch.

The webapp

Created with Meteor, the dashboard of the web interface displays the current state of all configured switches.

The “on” switches can be turned off remotely from the app.

To do

— add power consumption calculation based on the historical data

— create a mesh of switches with NRF24Network ( current limitation is at 6 switches)

— attempt to decrease the power consumption.

Schematics — switch unitcircuit lights off wifi home lights monitoring and control

Currently I have made 2 versions ( 5V and 3.3V) both plugable in the wall as seen from the pictures.

The 3.3 V is attached to this project

Prototype pics

The pictures below show the finished prototypes.

For more detail: Lights off ! WiFi home lights monitoring and control

About The Author

Scroll to Top
Read previous post:
Panelization – using GerberPanelizer on Windows
Panelization – using GerberPanelizer on Windows

This tutorial was done on Windows. Authors claim it could also be used on Linux by using Mono, but I...