Sonoff Dual R3 in wall Smart Switch | ESP32 Power Monitoring & BLE | How to Setup Tasmota

Поділитися
Вставка
  • Опубліковано 21 лип 2024
  • Sonoff iTead Dual R3 with Tasmota - Dual channel power monitoring and BLE scanning. Full guide of setup and even some soldering & flashing how-to tips as a bonus! Power monitoring chip CSE7761
    ⚡Where to Purchase
    Sonoff Dual R3 (Amazon) geni.us/Ll8C
    Sonoff Dual R3 (iTead) shrsl.com/2uvei
    (Other stores will be listed when they become available)
    BLE Sensors (optional) - s.click.aliexpress.com/e/_9z1z8K
    ⚡Soldering & Others
    USB On/Off Cable (Amazon) geni.us/Dsqxpe
    USB TTL 3.3v - amzn.to/2NqtAS2
    Hakko Soldering Station - amzn.to/3s1xKPm
    T100 Portable Soldering Iron - amzn.to/2NpGPCq
    Flux - amzn.to/2OH3JpC
    Bluetack - amzn.to/3lrod1B
    Fine 0.015 Solder - amzn.to/3lqMrJt
    Jumpers - amzn.to/3cEqLFK
    CliffQuickTest - cloudfree.shop/product/cliff-...
    ⚡Tasmota Template
    {"NAME":"Sonoff Dual R3","GPIO":[32,0,0,0,0,0,3232,3200,0,576,225,0,0,0,0,0,0,0,0,0,0,7296,7328,224,0,0,0,0,160,161,0,0,0,0,0,0],"FLAG":0,"BASE":1}
    2nd model (if your power monitoring does not work)
    {"NAME":"Sonoff Dual R3 v2","GPIO":[32,0,0,0,0,0,0,0,0,576,225,0,0,0,0,0,0,0,0,0,0,3200,8128,224,0,0,0,0,160,161,0,0,0,0,0,0],"FLAG":0,"BASE":1}
    ⚡Resources
    Tasmota ESP32 - tasmota.github.io/docs/ESP32/
    Tasmota Bluetooth - tasmota.github.io/docs/Blueto...
    Setup BLE Sensors - • Q&A | Tasmota ESP32 Bl...
    Live Stream of BLE Sensors - • Q&A | Tasmota ESP32 Bl...
    BLE Sensor Github - github.com/pvvx/ATC_MiThermom...
    #iTead
    #Sonoff
    #DualR3
    ⚡Products We Use/Recommend
    Amazon US - amzn.to/2YZNDeO
    Amazon UK - amzn.to/2TnG2R4
    Amazon CA - amzn.to/2JWsNq5
    ⚡Be Social!⚡
    Discord Chat - / discord
    Website - www.digiblur.com
    Patreon - / digiblurdiy
    Facebook - / digiblurdiy
    Instagram - / digiblurdiy
    Please note that links above may be affiliate link, using them could earn digiblurDIY a small commission of most purchases and helps with future video projects. Thank you!
    00:00 Intro
    01:11 Unbox
    03:44 Open it UP!
    05:08 ESP Pads
    06:40 Soldering 101
    11:51 USB TTL
    13:50 Tasmota ESP32
    15:09 Flashing!
    16:58 Wiring
    18:37 Tasmota Setup
    20:47 Bluetooth Scanning
    22:14 Conclusion Please note, the product links above could be affiliate links, using them could earn digiblurDIY a small commission of purchases potentially helping with future video projects. Thank you! As an Amazon Associate I earn from qualifying purchases. Please note, the product links above could be affiliate links, using them could earn digiblurDIY a small commission of most purchases and helps with future video projects. Thank you! As an Amazon Associate I earn from qualifying purchases.

