Switch your 3D printer on and off with Octoprint and Tasmota - I wish, I had this YEARS AGO!

Sdílet
Vložit
  • čas přidán 14. 05. 2020
  • Switch your 3D printer on and off with Octoprint and Tasmota - I wish, I had this YEARS AGO!
    In this video, I am explaining how to use Octoprint and Tasmotized/Tasmota switches like the Sonoff S20 or Sonoff Basic (any smart plug or switch that can run Tasmota firmware) to switch your 3D printer on and automatically off when a print is done.
    If you've missed my guide how to install the Tasmota firmware on SonOff switches, watch it here: • How to install Tasmota...
    OCTOPRINT PLAYLIST: • OctoPrint
    3D PRINTED PARTS
    Test square: www.thingiverse.com/thing:394...
    HARDWARE AND TOOLS
    🛒 Creality Ender 3 - geni.us/ender3
    🛒 Anet A8 - geni.us/aneta8
    🛒 Raspberry Pi 4 4GB Starter Kit - geni.us/raspi4kit
    🛒 Raspberry Pi 3 Model B+ Kit with Case, Heatsinks and 2.5 Power supply - geni.us/raspi3bpluskit
    🛒 Electrical Tape - geni.us/simplytape
    🛒 Sandisk Extreme 32GB MicroSDHC Card (faster) - geni.us/sandisk32ex
    🛒 Sandisk Ultra MicroSDHC card 32GB (cheaper but slower) - geni.us/sandisk32g
    LINKS
    Tasmota project - github.com/arendst/Tasmota
    Tasmotizer - github.com/tasmota/tasmotizer
    THE PRINTERS I USE: kit.co/danielcrosslink/the-3d...
    MY MERCH: crosslink.io/shop
    BECOME A PATRON: / crosslink
    CHAT ON DISCORD: / discord
    BUSINESS INQUIRIES ONLY (OR IF YOU WANT TO SEND SOMETHING) - DANIEL@CROSSLINK.IO
    FOLLOW ME:
    INSTAGRAM - / danielcrosslink
    TWITTER - / danielcrosslink
    FACEBOOK - / danielcrosslink
    WEBSITE: crosslink.io
    The Music I use: crosslink.io/es, AMAZING for CZcamsrs!
    GEAR USED
    kit.co/danielcrosslink/my-vid...
    Disclaimer: As an Amazon Associate I earn from qualifying purchases.
  • Věda a technologie

