Since first time I heard about MySensors project, I wanted to replace all switches in my house with Arduino-bases remote-controlled smart switches.
After a few experiments and evolutions, I ended up in a fairly compact smart device which fits even in 1-gang in-wall box and has the following features:
- Power-connected: device has 110V -> 5V converter on board, so it source the power from the in-wall line (in-wall box need to have a common neutral wire)
- Has 2 touch sensors which control 2 relays: so it can control 2 lines
- More Arduino pins are available to connect more sensors (I played with IR motion sensor and going to try light sensors)
- Through NRF24L01+ module it is connected to Raspberry Pi gateway (https://www.mysensors.org/build/raspberry) which runs OpenHABian clone of Raspbian (https://www.openhab.org/docs/installation/openhabian.html), and MySensors are connected to OpenHAB via MQTT ( https://mosquitto.org/2013/01/mosquitto-debian-repository/) - so using myopenHAB account I can control my switches from my phone and using openHAB-to-GoogleAssistant integration - from Google Assistant
Radio is connected to Arduino using jModule https://www.mysensors.org/hardware/jmodule, and the overall breakout was a inspired by HLK-PM01 breakout board by sundberg84 (https://www.openhardware.io/view/504/HLK-PM01-breakout-board#tabs-comments)
The second wall plate insert is not used here, but I have places where I actually glued another couple of touch sensors which control other switches in the house through openHAB rules or added a motion sensor there.