How To Flash Tasmota on the Martin Jerry Smart Switch plus their new Dimmer - Live Stream

Sdílet
Vložit
  • čas přidán 6. 09. 2024
  • Unboxing the Martin Jerry Smart Switch (and bonus Dimmer Switch), Flashing Tasmota, Setup and configuration in Home Assistant. Along with the bonus Martin Jerry Dimmer Switch that could be my new favorite mains dimmer.
    Martin Jerry Switch - amzn.to/2qowzv3
    Martin Jerry Dimmer - amzn.to/2PyZASV
    Martin Jerry Dimmer Info
    =-=-=-=-=-=-=-=-=-=-=-
    Check out the State of the Dimmer Video for the completed firmware/rules - • State of the Dimmer - ...
    Firmware and Instructions for the Dimmer: github.com/dig...
    Products I use and recommend - www.amazon.com...
    Come chat with us!
    -=-=-=-=-=-=-=-=-=
    Discord - / discord
    Patreon - / digiblurdiy
    Martin Jerry Switch Configuration Update:
    =-=-=-=-=-=-=-=-=-=-=-
    GPIO4 - Inverted Red LED
    GPIO5 - Inverted Blue LED
    GPIO12 - Relay1
    GPIO13 - Button/Switch1
    I have mine setup as follows for long press actions and LED toggling:
    =-=-=-=-=-=-=-=-=-=-=-
    GPIO4 = Relay3i
    GPIO5 = Relay2i
    GPIO12 - Relay1
    GPIO13 - Switch1
    Setoption32 7
    Switchmode1 5
    Rules for longpress and LED toggles:
    =-=-=-=-=-=-=-=-=-=-=-
    Rule1 on switch1#state=2 do POWER1 TOGGLE endon on switch1#state=3 do backlog POWER2 TOGGLE; publish cmnd/KLD-BenchFan/POWER TOGGLE; POWER2 TOGGLE endon
    Rule2 on power1#state=0 do backlog power2 ON; power3 OFF endon on power1#state=1 do backlog power2 OFF; power3 ON endon
    Don't forget to turn your rules on with
    rule1 1
    rule2 1 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.