Komentáře • 107

  • @jneilliii
    @jneilliii Před 4 lety +12

    I'm glad you guys are enjoying my power plugins.

    • @Crosslink3D
      @Crosslink3D  Před 4 lety

      Great to have you here!

    • @SimiTravels
      @SimiTravels Před 3 lety

      i'm testing it now with another power plugin, i hope it works !!!

  • @jorgdalka5290
    @jorgdalka5290 Před rokem

    Auch nach gut 2 Jahren immer noch ein guter Clip

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

    This is perfect and just what I was looking for! Thanks for sharing!

  • @cbht3d
    @cbht3d Před 11 měsíci

    amazing guide! just what i was looking for

  • @WoutScheper
    @WoutScheper Před 2 lety

    Works perfect! Was quite annoying setting tasmota up for me with my delock plug that has tasmota pre installed since it didnt work properly but the guys from the tasmota discord were very helpful! The fact it turns the printer on before a print is amazing haha.

  • @Cheeky_Goose
    @Cheeky_Goose Před 2 lety +2

    I'm just starting to learn about this kind of stuff and I honestly have no idea what I'm doing. Especially because I've never run my own linux server before, but I appreciate this channel. I would have never been able to even install Octoprint to begin with if it wasn't for CZcams channels like this one.

  • @TheDasFaust
    @TheDasFaust Před 4 lety +3

    I have a small channel on CZcams, but you are my go to for a lot of things that make me go "Hmmmm". I appreciate your work a great deal.

  • @w3k11
    @w3k11 Před 2 lety

    Very nice guide. Thank you.

  • @raamoon87
    @raamoon87 Před rokem

    Worked like a charm, I added the sonoff inside the power supply support and made the PC switcher turn on and off the sonoff, it's just perfect.

  • @jchristensen2022
    @jchristensen2022 Před 4 lety

    Hacking the usb cable...BRILLIANT! Thanks so much for the info.

  • @robbys929
    @robbys929 Před 4 lety +1

    You deserve more subscribers

  • @GeneralHowToTutorials
    @GeneralHowToTutorials Před 2 lety

    Very cool. I will be looking into getting a sonoff. I can start using the tape over the usb power today though. Thanks

  • @elmahjoubchanna8886
    @elmahjoubchanna8886 Před 3 lety

    It's a good idea i will try it asap.
    Thanks.

  • @ferd352
    @ferd352 Před 4 lety +1

    Awesome tip about Cura, I missed that one but not any more. Great video as well, but a small word of warning about the auto power off - I was reconfiguring my Ender and went to unload the filament, then just as it started to unload the printer switched off. Unfortunately it was the plugin. So although it's a great feature, just be aware of this or you could lose any changes you when the power gets cut. Still, you can't beat being able to remotely set off a print a few hours before leaving the office to get home and gain some printing time.

    • @Crosslink3D
      @Crosslink3D  Před 4 lety +1

      Great hint! Maybe extend the auto switch off timer to wait longer. I just set it to 5 minutes for testing but probably will increase that to 10-15 minutes

  • @Ohm7111
    @Ohm7111 Před 4 lety +1

    Looks like your Ender 3 have lots of printed mods. Can you please make video about what mods you have and why you choosed them? Thank you.

  • @romanletnansky1828
    @romanletnansky1828 Před rokem

    Very nice video. I am an amateur with the installation of octoprint and Tasmota. I was able to install Octoprint and connect it to the printer. Tasmota also works for me via mobile or from the web interface. When setting asmoty in Octoprint, I don't have the auto off box ticked, so it doesn't turn off after printing. I don't know how to deal with it.

  • @lassemortensen6059
    @lassemortensen6059 Před 3 lety

    Great video. Is it possible to turn on the printer via a remote controlled client like Astro Print?

  • @PhG1961
    @PhG1961 Před 4 lety +1

    Nice video !

  • @EPDrawing
    @EPDrawing Před 3 lety

    thanks a lot i neded this. I am using TP-Link version of the smart plug but the concept is the same.
    one question: Do you have any tutorial on how to connect remotely out from your wifi to check the status???? i have tried the web browser and a new phone app that i just installed "printoid".... but for some reason i havent manage to make it work. I went for a port fowarding solution.... with no luck so far ;P

  • @StinkyWizzleTits
    @StinkyWizzleTits Před 2 lety

    So will this only work with flashed smart plugs?

  • @jensschroder8214
    @jensschroder8214 Před rokem

    You can also switch the power supply for Pi via the Sonoff. Properly configured, Octoprint can shut down the Pi at the end. After a minute, the power to the Pi and the printer will turn off. When everything is off, only the Sonoff's tiny power supply is connected to the mains power.
    The only downside is that you have to use the IP or hostname of the switch to turn it on.
    Or you configure it script with wget -IP-Sonoff- Power-on- that it does.

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

    I've done this, and am thankful for your explanation. However, I learned today that you can actually control your printer's PSU through Raspberry Pi's GPIO pins. No need for a smart plug.

    • @Ryezn5057
      @Ryezn5057 Před 2 lety

      Any guides on how to do this?

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

      @@Ryezn5057 Sure there's loads of documentation on Klipper. Haven't done it myself though. You'll need to connect a couple of wires to the Raspi

    • @allesnichts8244
      @allesnichts8244 Před 2 lety

      @@Ryezn5057 look at youtube from „teaching tech“

  • @UcantBeSerious03
    @UcantBeSerious03 Před 3 lety

    tks

  • @DIYGarage_SoCal
    @DIYGarage_SoCal Před 6 měsíci

    Do you normally leave your pi on all the time? I turn them off when I'm not using the printer.

  • @triplettjon
    @triplettjon Před rokem

    Most switches are 10 amps i plugged mine in and it blew it what amps are you using?

  • @MR-vs8md
    @MR-vs8md Před 4 lety +1

    Can is use a shelly 1 with this plugin or is there even one for it? :)
    Currently I always switch my printer off with one that I have installed behind the socket for it.
    I haven't installed octoprint yet, so unfortunately can't try it myself.

    • @Crosslink3D
      @Crosslink3D  Před 4 lety

      You can flash Tasmota firmware to the Shelly 1, so it should be possible to use this with the Octoprint plugin.

  • @P8FPV
    @P8FPV Před 2 lety

    I'm only just getting into octoprint seems cool so far first day using a s8 and my laptop i can see my printer 😅😉

    • @Crosslink3D
      @Crosslink3D  Před 2 lety

      Nice! Keep going, there is so many cool Plugins 😁

  • @mikeneron
    @mikeneron Před 4 lety +1

    I have 2 printers running on 1 Pi, but only 1 is connected to a TP Link. When I messed around with the TP Link plugin and turned on the setting for thermal runaway protection, the printer that didn't have the TP Link actually stopped dead midprint while the bed and nozzle stayed at temperature. It actually started melting the filament and eventually causing some smoke. Luckily I was around when it happened. So I turned off the thermal runaway option in the TP Link plugin as I have that enabled in the firmware anyways. Just wondering if you ran into anything similar if you have 2 printers connected to one Pi? The plugins seem to get shared to both printers so something to watch out for.

    • @Crosslink3D
      @Crosslink3D  Před 4 lety

      I am giving every printer his own pi at the moment, so probably this issue will not happen to me but good shout-out for everyone who wants to run multiple printers with one Pi.

  • @asantosjr
    @asantosjr Před 4 lety +1

    Hi Daniel! Great video! This addition is really a must. I did in my Anet, but when I turn on the Anet using Tasmota the Sonoff basic device loses conection with WiFi. If I press the button on Sonoff the Anet turn off and the Sonoff get connection again... Have you had this problem also? Do you know what could be wrong? Thanks!

    • @Crosslink3D
      @Crosslink3D  Před 4 lety

      Maybe the Anet power supply creates some really heavy disturbances in the wifi spectrum. I never had this but I am also not using the PSU that comes with it. Replaced all with better ones that are certified

    • @asantosjr
      @asantosjr Před 4 lety

      Crosslink actually I'm not using almost nothing from original Anet anymore. I did the full upgrade to BLV MGN mod, Makerbase SBASE board and upgraded PSU too.

    • @asantosjr
      @asantosjr Před 4 lety

      I just replaced my 12V 30A PSU for other that I had here, but with only 20A and the problem is solved!

  • @crazylolsbg
    @crazylolsbg Před rokem

    i have the exact same power messurment device and i looks the same. :)

  • @skypix6553
    @skypix6553 Před 4 lety +1

    Quik tip put in some code in cure to let the nozle first cool down then switch of printer. Awesome i have done simmilar with cura code to trigger a switch that run on arduino to sw of an reley

    • @Crosslink3D
      @Crosslink3D  Před 4 lety

      Yes, this is the temperature setting in the plugin. Default is to wait until all temps reach 50 deg Celsius or below before shut off

  • @victoryavar
    @victoryavar Před 3 lety

    Awesome video! How can I know my plug ip? Thanks!

    • @Crosslink3D
      @Crosslink3D  Před 3 lety

      if you didn't give it a network name in the inital setup, you can go to your ip router's configuration page and find the plug in the list of connected devices. Unfortunately, this will be looking different for every type of IP router.

  • @certified-forklifter
    @certified-forklifter Před 4 lety +1

    awesome video! i do like these switches, some of them can also be integrated to home-assistant :)

    • @Crosslink3D
      @Crosslink3D  Před 4 lety

      Yes, it's very easy, I am still thinking whether Tasmota or ESPHome is it going to be for my smarthome

  • @predator9365
    @predator9365 Před 2 měsíci

    Your Raspberry PI is always on power isn‘t it? Even if you aren‘t printing?

  • @drdoctor101
    @drdoctor101 Před 3 lety

    Appears you are using Sonoff model S20. These are very hard to come by. I looked into the Sonoff basic, but that requires cutting wires (some models of basic require soldering). I am trying to avoid that messy business.
    Are there other smart switches you recommend?

    • @Crosslink3D
      @Crosslink3D  Před 3 lety

      There is a huge list of Tasmota compatible devices here: templates.blakadder.com/

  • @Nordic_Goon
    @Nordic_Goon Před 3 lety

    I guess this would only work if you power your raspberry pi separately. If you use a buck converter, this won't work with the plug-in to turn the printer back on, since the octoprint server would go down with your printer when you powered it off via plug-in.

  • @tablatronix
    @tablatronix Před 4 lety +1

    I am using the TP-Link plugin with a tp link I got on sale, its great, I can toggle to shutdown after print, and after temperature is

    • @Crosslink3D
      @Crosslink3D  Před 4 lety +1

      Does it still work? I read in the plugin issues list that after the latest firmware upgrade the connection is not possible anymore for TP-Link Plugs? What model are you using?

    • @tablatronix
      @tablatronix Před 4 lety

      Crosslink yeah it works afaik I am on the latest octoprint also. Umm its the hs100 smart plug. Do you mean the plugs firmware? I have not touched that , Ill look into it in a bit and see

    • @tablatronix
      @tablatronix Před 4 lety

      @@Crosslink3D I see the issue, its for a different model but I am also running an old firmware so maybe it will affect me, didnt see in the release notes anything, but this does suck if they are disabling local access

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

      How did you configure it to wait for temp to drop below 50c?

  • @thenetwerx
    @thenetwerx Před 4 lety +1

    I am not familiar with using smart switches like this. Do you know if Tasmota would work with other smart switches for us in the USA that I can find on Amazon? The Sonoff switches I see look like they are for hard-wiring and do not pass the ground through the switch.

    • @Crosslink3D
      @Crosslink3D  Před 4 lety +1

      This this list. All these are working with Tasmota: templates.blakadder.com/

    • @thenetwerx
      @thenetwerx Před 4 lety

      @@Crosslink3D Thank you!

  • @koreaquirks7300
    @koreaquirks7300 Před 3 lety

    wait, how do you give power to the raspberry if you cover the power pins? Via power adapter?

    • @Linuxdirk
      @Linuxdirk Před 2 lety

      One year later, but maybe somefinds this information …
      You cover the pin to prevent your Raspberry Pi trying to power your printer via the USB connection. The connection is only needed for data and some printer manufacturers screw that connection up resulting so-called “backpowering” from the Raspberry Pi to the printer. This likely won’t harm your Printer or the Raspberry Pi physically but it could cause all sorts of issues from printer display flickering to failing prints.
      Taping the pin neither affects how to power your Raspberry Pi nor how you power your printer.

  • @sdebruyn
    @sdebruyn Před 4 lety +1

    Excellent tip about Cura, but this setting doesn't show up. Cura 4.6.1 with same version of Octprint plugin. In Octoprint theTasmota plugin has the same settings. But the option of turning it on is not showing. What could I be doing wrong ?
    I noticed in the plugin you also have a setting for turning on the switch by using Gcode, but you don't have that enabled.
    Should something be added to the startup Gcode ? I'm at a loss here.

    • @Crosslink3D
      @Crosslink3D  Před 4 lety

      You should upgrade to the latest version of the OctoPrint Tasmota plugin (version 0.8.13). This function is new so it won't show up on versions before.

    • @sdebruyn
      @sdebruyn Před 4 lety +2

      @@Crosslink3D this was the version I had.
      Now re-installed and it's working.
      I think I found why it wasn't working, the label wasn't set in my config. For Cura to detect this, the label can't be empty. Hope this info helps some other people as well.
      Keep up the great work, love the channel.
      Danke schön !

    • @Crosslink3D
      @Crosslink3D  Před 4 lety +1

      Great catch with the missing Label!

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

      @@sdebruyn This was it. I was scratching my head trying to figure out why it wasn't coming up!

  • @christopherw8654
    @christopherw8654 Před 3 lety

    What about an Amazon smart plug

  • @JoeKeaveney
    @JoeKeaveney Před 4 lety

    How do you get the printer to turn on automatically? I can toggle the power in octoprint and get it to shutdown automatically but I can't figure out how to switch it on automatically when I click send to printer from PrusaControl. Do I do this in GCODE? (I quite like Prusa Control over CURA). Great video BTW :)

    • @Crosslink3D
      @Crosslink3D  Před 4 lety

      The integration with CURA is part of the OctoPrint Connection plugin and that communicates directly with the Octoprint Plugin. I don't know about PrusaControl and it's probably not implemented there.

    • @JoeKeaveney
      @JoeKeaveney Před 4 lety

      @@Crosslink3D thanks for the reply :)

    • @brianoffenheim315
      @brianoffenheim315 Před 3 lety

      Looking how to solve this as well..

  • @ahmadwa
    @ahmadwa Před 4 lety

    Can I achieve this while powering the raspberry from the printer's PSU?

    • @jrigvd7291
      @jrigvd7291 Před 4 lety

      No, your Raspberry Pi will also turn off if your smart plug cuts off the power

  • @JoseBerruezo
    @JoseBerruezo Před 2 lety

    Nice video, but I would like to also shutdown octoprint and turn off the raspberry pi. :)

  • @FernandoGomes-kx1uq
    @FernandoGomes-kx1uq Před 3 lety

    Does Sonoff need flash Tasmota firmware? Or is just the Octoprint plugin enough?

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

      It works only with the Tasmota firmware afaik

    • @FernandoGomes-kx1uq
      @FernandoGomes-kx1uq Před 3 lety

      @@Crosslink3D The new Sonoff Pow R2 already comes with Tasmota, or will I have to flash?

  • @frankfischer7879
    @frankfischer7879 Před 3 lety

    habe es jetzt entlich instaliert würde aber gerne noch auch den raspie mit auschalten gibts da was unklompleziertes ?

    • @hpsteff
      @hpsteff Před 3 lety

      einen zweiten Tasmota switch for das Power supply vom Octopi... da die Tasmota schaltter Mqtt können kannst du mit einem Hausautomationssystem deiner Wahl ein Skript erstellen, Wenn der 3D Drucker ausgeschaltet wir , mit Verzögerung auch den Octopi ausschalten. Allerdings sollte man den vorher runterfahren.

  • @ruwangakodituwakku6024

    Will this work if the raspberry pi containing octoprint is powered by the 3D printer?

    • @hpsteff
      @hpsteff Před 3 lety

      No. You have to separate power from the 3D printer. Some peapole use a power converter to use power from the 3D printer power supply for powering the Octopi. This does not work.

  • @meltonpieman959
    @meltonpieman959 Před 4 lety +2

    Can you add other smart plugs to this Octoprint app? Or do you need to use one designed for the actual plug?

    • @Crosslink3D
      @Crosslink3D  Před 4 lety

      It works basically with every smart switch that can be tasmotized. The list is HUGE: templates.blakadder.com/

  • @drdoctor101
    @drdoctor101 Před 4 lety

    Is there a plugin to get someone to remove my print from the bed after it's done? ;)

    • @Crosslink3D
      @Crosslink3D  Před 4 lety +2

      The plugin is called "mechanical turk" and you're the one hired

  • @frankfischer7879
    @frankfischer7879 Před 4 lety +1

    ich habe den pi und den ender an eine steckdose will beide nach dem druck sagen wir mal nach 5 min wen das hotend abgekühlt ist abschalten geht das, und wie schalte ich dann das ganze wieder ein, über ne handiapp ?

    • @Crosslink3D
      @Crosslink3D  Před 4 lety +2

      Beides einschalten ginge auch über das Webinterface von der Steckdose. Allerdings solltest Du am Pi eine Notstromversorgung haben, die dem Pi bei Wegfall der Hauptstromversorgung ein Signal auf einem Gpio gibt und den Pi dann kontrolliert herunterfährt. Video dazu folgt noch.

    • @frankfischer7879
      @frankfischer7879 Před 4 lety

      @@Crosslink3D habe ja auf den pi ja schon ne App die denn nach dem Druck runter fährt wenn die mit der Steckdose zusammen arbeiten wùrde währe das die lõsung

    • @KPTnVAN
      @KPTnVAN Před 4 lety +1

      frank fischer Es gibt ein Plugin, das OctoPi nach Druckende herunter fährt - Automatic Shutdown. Daher den Ausschalter halt auf ein paar Minuten nach Druckende setzen, der Pi schläft dann schon.
      There is a plugin that shuts down octoprint after finishing the print - Automatic Shutdown. Thus set the switch to a few minutes after idle, octopi is already sleeping then.

  • @Linuxdirk
    @Linuxdirk Před 2 lety

    3D printer manufacturer: Yeah, so basically … you need to slice your object into gcode and then store it on a storage card and then go to your printer and turn it on and then insert the card and then start the printing process and when done you need to go to your printer again and turn it off and remove the storage card.
    open source community: hold my hacked Sonoff switch and my mini computer. :D

  • @DaaaveO1971
    @DaaaveO1971 Před 4 lety

    An Ender 3 sitting idle consumes 7.6 watts...but how much power does a raspberry pi running Octoprint 24/7 consume? Also, smart switches consume at least some power 24/7 too (in addition to the power of the component they are switching on and off).
    If the argument is that being able to switch the printer on and off remotely is convenient, or just plain fun, I'll agree with that, but if your reason for doing this is to save energy, there are better ways to go about it.
    "Hey Google - shut off the 3D Printer"

  • @allesnichts8244
    @allesnichts8244 Před 2 lety

    Nice but this way a raspi with octoprint must run all the time :-(

  • @matbeedotcom
    @matbeedotcom Před 3 lety

    Its not biodegradable

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

      Yep, that's why I removed that from my new T-Shirts ;-)