Posts

Smart Bulbs with Tasmota & ESPHome - Home Assistant

Image
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/

DIY ESPHome Multisensor - Temp, Humidity, RGB LED, Motion and LUX

Image
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

Sonoff RF Bridge Easy Setup with Tasmota Rules and the trigBoard

Image
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

Flash Tuya Smart Switches Over the Air - No soldering!

Image
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 connect…

True 3-Way Smart Switch w/ Tasmota - No rewiring!

Image
It's here!  A smart switch that works in several different 3 way wiring configurations without any rewiring or other tricks.  Swapping out one of the 3 way switches with this one is the only requirement.  This video also shows the details of using with Tasmota for local MQTT control with Home Assistant.

Moes 3-Way Smart Switch

Additional Parts for Flashing Tasmota if Needed
Soldering Iron Station
Helping Hands(as shown)
Alternative Upgraded Helping Hands
0.015 Solder
Female Jumper Wires
USB FTDI for Flashing

Amazon US Link

Tasmota Backlog Commands

backlog ssid1 NetWorkName;password1 MyPassword

backlog module 18;gpio4 21;gpio5 57;gpio12 30;gpio13 18;gpio14 9;switchtopic 0;switchmode1 0;buttontopic 0;rule1 on event#ON do power2 TOGGLE endon on event#OFF do power2 TOGGLE endon;rule1 1;

Check to make sure the entire backlog took by verifying the rule is configured by typing rule1 after the reboot!

Sample Home Assistant Config

- platform: mqtt
  name: "SW-HallWay"
  state_topic: "…

How to install unRaid NAS and Home Assistant

Image
Have you outgrown the Raspberry Pi with Home Assistant?  Need something easy with more space and horsepower?  Look no further as unRaid is an easy Network Attached Storage solution that works great with Home Assistant.  No command line experience needed!  The docker management GUI of unRaid is second to none with easy installs, automatic updates, notifications, and more.

Spaceinvader One's channel for additional unRaid Tutorials

How to install Community Applications on unRaid Form thread

Smart Motion Sensor and Night Light - How To

Image
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: "Moti…