Komentáře • 79

  • @AlexCottle
    @AlexCottle Před 5 lety +1

    Hey, just wanted to say, thank you so much for this video. I've used the tuya-convert method for a lot of my switches (MJ) but the last four I bought had updated firmware, or something since they never took the hack. So I resolved to solder them up. I referenced this video more than once along the way. I successfully flashed those 4, soldering a 6 pin to those prefilled holes for ease of use. Today I received 3 of the new MJ 3 way smart switches (non dimmers). I was apprehensive since the 3 way dimmers use a different chipset, but these appeared to use the same chip as the non 3ways. I had to solder them the way you did in this video because the circuit board was revised and they removed the breadboard holes, they also had a 2M flash, but i was able to successfully flash one of them to Tasmota, thanks to all the info here. thanks again!

    • @digiblurDIY
      @digiblurDIY  Před 5 lety

      Interesting that they changed the design. That would explain the new firmware. Did you happen to take any pics?

    • @AlexCottle
      @AlexCottle Před 5 lety

      @@digiblurDIY what's weird is that the last 4 normal switches physically were the same, just wouldn't accept over-the-air tuya-convert. these switches wouldn't either, which i figured, but i was a little bummed that they removed the solder holes for the breadboard.
      I did: imgur.com/a/YPdNzik

    • @digiblurDIY
      @digiblurDIY  Před 5 lety

      I see they moved the power regulator down to the switch itself too and feed the front panel 3v3 volts. I saw they did remove those via holes for RX/TX too though.

  • @Beardofy
    @Beardofy Před 3 lety +1

    This video has finally helped me understand how to find the correct GPIOs and set them to accomplish my goal. I have now flashed several MJ-SD01 & MJ-S01that work perfectly with custom commands. I'm currently not even using an MQTT broker but instead, I send Wed Requests to other devices including unflashed Shelly's that are still hooked up to the cloud. I have my strange reasons for doing it this way for now but I will eventually be migrating to HA after moving. Thank You!
    Also, I swapped Relay3i & Relay2i so the red is on when the switch is off.

    • @digiblurDIY
      @digiblurDIY  Před 3 lety

      That might be kind of dated now with the new features. You can use the ledpower commands for that now. www.digiblur.com/p/martin-jerry-switch-mj-s01.html

  • @robertarevalo6251
    @robertarevalo6251 Před 5 lety +1

    got mine working using this config. using rule 1 and 2 also Setoption32 7
    Switchmode1 5
    GPIO4 - Led 1
    GPIO5 - Led 2
    GPIO12 - Relay1
    GPIO13 - Switch1
    Toggle on = red led
    Toggle off = purple led

  • @CarltonDodd
    @CarltonDodd Před 5 lety

    I bought several of the MJ switches and dimmers on your recommendation. I've watched this video three times (admittedly, skipping around for two), and learned a lot. I've got my first one flashed with your fork and installed. Now I'm just trying to figure out the MQTT commands (topic) for dimming.
    Thanks for all the info!

    • @digiblurDIY
      @digiblurDIY  Před 5 lety

      Use the template I have listed on the fork page and as long as you have it in the light section of your configuration it should work with ease.

    • @CarltonDodd
      @CarltonDodd Před 5 lety

      @@digiblurDIY I'm working in Node-Red and MQTT to integrate with Alexa (haven't started using HA yet). Found the topic in the YAML, and I've got it working great! Thanks yet again!
      Next, I might play with the LED states a bit. The first dimmer is in my media room, and I'm not sure if I want the LEDs to stay on.

  • @earshad143
    @earshad143 Před 3 lety

    Travis, I love your videos and instructions on home automation.
    I configured few dimmer flashed using your template.
    After over 8 months my firewall detected the dimmar (tasmota) trying to access an external IP and marked as trojan. Luckily had all my devices in a separate vlan with no internet access.

    • @digiblurDIY
      @digiblurDIY  Před 3 lety +1

      The only external they use is the ntp pool that rotates. You can change that to a local IP. Thanks for the comments!

    • @earshad143
      @earshad143 Před 3 lety

      @@digiblurDIY Thanks for the response. Will update that.

  • @OldCurmudgeon3DP
    @OldCurmudgeon3DP Před 5 lety +1

    I think 3D printers can go down to 0.1mm, but it might take a pen drill to clean up the rx\tx pair. I need to acquire one 1 of these days.
    Dad taught me never to tighten the 1st screw until all of them were started.👍

  • @unstoppable008
    @unstoppable008 Před 5 lety +1

    Just ordered one of the dimmers today! Going to try and set it up using your video. Thanks!

    • @digiblurDIY
      @digiblurDIY  Před 5 lety

      Make sure and check out my State of the Dimmer video as it has the updates and such on this dimmer.

    • @unstoppable008
      @unstoppable008 Před 5 lety

      @@digiblurDIY First off, thanks for making this video. Guys like you are leading the way for relative novices such as myself to really unlock the potential of our devices. I've been learning Python and C+ over the past year, but I am just now getting into smart home tech and Home Assistant, so a lot of this stuff is very new to me. This was the first device I've ever tried to flash Tasmota on, and I'd say it went relatively well. I pretty much followed through the video pausing to look at your configuration towards the end. The web interface for the light toggle and dimming works, but when I press the physical toggle switch the lights turn on for a moment, then back off. Didn't even get to setting the rules for the + and - dimming buttons. I've tried to piece together a solid step-by-step instruction from some of your comments here, on reddit, as well as your github page and I'd like to try again this weekend.
      So would the correct sequence of operations be:
      1. Flash the ESP with your most recent MJDimmer_6310c.bin file from your github repo (github.com/digiblur/TuyaDimmer-Tasmota)
      2. Use Termite to set up my Wifi and MQTT information.
      3. Install switch, access Tasmota through assigned local IP address, and change the module to MJ-SD01 Dimmer.
      4. Enter the backlog command mentioned in your repo README.md into the Tasmota console.
      Sorry to be long-winded, but I just want to make sure I get everything right this time!

    • @digiblurDIY
      @digiblurDIY  Před 5 lety

      Thanks for the great comments. Make sure you flash the bin file from this repo and follow the readme. github.com/digiblur/Sonoff-Tasmota
      You can change the bin using the GUI in Tasmota. Make sure you have all the rules applied that are shown in the readme as it sounds like your switchmode didn't get applied correctly. You can break them up if needed in separate commands. See this issue thread: github.com/digiblur/Sonoff-Tasmota/issues/1

    • @unstoppable008
      @unstoppable008 Před 5 lety +1

      @@digiblurDIY Thanks for the help! I'll give it a shot this weekend. Really enjoying this home automation community!

    • @digiblurDIY
      @digiblurDIY  Před 5 lety

      Did you get this going? If you still have issues feel free to hit me up on email or the discord link on the channel page. Will walk through some steps to figure out the issue.

  • @garynolte1054
    @garynolte1054 Před 3 lety +1

    I have a newer Martin Jerry dimmer with a STC15F204EA chip in it. Couldn't get it to flash grounding pin 11 so I thought I would ask.

    • @digiblurDIY
      @digiblurDIY  Před 3 lety

      Which model? I know they have some flashing documents on their main support site.

    • @garynolte1054
      @garynolte1054 Před 3 lety

      @@digiblurDIY STD01

    • @digiblurDIY
      @digiblurDIY  Před 3 lety

      Might have to look up that chip to find the reset line

    • @garynolte1054
      @garynolte1054 Před 3 lety

      @@digiblurDIY Yep! I started there. Keep in mind I only know what I learned here and a few other places. That chip has two pins that 'look' like a reset - Pin 11: P0.0/RST/SYSelkO and Pin 23: RSTOUT_LOW/P2.0.

    • @digiblurDIY
      @digiblurDIY  Před 3 lety

      It is going to be the RST one in my experience.

  • @romanykemp9042
    @romanykemp9042 Před 5 lety

    Travis, just FWITW comment. I just received several of the non-dimmer MJ switches (MJ-501) switches and configured the generic template as you had listed. I had to move "switch1" from GPIO0 to GPI013 - otherwise the manual switch did not work. Other than that change your vid was spot on. Perhaps they changed something in the last 2 months....

    • @digiblurDIY
      @digiblurDIY  Před 5 lety

      I will have to check my model numbers as I also got a couple in. I did update the description of the video with the pins and rules I used for these switches.

  • @chelming
    @chelming Před 2 lety +1

    Thanks!

  • @bodeay
    @bodeay Před 5 lety

    On the switch that you cover in the 1st part of your video, if you want the button on the front to toggle On/Off then you need D7 GPIO13 Led1i = 17 Button1

    • @digiblurDIY
      @digiblurDIY  Před 5 lety

      Reminds me I need to update the info on this with the screenshots and rules I have setup for long press and LED blinks. Thanks!

    • @axiom000
      @axiom000 Před 5 lety +1

      @@digiblurDIY Great video! Just flashed an MJ regular switch. Can you share your final production configs for this switch?

    • @canonguy9448
      @canonguy9448 Před 5 lety

      +1 was having issues with the button on the switch itself toggling the relay. once setting D7 to Button1, the device works as expected. Thanks!

    • @digiblurDIY
      @digiblurDIY  Před 5 lety +1

      I updated the description of the video with the info.

    • @axiom000
      @axiom000 Před 5 lety

      @@digiblurDIY Thanks Travis!

  • @TopherHax
    @TopherHax Před 4 lety

    Been watching your videos for a couple weeks and just got one of these switches to play with. Flashed it with tasmota and all is working except I can't seem to get the LEDs to behave like in your video. I tried copying and pasting the rule from the dimmer version Martin Jerry switch but still no go. Currently it's red when off and no LED when it's on.

  • @TheRealAnthony_real
    @TheRealAnthony_real Před 5 lety +2

    Interesting ... My MJ dimmer looks totally different in respect of relay .. not black but white .. even more interesting is I've flashed 2 of these because I thought I damaged the first one and the esp works fine posts to the mqtt server however no clicks or lights on the switch with the tasmota dimmer ...
    Any input more than welcome .

    • @digiblurDIY
      @digiblurDIY  Před 5 lety +1

      I just flashed 4 of them this weekend and installed them. Did you follow the instructions with the firmware and backlog commands?

    • @TheRealAnthony_real
      @TheRealAnthony_real Před 5 lety +1

      @@digiblurDIY they work great now after the link you sent me on the other post .
      Thanks

    • @digiblurDIY
      @digiblurDIY  Před 5 lety +1

      A follow up video is in the queue as I recently updated the base on them as well.

    • @TheRealAnthony_real
      @TheRealAnthony_real Před 5 lety +1

      Can't wait to see it !

  • @NoName-pp2vt
    @NoName-pp2vt Před 3 lety

    Am i able to put a motion sensor with this type of smart switch? Just like the one you did with your bathroom switch video?

  • @OldCurmudgeon3DP
    @OldCurmudgeon3DP Před 5 lety

    Maybe I should try a stream sometime. I've been told I talk just to hear the rocks rattle around in my head.

    • @digiblurDIY
      @digiblurDIY  Před 5 lety +1

      I ramble too as you probably already know. Shows you how much I cut when doing an actual video.

  • @OldCurmudgeon3DP
    @OldCurmudgeon3DP Před 5 lety

    Looks like an SSR in the dimmer & a thermister(?) to monitor the mosfet.

    • @digiblurDIY
      @digiblurDIY  Před 5 lety

      I think I hear it clicking though but I might be confusing it with another dimmer. Now you have me curious to go back and check.

    • @OldCurmudgeon3DP
      @OldCurmudgeon3DP Před 5 lety

      @@digiblurDIY could be. Just looks really thin compared to most pcb relays and a lot like SSRs I see on amazon.

  • @OldCurmudgeon3DP
    @OldCurmudgeon3DP Před 5 lety

    Live stream comments are missing on the replay. Maybe it's just me again.
    Recommend turni,g off the steady shot feature. Makes the image wobble like a funhouse mirror.

    • @digiblurDIY
      @digiblurDIY  Před 5 lety +1

      Dang, I cut first and last piece of dead air off and it looks like it kills the live comments. Just found this out in the CZcams help. Looks like I won't be doing this again. Sorry about that.

    • @digiblurDIY
      @digiblurDIY  Před 5 lety +1

      Steady shot? I don't recall turning that on anywhere. You might be seeing the sway from the camera mounted on my light/magnification arm?

  • @romanykemp9042
    @romanykemp9042 Před 5 lety

    I order a half dozen or so of the MS S01 switches about a month ago - finally got around to try to OTA flash them. Did not work - had to do it via the serial programmer. These switches are pretty easy to get to the board so straight forward...

    • @digiblurDIY
      @digiblurDIY  Před 5 lety

      What are ms s01? The Martin Jerry ones?

    • @romanykemp9042
      @romanykemp9042 Před 5 lety

      Yep.... purchased these around the first of Feburary...
      www.amazon.com/gp/product/B07GSTJ8TV/ref=ppx_yo_dt_b_asin_title_o03_s00?ie=UTF8&psc=1

    • @digiblurDIY
      @digiblurDIY  Před 5 lety

      I've done about 7 or 8 of those in the past month or two with the OTA flash. Did you by chance upgrade the Tuya firmware on them that blocks the OTA?

    • @romanykemp9042
      @romanykemp9042 Před 5 lety

      No - they were never connected to my network so never had an opportuntity to call home. So Tuya has updated their code to block OTA? That sucks...

  • @BalvantPatel
    @BalvantPatel Před 5 lety

    Great Video! I bought the switch Smart Dimmer Switch by Martin Jerry and flashed with Tasmota 6.3. Configured GPios as per your video and added rules etc. Everyting works except Switch2 and LED 5 i.e. TX and RX GPIOs. The SerialLog is o/off. Console shows to output when Up Button or Button 5 is clicked. Any idea why RX and TX GPIO are not working?

    • @BalvantPatel
      @BalvantPatel Před 5 lety

      Never mind! I reset the Tasmota and reconfigured, It works! (I had experimented as Tuya dimmer, that had GPIO Rx Tx configured differently which was messing up Generic module)

    • @digiblurDIY
      @digiblurDIY  Před 5 lety

      A little ahead of the game as there are some changes I've had to make with Tasmota and its not in the mainstream of things yet. But here are the instructions I've sent a couple of folks on the facebook groups. I'm using it myself in a kitchen area with family using it as well.
      Console command to setup in webgui (make sure they all take!), you'll also need to set the MJ DImmer template as the device type in the Tasmota GUI configuration. Bin file below.
      backlog rule1 on switch3#state=2 do dimmer + endon on switch2#state=2 do dimmer - endon on switch2#state=3 do dimmer 1 endon on switch3#state=3 do dimmer 100 endon; rule1 1; setoption32 10; switchmode1 6; switchmode2 5; switchmode3 5
      github.com/digiblur/TuyaDimmer-Tasmota/raw/master/MJDimmer_6310c.bin

  • @bizhostnc196
    @bizhostnc196 Před 4 lety

    Did you get my forum post on HomeAssistant? I couldn't get the web GUI on your C revision image made for Martin Jerry switch to load for me. The 192.168.4.1 webserver wouldn't respond. I am back on tasmota and wondering what changes were made on your firmware bin..and if you can send me source to program my wifi settings.

    • @digiblurDIY
      @digiblurDIY  Před 4 lety

      I would just flash it via serial if you get locked out. No soldering needed. www.digiblur.com/2019/08/tuya-convert-whats-next-solderless.html

    • @digiblurDIY
      @digiblurDIY  Před 4 lety

      Also the dimmer fork code is here. github.com/digiblur/Tasmota