Vtech, having leaked 6.3m kids' data, now wants to run your home security

Then you either have to get to bed in darkness, or leave the light on.

My switch has a second toggle button on the door handle, so I can open the door and switch on the light easily, without having to reach across the corner; handy when carrying stuff. The button, when pressed for longer time, switches the light on for predefined time (about half-minute), enough to get to bed.

I had to program it, exactly once, and the debugging was rather straightforward. Should do it again, with dimming support, so the on/off is more gradual, less harsh to eyes. No other hassle was required.

For last five years, all the maintenance needed was to recompile the control program once, after reinstalling the server; because I used USB HID commands via libusb, software-emulated on ATmega8, instead of going for ATmega32u4 that wasn’t so easily available then and hooking it as a serial device.

Another option these days is the cheapo ESP8266, which needs wifi but may be even easier to code the software for, using nodemcu. Then there’s a choice of control over HTTP, UDP packets, or MQTT, depending on how you want the network to behave, and you can change your choice later by rewriting the relevant part of the firmware, with ease.

And of course the switch has a mechanical switch as a backup, with MANUAL_ON/MANUAL_OFF/COMPUTER_CONTROL positions, allowing fallback to manual even under the most bizarre scenario of electronics failure.

1 Like