Skip to main content

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

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/

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:

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.

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

You heard correctly, flash all of your SmartLife Tuya App devices with no soldering at all.  Flash them while you can before devices are updated.  All you need is a Raspberry Pi 3 to flash your devices with Tasmota.  No soldering at all and you will have full local control unlocking the true power of your smart devices.

UPDATE: Be very careful that you put in the correct SSID and Password.  It might not be a bad idea to put in a simple backup SSID and Password in position 2.  If for some reason you mistype the slot 1 password you could always change your WiFi router to send out the simple SSID and password in slot 2 to fix the issue with slot 1.  Also once you get into the switch/plug Tasmota GUI, I would highly recommend changing the WiFi Config tool to WiFi Manager by typing "wificonfig 2" (without the quotes on the console), it should respond back with that WiFiManager is selected.  This will make the device go into access point mode anytime there is an issue with connecting to the wifi.

Parts List
Raspberry Pi 3
32gb Micro SD Card
Moes 3-Way Smart Switch(optional)
4 pack Smart Plugs(optional)
Fliirc Case (optional: great RPi heat sink case)

Other Tuya based favorites
Night Light 2 pack or Night Light 1 Pack
Martin Jerry Dimmer
Oittm/Lopoo/Moes Dimmer
SK03 Outdoor Smart Plug (w/Power Monitoring)
KULED SmartSwitch
Martin Jerry Switch

Amazon US Link
Software and Github Links
Etcher
Raspbian Stretch Lite
Putty (SSH)
Tuya Convert Github

Raspberry Pi Commands for Copy & Paste
sudo raspi-config
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install network-manager
sudo apt install git

Thanks to VTRUST for their contribution page on GitHub on this project!

Per Request, GPIO Configuration for the Smart Plugs linked above

How to make a Smart Motion Sensor out of a Night Light Smart Plug.  An excellent solution to easily put a motion sensor in a room where you couldn't before for automated lights. You also get a night light and smart plug in the same package for less than $20!

Parts List
Smart Plug - iMah or iClever
PIR Motion AM312 Sensor - 2 pack or 1 pack 

Soldering Iron Station
Helping Hands(as shown)
Better Helping Hands
0.015 Solder
Female Jumper Wires
USB FTDI for Flashing

(click the pic to zoom)

Home Assistant Configuration YAML - Samples


switch:
  - platform: mqtt
    name: "MotionNite Switch"
    state_topic: "stat/MotionNite1/POWER1"
    command_topic: "cmnd/MotionNite1/POWER1"
    availability_topic: "tele/MotionNite1/LWT"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"
    payload_available: "Online"
    payload_not_available: "Offline"
    retain: false

binary_sensor:
  - platform: mqtt
    name: "MotionNite PIR"
    state_topic: "MotionNite1/PIR"
    availability_topic: "tele/MotionNite1/LWT"
    qos: 1
    payload_on: "1"
    payload_off: "0"
    payload_available: "Online"
    payload_not_available: "Offline"
    device_class: motion

light:
  - platform: mqtt
    name: "Motion Night Light"
    state_topic: "stat/MotionNite1/POWER2"
    command_topic: "cmnd/MotionNite1/POWER2"
    availability_topic: "tele/MotionNite1/LWT"
    brightness_state_topic: "stat/MotionNite1/RESULT"
    brightness_command_topic: "cmnd/MotionNite1/Dimmer"
    brightness_scale: 100
    brightness_value_template: "{{ value_json.Dimmer }}"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"
    payload_available: "Online"
    payload_not_available: "Offline"
    retain: false