Skip to main content

Installing the true 3 Way Smart Switch from Etekcity.  As always we flash the switch with open source firmware, Tasmota for 100% local control.  No soldering required to flash!  After the setup we do a slight modification to add a motion sensor to solve an issue I had in our laundry room.

Etekcity 3 Way (2 pack)
Etekcity Single Pole
Flashing
FTDI USB Flasher
Jumper Wires
Straight Header Pins https://amzn.to/30EZsUK

To Add Motion Activation
AM312
Angled Header Pins

Installation Tools
Wago 221 Wire Connectors
Circuit Tester

Soldering gear I use
Station
Solder
Flux
Helping Hands

Additional Links
Tasmota
NodeMCU Pyflasher
3 Way Switch Diagrams
Cliff Quicktest

Tasmota Template

{"NAME":"Etekcity 3Way","GPIO":[255,255,0,255,23,29,0,0,82,22,10,0,0],"FLAG":0,"BASE":18}  

Setup Commands for the Console

backlog switchtopic 0;switchmode1 1;switchmode2 5;switchmode3 1;powerretain 1;rule1 on event#ON do power2 TOGGLE endon;rule1 1;rule2 on event#OFF do power2 TOGGLE endon;rule2 1;

rule3 on power1#state=1 do backlog rule1 0; rule2 1 endon on power1#state=0 do backlog rule1 1; rule2 0 endon
rule3 1

Sample Home Assistant Config

- platform: mqtt
name: "SW-HallWay"
state_topic: "stat/SW-HallWay/POWER1"
command_topic: "cmnd/SW-HallWay/EVENT"
availability_topic: "tele/SW-HallWay/LWT"
qos: 1
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
retain: false

Take note of the slightly different command topic.

Rule Addition for Motion
rule3 on power1#state=1 do backlog rule1 0; rule2 1 endon on power1#state=0 do backlog rule1 1; rule2 0 endon on switch3#state=1 do backlog event ON ; RuleTimer1 300 endon on Rules#Timer=1 do event OFF endon

Come chat with us!
Discord
Patreon

3-Way Dimming without the cloud! I show the hallway 3 way light that was in dire need of dimming at night from our motion activated lights.  All of the Tasmota rules and links to wiring diagrams are included below. Enjoy! Subscribe, give us a thumbs up, and feel free to comment if you have any questions.

Acenx Dimmer Switch

Zemismart Switch

3-Way Switch Diagrams

How to Flash the Acenx/Martin Jerry Dimmer

Amazon US Link

Connect with Us
Patreon - https://www.patreon.com/digiblurDIY
Discord - https://discord.gg/bNtTF2v
Primary Dimmer Rules

Rule1 on Switch2#state=2 do Dimmer - endon on Switch3#state=2 do Dimmer + endon on Switch2#state=3 do Dimmer 30 endon on Switch3#state=3 do Dimmer 100 endon  
Rule2 on Power1#State=1 do backlog publish cmnd/SW_Hall_Secondary/ledpower 1; ledpower 0 endon on Power1#State=0 do backlog publish cmnd/SW_Hall_Secondary/ledpower 0; ledpower 1 endon
Rule3 on Dimmer#State>=70 do Var1 15 endon on Dimmer#State<70 do Var1 85 endon on System#Boot do Var1 15 endon on Event#TogDim do Dimmer %var1% endon

Secondary Switch Rules

Rule1 on Switch1#State=2 do publish cmnd/SW_Hall_Primary/Power TOGGLE endon  
Rule2 on Switch1#State=3 do publish cmnd/SW_Hall_Primary/Event TogDim endon

Do you use an electric dryer and need a solution to send voice notifications when the cycle is complete?  Let's build a simple non-invasive DIY sensor that monitors the electrical draw from the dryer using a Wemos D1/NodeMCU, a couple resistors, capacitor and a split core current transformer.  You can also apply this same project to many other electrical monitoring projects in the home. 

Parts List
Split Core Current Transformer
Wemos D1 Mini 
10µF Capacitor
10k Resistors 
Preformed Jumpers
Breadboard

Alternative NodeMCU 8266 
Alternative NodeMCU 8285

Amazon US Link

Connect with Us
Patreon - https://www.patreon.com/digiblurDIY
Discord - https://discord.gg/bNtTF2v

Misc Links
Wiring Diagrams and Arduino Sketch - https://github.com/digiblur/digiDryerMon
Arduino IDE Download - https://www.arduino.cc/en/Main/Software
AsyncMQTT - https://github.com/marvinroger/async-mqtt-client
ESPAsyncTCP - https://github.com/me-no-dev/ESPAsyncTCP

Boards Manager Address for Arduino IDE Config:
http://arduino.esp8266.com/stable/package\_esp8266com\_index.json
Sample Home Assistant Config

sensor:
- platform: mqtt
name: "Dryer Current"
state_topic: "digiDryerMon-4A443E/SCT"
unit_of_measurement : "A"
icon: mdi:flash-circle
availability_topic: "digiDryerMon-4A443E/LWT"
payload_available: "Online"
payload_not_available: "Offline"

  - platform: mqtt
name: "DryerMon Signal"
state_topic: "digiDryerMon-4A443E/RSSI"
unit_of_measurement: "dBm"
availability_topic: "digiDryerMon-4A443E/LWT"
payload_available: "Online"
payload_not_available: "Offline" 

  - platform: mqtt
