Skip to main content

Tearing down a unique RGB night light switch from top to bottom.  We show the investigative work of figuring out the pins for flashing and usage of the switch.   Join the fun and remove the cloud dependency from your switches making them yours!

RGB Smart Switch
Alternate Switch

Volt Meter
Dupont Jumpers
CH340G Usb to Serial

RGB Switch Tasmota Template

{"NAME":"RGB Switch","GPIO":\[30,255,32,10,39,38,0,0,31,9,37,21,255\],"FLAG":0,"BASE":18}  

Addtl Links
Tasmota - https://github.com/arendst/Sonoff-Tasmota
NodeMCU Pyflasher - https://github.com/marcelstoer/nodemcu-pyflasher

Devices/Toys we use - https://amzn.to/2YZNDeO
Amazon UK Link - https://amzn.to/2TnG2R4
Amazon CA Link - https://amzn.to/2HchPZe
Come chat with us!
Discord - https://discord.gg/bNtTF2v
Patreon - https://www.patreon.com/digiblurDIY

Review of the Argus Eco - Wire Free Solar Powered Camera.  Put it Anywhere!

Congrats to Mike S on his win of the giveaway on Discord/Facebook.  Be sure to read his review of the camera here -  Mike S's review of the Argus Eco (PDF file)

Argus Eco(US)
Argus Eco(UK)

Direct Reolink Argus Eco Link
Additional 8% off coupon code from Reolink - ytbreo8offustravis

Devices/Toys we use
Amazon UK Link
Amazon CA Link

Come chat with us!
Discord
Patreon

The ShellyEM is an all in one power monitoring solution for monitoring two circuits up to 120A.

Buy a ShellyEM

Products I use and recommend
Amazon UK Link
Amazon CA Link

Come chat with us!
Discord - https://discord.gg/bNtTF2v
Patreon - https://www.patreon.com/digiblurDIY

Sample Home Assistant Sensor via MQTT

  - platform: mqtt
name: "ShellyEM1 Watts"
state_topic: "shellies/shellyem-B9E17C/emeter/0/power"
qos: 0
unit_of_measurement : "W"
icon: mdi:flash-circle
- platform: mqtt
name: "ShellyEM1 Volts"
state_topic: "shellies/shellyem-B9E17C/emeter/0/voltage"
qos: 0
unit_of_measurement : "V"
icon: mdi:flash-circle
#    availability_topic: "shellies/shellyem-B9E17C/online"
#    payload_available: "Online"
#    payload_not_available: "Offline"

Easy to deploy and reliable sensors for automations on doors, cabinets, freezers, toilet seats (we know who!), etc, check out the Wyze Sense pack.  By popular demand after the live stream we are doing a quick and easy step by step setup with Home Assistant.  This was tested on a Raspberry Pi 4 (which runs pretty quick!) but you can install this on many device setup types, such as unRaid, docker, etc.

Wyze Sense Pack w/ Camera
Wyze Sense Pack Only

Raspberry Pi 4 Kit

Addtl Links
Wyze Component - https://github.com/kevinvincent/ha-wyzesense
HACS Install - https://custom-components.github.io/hacs/installation/manual/
DrZzs Install of HACS - https://www.youtube.com/watch?v=aJTTCAvzpIU

Products I use and recommend on Amazon

Come chat with us!
Discord - https://discord.gg/bNtTF2v
Patreon - https://www.patreon.com/digiblurDIY

unRaid hidraw<x> Passthrough

This is for folks running separate docker containers and not using the Hassio Supervisor

Plug in the Waze USB receiver, log into the unRaid GUI and check the system log to see the number that hidraw installed as. (click the graphic below for a larger view)

Go to the Docker tab, find your "home-assistant" container and click edit.  Click "+Add another Path, Port..." button.

Click Save, then Done, and the Docker container will be stop and updated with the new pass through.  Follow through with adding the hidraw<x> number you had to the configuration.yaml.  That's it!

Tuya Convert got you down?  Still looking for some devices that don't require soldering to flash your Tasmota, ESPHome, etc open source firmware?  We are checking out a few devices that can be flashed with the open pin headers.  No soldering!  If you have any devices to add to the list be sure to comment down below.  They will get added along with pictures of the pin headers on this Blog post.  Let's build the list and make all of our devices ours with pure local control!

Solderless Devices
Zemismart - 1,2, or 3 Switch

They refer to them as gangs, but there are three models based on how many switches you want. They are clickie style switches and fit in a standard US 1 gang width box.  Remove the 4 screws on the back and you'll see the pins all right there.  IO0 is the GPIO 0 pin.

