Posts

Smart WiFi and Presence Detection with Home Assistant - Ubiquiti UniFi

Image
Put an end to weak WiFi issues in your smart home and add reliable presence detection as a bonus.  The affordable enterprise grade WiFi system will give all of your smart home products and mobile devices a stable and reliable WiFi signal in all of your home.  The cost is usually about the same if not less what you would spend on other systems. 

UniFi Security Gateway (Router)
UniFi AC Lite
UniFi AC Long Range
UniFi AC Pro
EdgeRouter Lite




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!)

3-Way KULED Smart Switch Tips & Tricks with Tasmota

Image
We are showing additional tips and tricks on the KULED WiFi Smart Switch; 3-Way Config, Long Press Actions to control other devices, LED Control, and LED Dimming.  Learn how to use Tasmota rules with the various configurations in your projects.

Watch the previous video of how to flash the KULED Smart Switches as we are setting them in a 3-way configuration!  https://www.youtube.com/watch?v=4nX90vhAniQ

Parts List (to flash Tasmota):
KULED SmartSwitch (2 Pack)
USB FTDI Adapter(for Flashing, set jumper to 3v3 - NOT 5 volts) Male Headers
Jumper Wires

Best WiFi Smart Switch? - Flash Tasmota on the KULED Smart Switch

Image
The KULED WiFi Smart Switch unboxing and Tasmota firmware flashing tutorial.  These switches have been welcomed by many as an easy solution to their smarthome projects.

Can it replace a Sonoff Switch?  You be the judge. One of the easiest devices to flash, with NO soldering!  Don't forget to set your flashing adapter to 3.3 volts!

Parts List:
KULED SmartSwitch (2 Pack)
USB FTDI Adapter(for Flashing, set jumper to 3v3 - NOT 5 volts)
Male Headers
Jumper Wires




Verify your header layout is the same as pictured, some switch variants have labels the layout is different.
HomeAssistant Binary Sensor Config YAML- platform: mqttname: "KuLED Test"state_topic: "stat/KULED-1/POWER"command_topic: "cmnd/KULED-1/POWER"availability_topic: "tele/KULED-1/LWT"qos: 1payload_on: "ON"payload_off: "OFF"payload_available: "Online"payload_not_available: "Offline"retain: false

GitHub with the pictures and sample HomeAssistant C…