Posts

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…

State of the Dimmer - Tasmota Dimmer Updates

Image
The Martin Jerry, Lesim and OG Oittm Dimmers are covered from usage, firmware changes, Home Assistant configuration templates, and other differences.  The three WiFi dimmers I use in my home for local control with MQTT and no reliance on the cloud.

Martin Jerry Dimmer
Lesim Dimmer
Oittm/Lopoo/Moes Dimmer

digiDIM Tasmota Fork

Smart Laundry Notifications with a Sonoff S31 & Home Assistant

Image
Make your Laundry Smarter with our favorite smart plug, the Sonoff S31, and Home Assistant with Voice Notifications when the Washer and/or Dryer are finished.  Easy power monitoring and automations with this step by step tutorial of the setup.

Sonoff S31

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

Tasmota Backlog (modify to your values)
backlog ssid MyWiFiz; password SooperSekret; mqtthost 192.168.1.5; mqttuser me123; mqttpassword 123that; powerretain 1; topic SNF-Washer; sensorretain 1; poweronstate 1; friendlyname SNF-Washer; teleperiod 60

Home Assistant Config Sample & Automations:

(configuration.yaml)
 sensor:
  - platform: mqtt
    name: "Washer State"
    state_topic: "hass/state/washer"
    icon: mdi:washing-machine
  - platform: mqtt
    name: "Washer Watts"
    state_topic: "tele/SNF-Washer/SENSOR"
    value_template: "{{value_json['ENERGY'].Power }}&…

Part 2 - How to Expand Tasmota/Sonoff Devices with the I2C Protocol - MCP23017 GPIO Expansion - I²C

Image
Part 2 of 2 - How to Expand Tasmota/Sonoff Devices with the i2c protocol.  Adding the powerful MCP23017 Chip to expand your ESP8266 device with 16 additional input/output pins.  We cover a few scenarios of advanced rules with the chip combined with rules for publishing other sensors to MQTT.

Parts Used in this Video:

NodeMCU
MCP23017 GPIO Expansion
BME280 Temp/Humidity/Pressure
SHT31 Temp/Humidity
Breadboard and Jumper Wires
ADS1115 4 Channel Analog Input
Female Jumper Wires
PIR Motion AM312 Sensor - https://amzn.to/2DhrkpA or https://amzn.to/2F7P9lE

Tasmota Supported Sensors
https://github.com/arendst/Sonoff-Tasmota/wiki/Sensors-Supported-by-Tasmota

Rules and Commands used in the videos:
https://www.digiblur.com/2018/11/part-1-of-2-how-to-expand-tasmotasonoff.html

CP2102 USB Drivers:
https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers

Precompiled Tasmota Bin with ADS1115 and MCP23017 i2c Enabled:
https://github.com/digiblur/Sonoff-HydraBasic-Tasmota/raw/mas…

Part 1 - How to Expand Tasmota/Sonoff Devices with the I2C Protocol - I²C

Image
Our first part of the I2C (I²C) sensor expansion with Tasmota. Add multiple sensors with minimal GPIO pin usage with a wide array of sensors on the market.  Add additional GPIO pins, LUX, Humidity, Pressure, Gas, Etc.

Parts Used in this Video:

NodeMCU
MCP23017 GPIO Expansion
BME280 Temp/Humidity/Pressure
SHT31 Temp/Humidity
Female Jumper Wires
PIR Motion AM312 Sensor
ADS1115 4 Channel Analog Input
Breadboard and Jumper Wires

Tasmota Supported Sensors
https://github.com/arendst/Sonoff-Tasmota/wiki/Sensors-Supported-by-Tasmota

CP2102 USB Drivers:
https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers

Precompiled Tasmota Bin with ADS1115 and MCP23017 i2c Enabled:
https://github.com/digiblur/Sonoff-HydraBasic-Tasmota/raw/master/tasmota_6307_1m_i2c_sensors.bin

MCP23017 Console Commands Used:

sensor29 0,5
sensor29 1,5
sensor29 8,5
sensor29 0,T
sensor29 1,T
sensor29 8,T

sensor29 3,2,0
sensor29 2,2,0

MCP23017 Rules:

rule1 on event#MCPINT_D2=0 do backlog sensor29 0,OFF;senso…

We were doing it live! Catch the Replay of the Full Smart Switch Teardown and a new Dimmer.

Image
Two switches shown in the video:

Martin Jerry Switch
Martin Jerry Dimmer

Did a rather short (sarcasm) live stream showing the process to break open the smart switch, identify features, flash tasmota, setup the template, etc. It was my first time doing this switch model and first time doing the real live stream.

I also showed the bonus of the very cool new dimmer switch I've been working with on and off. It's very close and works out of the box right now as it is with a few Tasmota rules.

Had a lot of fun and let me know if you'd like to see more of these (hopefully shorter next time!)