КОМЕНТАРІ • 129

  • @djrosco1982
    @djrosco1982 3 роки тому +2

    Very informative and helpful… no wasted time and thorough detailed information… needed this video today! Thank you and keep up the great content

  • @kennethmadsen6474
    @kennethmadsen6474 3 роки тому +4

    Great video! Been looking forward to seeing the Dual R3 in action :)

  • @rodneyboyer206
    @rodneyboyer206 3 роки тому

    I purchased a couple of these but had to put ESPHome on them (no power monitoring). I'm definitely going to reflash them with Tasmota now! Thanks Travis. Great video as always.

    • @digiblurDIY
      @digiblurDIY  3 роки тому +1

      Thanks! I bet they'll get ESPHome support pretty soon going for that chip. Choices are good.

  • @jimbrewer5821
    @jimbrewer5821 3 роки тому +4

    Travis, Great video! The Sonoff Dual R3 looks like a pretty cool device. Interesting to start to see the migration from ESP8266 to ESP32.

  • @mchhazel
    @mchhazel 3 роки тому +2

    Great Video as always! yesterday I was looking for a similar type but with dual Dimmers.

  • @adifoto6362
    @adifoto6362 3 роки тому +2

    That is good i am using the sensors with ESPHOME and they work quite good. Will be good to get read of my hub for one of this to not ue multiple devices.

  • @borolo222
    @borolo222 3 роки тому +2

    Thanks man, great content always.

  • @mattvipond3840
    @mattvipond3840 3 роки тому +4

    Great video as always! Now I need a couple of these. Ugh. Lol!

    • @digiblurDIY
      @digiblurDIY  3 роки тому +1

      The Bluetooth deal opens up some options big time. Glad to see pads broken out, no glue, no esp32 efuses burnt. Like they meant for this community to buy it. Someone gets the "more sales" theory at iTead.

  • @DesertGardenPrepper
    @DesertGardenPrepper 3 роки тому +2

    neat, thanks Travis!

  • @VAKUL-DC
    @VAKUL-DC 3 роки тому

    Awesome tutorial. Thanks T. This with the Lutron toogle switch to momentary hack from your old tutorial...and we got multi press on both switches

    • @digiblurDIY
      @digiblurDIY  3 роки тому

      Indeed! Or some dimmer control hold buttons.

    • @VAKUL-DC
      @VAKUL-DC 3 роки тому

      @@digiblurDIY "dimmer control hold buttons" What are those ? did you cover them in another vid or live session ?

    • @AladinTechnology
      @AladinTechnology 3 роки тому

      @@digiblurDIY is there switch with 1 position to connect it so I dont get my regurar switch mixed positions

    • @digiblurDIY
      @digiblurDIY  3 роки тому

      Think I did a while back with a guy doing a rocker and the new switch modes.

    • @digiblurDIY
      @digiblurDIY  3 роки тому

      Yes. Momentary buttons work for this.

  • @georgelza
    @georgelza 2 роки тому +1

    @16:50 you mention getting unit connected to mains... (I'm assuming you forgot to mention never connect to mains while the TX/RX pins are connected to laptop, aka first disconnect those)

  • @thatnoone
    @thatnoone 3 роки тому +1

    looking good

  • @seth2389
    @seth2389 3 роки тому +2

    Where is my outtro, Travis? This is not fair!
    Slick desk though ;-)

    • @digiblurDIY
      @digiblurDIY  3 роки тому

      Spoiled yall! I have to dig through more random stuff but I do have some new stuff I am grabbing this weekend with safety harnesses involved 😎

  • @wartlme
    @wartlme 2 роки тому +2

    I ripped the pads off. Ended up scraping off the traces and micro soldering with a microscope. Ended up getting it done but it was stressful.

    • @digiblurDIY
      @digiblurDIY  2 роки тому

      Ouch. Luckily those other pads are still there.

  • @MrBobWareham
    @MrBobWareham 7 місяців тому +1

    Very nice video, but I don't have many products and would like to use just Tasmota with a local MQTT Raspberry Pi and no HA but can't find any videos because it is all HA and would love to see some videos without HA

    • @digiblurDIY
      @digiblurDIY  7 місяців тому

      I would use Tasmota as it has MQTT which is usable by many platforms

  • @user-so5uo1xx5t
    @user-so5uo1xx5t 2 роки тому

    Thanks for you
    How to integrate in home assistant

    • @digiblurDIY
      @digiblurDIY  2 роки тому

      Use the Tasmota HA integration

  • @jvgorkum
    @jvgorkum 3 роки тому

    Nice video, would it be possible to create a rule that creates a XOR state for 1 one output with 2 switches?

    • @digiblurDIY
      @digiblurDIY  3 роки тому +1

      I could see doing a decouple setoption and/or rule to get it done.

  • @vladyno
    @vladyno 3 роки тому +1

    Hi, How can I set the switchmode according to the original software? Specifically "Working mode, switch, External Trigger mode, for Channel 1, Following mode"

    • @digiblurDIY
      @digiblurDIY  3 роки тому

      Switchmode1 1 would put it in follow mode. tasmota.github.io/docs/Buttons-and-Switches/#switchmode

  • @MiddleSiggyGames
    @MiddleSiggyGames 3 роки тому +1

    What is the device with the 110 in and the White/Green/Black connectors with the flip down?

  • @chrisdittemore6012
    @chrisdittemore6012 3 роки тому +1

    Can you control a ceiling fan and a light switch with this? 2 different switches same electrical box

    • @digiblurDIY
      @digiblurDIY  3 роки тому +1

      Yes. That's the design. Two switch inputs and two relay outputs

  • @iulianbe
    @iulianbe 3 роки тому +1

    Good guide, thanks .
    I'd like to try using it to control electric shutter motor.
    Do you know of a guide for doing something like that with sonoff dual and tasmota ?

    • @digiblurDIY
      @digiblurDIY  3 роки тому

      No shutters here so I haven't looked for one.

    • @digiblurDIY
      @digiblurDIY  3 роки тому +1

      tasmota.github.io/docs/Blinds-and-Shutters/

    • @iulianbe
      @iulianbe 3 роки тому

      @@digiblurDIY
      Thanks, i have seen it. I hoped there was a nice video guide 🙂

    • @digiblurDIY
      @digiblurDIY  3 роки тому

      I am sure there is one somewhere around. I just never looked or paid any attention since I didn't have those.

  • @djph4ntom044
    @djph4ntom044 Рік тому

    haas anyone manage to get the atc sensor data into HA ? i'm getting the switches and PM from tasmota but nothing from the atc. ty

    • @digiblurDIY
      @digiblurDIY  Рік тому +1

      You could probably do it with Blerry scripting on Tasmota or via Esphome Bluetooth proxy

  • @kaugurs
    @kaugurs 2 роки тому

    Does Sonoff Dual R3 have an alternative Tx & Rx connection? I have 1 unit with no pads on the plate so I cant use it with Tasmota.
    Any advice would help

    • @digiblurDIY
      @digiblurDIY  2 роки тому +1

      Yes. The headers on the chip itself.

  • @CassieVanEck
    @CassieVanEck 2 роки тому

    Is there any low voltage pins on this device that can be used for i2C devices?

    • @digiblurDIY
      @digiblurDIY  2 роки тому

      Probably not given the lack of isolation.

  • @finipini
    @finipini 3 роки тому

    @digiblurDIY did the ble sensors appear in tasmota integration in Home assistant ? To me the only way was to put so19 1 and then they appear in mqtt integration.

    • @digiblurDIY
      @digiblurDIY  3 роки тому

      That's the only thing I saw as well as I guess they aren't supported in the integration yet.

    • @finipini
      @finipini 3 роки тому

      @@digiblurDIY ok, but i saw in your previous vídeo (live) that it appears in the integration with an nodemcu esp32 ( or not 🤔). Maybe was other version....

    • @digiblurDIY
      @digiblurDIY  3 роки тому

      See I was thinking it brought them in too during beta but figured maybe I had it backwards. I need to go check and see what changed.

  • @RambozoClown
    @RambozoClown 3 роки тому

    What was the old video where you did the R2?

    • @digiblurDIY
      @digiblurDIY  3 роки тому

      The video was actually on a basic that I was doing but fully adaptable to the dual R2. Before I was doing the video thing I did an R2 with a ton of buttons and even used one of the LED traces as an input.
      ua-cam.com/video/WsatPkC2Hf0/v-deo.html

  • @mahedihassan7611
    @mahedihassan7611 Рік тому +1

    can i use this product to operate my ceiling fan....like on off operation??

  • @chaibas5891
    @chaibas5891 3 роки тому

    I'm trying to find the video about that project on the R2, but I can't seem to find it. Can you please share the link?

    • @digiblurDIY
      @digiblurDIY  3 роки тому

      My hydra video from a couple years ago.

  • @ragnoto
    @ragnoto 2 роки тому

    Got mine flashed using your instructions and template. But for some reason all the power stats for both channels stay at 0. I've got 700W IR Panel connected to channel 1. No hardware switches connected.

    • @digiblurDIY
      @digiblurDIY  2 роки тому +2

      Do you have the new version? github.com/arendst/Tasmota/discussions/10793#discussioncomment-1335467

  • @MAD20248
    @MAD20248 6 місяців тому

    i would assume this is a wifi version, is there any point of flashing these devices with tamsota if they were zigbee, since you can use ha and z2mqtt? one more question how this device will work in case of a complete network failure, like shelly even if your wifi is down when you flip the switch the light will turn on , and how reliable are they ? I'm about to install a bunch of them and confused between shelly and sonoff

    • @digiblurDIY
      @digiblurDIY  6 місяців тому +1

      You don't flash things that are zigbee usually, there are sometimes OTA updates for them but they are local by nature.
      Really kind of a toss up between the two, Shelly does have the pin headers usually for open source firmware

  • @kza691
    @kza691 2 роки тому

    Would be nice if they could individually monitor each of the AC outputs power usage instead of the total consumption

    • @digiblurDIY
      @digiblurDIY  2 роки тому

      I think now it does? or if not you can go ESPHome to keep those totals on the device.

  •  2 роки тому

    Is it possible to toggle switches based on BLE sensor data?

    • @digiblurDIY
      @digiblurDIY  2 роки тому

      Yes, if the sensor is supported but that could also be done via Berry script too.

  • @calebjpryor
    @calebjpryor 3 роки тому

    Capable of stuff like pseudo room assistant implementation?

    • @digiblurDIY
      @digiblurDIY  3 роки тому

      If you carry around a bluetooth tracker or get one implanted somewhere. DOH!

  • @stouph95
    @stouph95 2 роки тому

    Hello, I am French (translation by google), I wanted to know if it is possible to have: energy today, energy yesterday and energy total for each relay (separately).
    thank you

    • @digiblurDIY
      @digiblurDIY  2 роки тому

      I do not think that is supported in Tasmota but I do know this power monitoring chip is supported by ESPHome as well now.

    • @stouph95
      @stouph95 2 роки тому

      @@digiblurDIY Merci pour votre reponse et bonne année .

  • @alin936
    @alin936 3 роки тому

    Hi, I followed the tutorial and managed to make it work without the power monitoring. I used the Tasmota Template in the description. I have the same rev board as you do. Any idea ?

    • @digiblurDIY
      @digiblurDIY  3 роки тому

      I would try a reflash? Did you get both relays?

    • @digiblurDIY
      @digiblurDIY  3 роки тому

      You do need to make sure you flash the latest development version to get the power monitoring like I stated. This bin link works, I just updated mine to it a bit ago. ota.tasmota.com/tasmota32/tasmota32-bluetooth.bin

    • @tomassrubar4679
      @tomassrubar4679 2 роки тому +1

      si i just found out, that i have revision v2.0 where should be used this template: {"NAME":"Sonoff Dual R3 v2","GPIO":[32,0,0,0,0,0,0,0,0,576,225,0,0,0,0,0,0,0,0,0,0,3200,8128,224,0,0,0,0,160,161,0,0,0,0,0,0],"FLAG":0,"BASE":1}

  • @AbrahamRebello
    @AbrahamRebello 2 роки тому

    Can i use it to switch between mains supply and solar supply as output ?

    • @digiblurDIY
      @digiblurDIY  2 роки тому

      No. It is not a dry contact relay.

    • @AbrahamRebello
      @AbrahamRebello 2 роки тому

      I already have a 2 way switch to do that operation and it works well as of now but it manuel

  • @fr33soulwebmaster74
    @fr33soulwebmaster74 3 роки тому +1

    I want to use the R3 in Home Assistant, i need to flash the firmware anyway and than i can recognize it in HA?

    • @digiblurDIY
      @digiblurDIY  3 роки тому

      That's what I did as I don't do the cloud thing.

    • @fr33soulwebmaster74
      @fr33soulwebmaster74 3 роки тому

      @@digiblurDIY i want to use R3 to open/close a window shutter, so there's a way with TASMOTA to configure it as a motor device? i want that Home Assistant will recognize it like a motor..

    • @digiblurDIY
      @digiblurDIY  3 роки тому

      tasmota.github.io/docs/Blinds-and-Shutters/

    • @fr33soulwebmaster74
      @fr33soulwebmaster74 3 роки тому

      @@digiblurDIY looks like you have an answer for everything! thank you so much

    • @digiblurDIY
      @digiblurDIY  3 роки тому +1

      Except for women...

  • @ronm6585
    @ronm6585 3 роки тому

    Thanks Travis. How is that new desk?

    • @digiblurDIY
      @digiblurDIY  3 роки тому

      As you can see I made a little modification to it. That black shiny grain top just wasn't going to work well with a camera pointed at. Inadvertently came to the conclusion I'll never have a smooth work bench/desk again. There's no going back.

    • @ronm6585
      @ronm6585 3 роки тому

      @@digiblurDIY I hear you. 😊

  • @pedrohenriquepeixoto3964
    @pedrohenriquepeixoto3964 3 роки тому

    Can it do 3-way setups?

    • @digiblurDIY
      @digiblurDIY  3 роки тому

      Some types yes as it has mains AC on the switch inputs.

  • @jorgenknox9286
    @jorgenknox9286 2 роки тому

    Tried flashing 4 off R3's, soldering wires onto PCB. One worked. Other 3 'no go" Not sure why. Has anyone had this experience...

    • @digiblurDIY
      @digiblurDIY  2 роки тому

      I haven't heard of this myself. Faulty USB TTL adapter? The ESP32 does take a little more power.

  • @Abbici
    @Abbici 3 роки тому

    Hallo... Why doesn't use ESP32 on TX Series too?

    • @digiblurDIY
      @digiblurDIY  3 роки тому

      Not familiar with those.

    • @Abbici
      @Abbici 3 роки тому

      @@digiblurDIY 😭

    • @Abbici
      @Abbici 3 роки тому

      Thankyou

  • @mattvipond3840
    @mattvipond3840 3 роки тому +1

    Bracket looks like it would mount on DIN rail. Not common in U.S. residential applications.

    • @digiblurDIY
      @digiblurDIY  3 роки тому

      Yeah. That was my only thought as I wouldn't mount it on the wall here. Only DIN rail stuff I did was custom telemetry stuff offshore.

  • @Graysonstillwell
    @Graysonstillwell 2 роки тому

    Hello, i watch and enjoy your channel. First comment :). I followed this instruction and have 3x Sonoff Dual R3 running at my house and a number of other sonoff devices running tasmota. I found only recently the Sonoff Dual R3 has become very laggy, (All other sonoff devices are going well). I have tried factory resetting, updating to the latest firmware, downgrading to an older firmware but nothing seems to fix it. The symptoms are when a light switch is turned on, 3-5 seconds later the light turns on, Very unresponsive webpage. (Not responding after a few refresh then it might come back). If you have any tips of suggestion it would be much appreciated, It almost feels like the hardware is damaged somehow? thanks Grayson

    • @digiblurDIY
      @digiblurDIY  2 роки тому

      Welcome and thanks! Using Tasmota?

    • @Graysonstillwell
      @Graysonstillwell 2 роки тому

      @@digiblurDIY just an update. I managed to solve this. I ended up replacing to a new Sonoff dual R3 to no success, i then realized the problem must of been somewhere else, Then i looked into my network, Turned out to be only a problem when on that wifi VLAN. So internal network issue, Not tasmota, Thanks

    • @digiblurDIY
      @digiblurDIY  2 роки тому

      Ahhh...yeah if you block stuff like DNS, NTP, etc they get laggy trying to connect to the time server and/or DNS. Point them to a local service and they will be happy.

  • @pratikaa3982
    @pratikaa3982 10 місяців тому

    Hi, Which method should I use now to flash tasmota to Dual R3?

    • @digiblurDIY
      @digiblurDIY  10 місяців тому +1

      What firmware?

    • @pratikaa3982
      @pratikaa3982 10 місяців тому +1

      @@digiblurDIY The devices will arrive today. Will update once I get them.

    • @pratikaa3982
      @pratikaa3982 10 місяців тому

      Sonoff firmware : E32-2SW-P0 version 1.4.0.
      Updates are available. But I did not update it.
      The Dual R3 board version is 2.0

    • @digiblurDIY
      @digiblurDIY  10 місяців тому

      I was asking if you were doing esphome or Tasmota

    • @pratikaa3982
      @pratikaa3982 10 місяців тому

      @@digiblurDIY Tasmota.. Sorry for the confusion 😁

  • @evertythingtechrelated9715
    @evertythingtechrelated9715 3 роки тому

    anyone got power monitors working with esphome?

    • @digiblurDIY
      @digiblurDIY  3 роки тому +1

      I haven't seen any movement sadly - github.com/esphome/feature-requests/issues/1151

    • @evertythingtechrelated9715
      @evertythingtechrelated9715 3 роки тому

      @@digiblurDIY I went with the shelly 2.5 should be here tomorrow. I need some single switches I might go with sonoff then.

  • @GijsEnde
    @GijsEnde 3 роки тому

    i just use the pin part of the dupon cable to solder to the pads makes it much easier

    • @digiblurDIY
      @digiblurDIY  3 роки тому +1

      Ouch. I usually mention to not do that. It's like gluing a pry bar to a piece of paper.

  • @theunderdog2205
    @theunderdog2205 3 роки тому +1

    First

  • @TheHellis
    @TheHellis 3 роки тому +1

    It's painful to see such a beautiful table being used without protection with soldering.

    • @digiblurDIY
      @digiblurDIY  3 роки тому

      Table top cost a little less than $30 and is intended exactly for this. It was a black kind of faux grain wood, super shiny. Horrible for video cameras with the massive glare. I tried a couple mats but they have glares as well and found these boards and modified my table, I fell in love with the look as well but then one big surprise hit me by accident. I'll never use a smooth work bench/table area again. It's amazing to use for projects and things just grip, don't slide or roll off. Don't worry, I bought extra boards too for replacement needs since they were so cheap at the hardware store.

    • @TheHellis
      @TheHellis 3 роки тому

      @@digiblurDIY I understand it was bought for the purpose and as an extra bonus it looks good in the video.
      But it's still too beautiful for me to work on.

  • @Rickr522
    @Rickr522 3 роки тому +1

    Ear wax for flux... Who woulda thought...

    • @digiblurDIY
      @digiblurDIY  3 роки тому +1

      And for the record, I have not tried it yet.

  • @tablatronix
    @tablatronix 3 роки тому

    People put this stuff in their house? afaik no sonoffs are UL listed yet are they ? eeeehhh no thanks

    • @digiblurDIY
      @digiblurDIY  3 роки тому +3

      It's no longer 1985 McFly. UL isn't what it used to be and even insurance companies can care less about it. Almost as bad as some of these FCC certs you see on products.

  • @nexes-forty-four2381
    @nexes-forty-four2381 3 роки тому

    First