name: "DryerMon Status"
state_topic: "digiDryerMon-4A443E/BUILD"
availability_topic: "digiDryerMon-4A443E/LWT"
payload_available: "Online"
payload_not_available: "Offline"

Sample Home Assistant Voice Notifications from the S31 Video - https://www.digiblur.com/2018/11/smart-laundry-notifications-with-sonoff.html

The LOHAS LED Bulbs utilize dual channels of warm white and cool white LEDs on the MY9231/MY9291 LED drivers.  We show in ESPHome how to solve this issue with a custom component.  All of the sample configurations used in the video can be found at the GitHub link below.  The Anoop bulb is a dual channel PWM light shown in Tasmota.  We also show how to easily configure the device using the new copy and paste templates of Tasmota.

LOHAS Color (3 pack)
LOHAS Color (1 pack)
LOHAS CW/WW LED
Anoopsyche CW/WW LED

Amazon US Link
Connect with Us
Patreon - https://www.patreon.com/digiblurDIY
Discord - https://discord.gg/bNtTF2v

LOHAS ESPHome Configurations and CopyChan component - https://github.com/digiblur/ESPHome_LOHAS_LED

Home Assistant Sample MQTT Configurations - https://github.com/digiblur/Sonoff-Tasmota/wiki/Smart-Bulbs

Tuya Convert Process - https://www.youtube.com/watch?v=O5GYh470m5k

I built another multisensor for the bedroom and I decided to change up a few components.  Dive in and take a step by step approach to build it with Otto Winter's ESPHome software this time around as it's been a year since I built the initial Bruh Automation version.  ESPHome is easy to use and configure; No Arduino IDE, no coding, just a config file and the sensors wired up! 

Parts List Used
NodeMCU
TSL2561 LUX Sensor  or Sensor#2
Jumper Wires
AM312 Motion Sensor
5mm Neopixel or  8mm Neopixel
DHT22 Temp/Humidity

Sample ESPHome YAML (replace the IP address and WiFi information)

esphomeyaml:
name: sensor_node1
platform: ESP8266
board: nodemcuv2

wifi:
ssid: 'yourWIFIhere'
password: 'yourPASShere'
manual_ip:
static_ip: 10.10.1.40  change this IP and remove this message
gateway: 10.10.1.1
subnet: 255.255.255.0
dns1: 10.10.1.1
dns2: 10.10.1.1

   
# Enable logging
logger:

# Enable Home Assistant API
api:

ota: platform: esphome

sensor:
- platform: dht
pin: D7
model: dht22   
temperature:
name: "SenseNode Temp"
humidity:
name: "SenseNode Humidity"
update_interval: 30s
- platform: tsl2561
name: "SenseNode LUX"
address: 0x39
update_interval: 5s   

   
binary_sensor:
- platform: gpio
pin: D6
name: "SenseNode Motion"
device_class: motion
on_press:
then:
- light.turn_on: ESPD4led   
on_release:
then:
- light.turn_off: ESPD4led   
light:
- platform: fastled_clockless
chipset: WS2812
pin: D3
num_leds: 1
rgb_order: RGB
name: "SenseNode LED"
- platform: binary
name: "SenseNode D4Led"
output: D4led
id: ESPD4led

   
i2c:
sda: D2
scl: D1
scan: False

 
output:
- platform: gpio
pin: D4
id: D4led
inverted: True

3D Cases Used
https://www.thingiverse.com/thing:2361388
https://www.thingiverse.com/thing:2477685

Huge shout out to Bruh Automation for starting me on this ESP8266 journey on the first version of this multisensor a year ago.

Renting or can't swap out your light switches with the various solutions we have shown?  Let's check out some smart lighting options.

Lights Used
Smart Bulb RGBW
Smart Downlight RGBW - 4inch
Smart Downlight RGBW - 6inch

How to configure both ESPHome & Tasmota with 2 smart lighting options.  Both of these devices utilize the MY9291 LED Driver inside.  After using the easy Tuya Convert process to flash custom firmware we show how to configure each light in Home Assistant for MQTT/API Local Control without the cloud.

Upcoming Lights: Set#1  and Set#2

Amazon US Link

Tuya Convert Process - https://www.youtube.com/watch?v=O5GYh470m5k

Tasmota Project - https://github.com/arendst/Sonoff-Tasmota
ESPHome Project - https://esphome.io/index.html

Sample Home Assistant Config:
https://github.com/digiblur/Sonoff-Tasmota/wiki/Smart-Bulbs

Tasmota Device Templates - https://blakadder.github.io/templates/

Easy setup of wireless sensors utilizing the Sonoff 433mhz RF Bridge.  Custom MQTT topics and automations with Tasmota rules all self contained in the bridge.  We also check out the trigBoard from Kevin Darrah with deep sleep modes and custom sensors all from a battery powered ESP8266 based board.

Sonoff RF Bridge
TrigBoard

Amazon US Link

How to Flash the RF Bridge with Tasmota: https://youtu.be/OfSbIFIJPuc?t=40

Wireless Sensors
Door
Water

Sample Home Assistant Sensor Configuration

  - platform: mqtt
name: "Freezer Door"
state_topic: "RFBridge/sensor1"
availability_topic: "tele/RFBridge1/LWT"
qos: 1
payload_on: "Open"
payload_off: "Closed"
payload_available: "Online"
payload_not_available: "Offline"
device_class: door