Sonoff iFan03

The button is GPIO0 - hold the button while applying power for a few seconds, just like the Sonoff Basic

Etekcity Switch 2 Way

Etekcity Switch 3 Way

Martin Jerry Switch 2 Way

Martin Jerry Dimmer

Uses the digiDIM forked bin from here for the MJ-SD01 Dimmer

Acenx Dimmer

Same as the MJ Dimmer above - just a different faceplate

Etekcity Smart Plug

Shelly 1

Shelly 1(Non US)  

Shelly 2.5
Shelly 2.5(Non US)

Sonoff Basic

Smart Socket

Process shown in video above

Parts/Items in the Video
CH340G USB Flasher
Jumper Wires

Addt'l Links
Tasmota - https://github.com/arendst/Sonoff-Tasmota
NodeMCU Pyflasher - https://github.com/marcelstoer/nodemcu-pyflasher

Products I use and recommend on Amazon

Come chat with us!
Discord - https://discord.gg/bNtTF2v
Patreon - https://www.patreon.com/digiblurDIY

Finishing up the last bit of sensors and config on the Etekcity power monitoring plug.  No soldering required to flash the plug as they left us an open header to attach to.  Snuck in a little bit of the cool 3 way Martin Jerry switch.

Etekcity Plug
Martin Jerry 3 way Switch

2 & 6 Channel Monitoring Boards with ESPHome - https://circuitsetup.us/

Audio issues on the first piece, but we reset OBS to fix the issue!  Sorry guys/gals!

Tasmota Template for the Etekcity
(had issues with voltage readings dropping at random times)

{"NAME":"ETekNightLight","GPIO":[0,0,0,0,37,21,0,0,132,133,17,130,52],"FLAG":1,"BASE":45}  

Work in progress Etekcity Plug Config

substitutions:  
  plug_name: etekpower
  # Higher value gives lower watt readout
  current_res: "0.00095"
  # Lower value gives lower voltage readout
  voltage_div: "2040"

esphome:
  name: ${plug_name}
  platform: ESP8266
  board: esp8285

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_pass
  manual_ip:
    static_ip: !secret ip_etekpower
    gateway: !secret ip_gateway
    subnet: !secret ip_subnet
    dns1: !secret ip_dns1

logger:
#  level: NONE

mqtt:
  broker: !secret mqtt_broker
  username: !secret mqtt_user
  password: !secret mqtt_pass

ota:
platform: esphome

web_server:

binary_sensor:
  - platform: gpio
    pin:
      number: GPIO14
      inverted: True
    name: "${plug_name}_button"
    on_press:
      then:
        - switch.toggle: "${plug_name}_Relay"
        - switch.toggle: "${plug_name}_LED_Blue"
switch:
- platform: gpio
  name: "${plug_name}_Relay"
  id: "${plug_name}_Relay"
  pin: GPIO05
  restore_mode: ALWAYS_ON
- platform: gpio
  name: "${plug_name}_LED_Blue"
  id: "${plug_name}_LED_Blue"
  pin: GPIO16
  inverted: False
  restore_mode: ALWAYS_ON

sensor:
  - platform: hlw8012
    sel_pin:
      number: GPIO15
      inverted: False
    cf_pin: GPIO13
    cf1_pin: GPIO12
    current_resistor: ${current_res}
    voltage_divider: ${voltage_div}
    change_mode_every: 3
    update_interval: 3s 
    current:
      name: "${plug_name}_Amperage"
      unit_of_measurement: A
      accuracy_decimals: 3
      filters:
      - calibrate_linear:
          - 0.000 -> 0.0
          - 5.069 -> 6.69   
      # Make everything below 0.01A appear as just 0A.
      # Furthermore it corrects 0.013A for the power usage of the plug.
      - lambda: if (x < (0.01 - 0.013)) return 0; else return (x - 0.013);
    voltage:
      name: "${plug_name}_Voltage"
      unit_of_measurement: V
      accuracy_decimals: 1
    power:
      name: "${plug_name}_Wattage"
      unit_of_measurement: W
      id: "${plug_name}_Wattage"
      accuracy_decimals: 0

  - platform: uptime
    name: ${plug_name}_Uptime Sensor

  - platform: adc
    pin: A0
    name: "${plug_name}_LightSensor"
    update_interval: 5s

light:
  - platform: monochromatic
    name: "${plug_name}_NightLight"
    output: pwm_nite

output:
  - platform: esp8266_pwm
    id: pwm_nite
    pin: 4

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