So what do you do when you have too many printers and not enough space?
You build a 3D printer, bay.
And that's what we're going to be talking about on today's makers mashup
# Funky Intro Music #
Welcome makers.
So I am out of space in the shop and I really needed
to spend some time getting things organized here.
And I have kicked off a new project which is building a 3D printer.
Now I'm going to trick this thing out and make it really cool.
So it's going to happen over the next following weeks.
And I've really got a good start on it already.
I managed to put together a industrial shelving unit,
and I've got power running to it.
But what we're going to be covering today is my octa print setup for it,
because this machine that you've seen in the last couple of videos over here
hanging on the wall is actually powering six different octa print instances.
And it handles running all of those printers simultaneously
with no problem at all.
But even better than that, what we're going to be covering today
is how I started to get some of these home automation set up.
And what I've got is OctoPrint when it completes a print, announce
that a 3D printers complete and allows me to get back to my 3D printer.
Clear that print off and start another one.
So I don't want to waste any more time.
We've got a lot to cover today.
So with all that said, let's get to work.
I've logged into my master Linux box and this runs six OctoPrint instances now.
And we'll start by creating a new user.
And we're going to call this Octo five
I do use the
same login and password on each one of these instances.
It does make it a little less confusing
Once I have the user configured here,
we're going to log in as root by just doing a pseudo as you.
Not the best practice, but it works really well for doing the installation.
Well, then navigate to the home Octo five directory
and we're going to follow basically the directions
on the octave installation page for a manual installation.
This starts by using Python three to create the virtual environment.
Then once that's created, we will just call the OK
to print PIP installer and ask it to install OctoPrint
This takes a few minutes, but once it's done,
the next step is going to be to change all of the permissions.
Because I installed this with route change all the permissions
over to the octo five user.
We do this by simply entering a change of ownership command
and make sure that you use the recursive function
so that way it changes all the files in those subdirectories.
The last step to get everything running
is to modify the crontab and add an entry.
So ok to print starts at boot.
Eventually I'll replace these with services, but for now
it's much easier to just reboot the machine.
I don't change. octoprint that often.
So an occasional reboot here and there doesn't
represent many issues for me now.
I've got these spaced 50 ports apart, so the next one in line
here is going to be 50.
200 and we'll enter 5200.
And then also make sure you update the user on the left to be octo five.
Once that's done, we just need to save and reboot the machine
If everything's
set up correctly, you should be able to hit port 50.
200 in my case.
And as you can see, I just need to set up octoprint
So let's fast forward to the end of this install.
Once we're done with our install, we only need to install
one plug in and that is Home Assistant Discovery.
After that, I'm going to reboot this box and we'll pick up from home assistant
Now I've got a number of different dashboards already set up here,
but what is important is going down in the notifications,
you should see that there are new devices discovered
and indeed we have a new OK to print printer.
So if you click Configure on this, you're going to enter your username and here
and this is just going to be my rwmech username.
It already knows the host in the port.
I'm not using SSL, so there's no need to verify it
and once you click submit, it will discover Octoprint
and then you're able to go over to the octoprint instance
and just like you might do for Kira, you can allow access to that instance.
Now, once that is done, you can switch back to this time
and you'll see here that it's created the configuration
and this one is in printer one.
All right.
So under devices you can see there's a multiple octoprint instances here.
And this one here is the new one that we just set up.
And if you're ever curious by which occupant instance you're looking for
this here, if I hover over this, you'll see down here.
But if you just click this, it will open a new tab to the actual occupant instance.
And you can see up at the top, we're at 5200,
which is the one we just set up now immediately.
You already got these controls in here.
And if you add to integration, you get a whole bunch more.
I'm not going to really cover that in here
because just the Discovery plugin gives us everything we need
for any automations that we're going to be doing today.
So now that we have this occupant instance set up,
what we're going to do is rename everything.
Now it's much better to rename your occupant instance
before you start creating scenes and automations.
So we're just going to modify this and we're going to call this the Octoprint
I've got multiple under three printers.
We're going to call this one OK to print Enter 32.
And once you've got this done, you'll be prompted here.
Do I want to rename all of the anti ideas?
You always want to do this.
What I'm doing is changes entities name in this
go through all of the scripts to update that.
So once that's done, I now have a name
that is a bit more understandable on this page.
And we can easily now find our printer.
Now, the easiest way to add this sort of information
to a particular dashboard is to just click these add to dashboard buttons.
I find that adding it to the dashboard
and then using these to edit the dashboard later is the easiest way to go.
We'll just add this to the dashboard
and we'll add this one to the dashboard of the lab.
From there we can customize is any way we want
you will see that we have down here our occupant and our three
to the current state unavailable because we haven't turned on the printer
and connected it all.
This information is pretty basic but gives you complete
control to run all the rest of these automations.
All right, so the wiki page here gives us all of the information that we need
in order to modify the automations YAML.
But what I'm going to do is walk you through
how to modify this and create this with the visual editor,
which is what most new people will want to do.
So from within Home Assistant, the first thing we're going to do
is go to the automation and scenes and you can see I've got a
ton set up for my machine, so we'll create a new automation.
We'll just start with an empty one.
You can see up here at the top, it gives you the new automation
triggers conditions and actions.
First, we're going to name this for our test automation
or YouTube video in the mode is generally single.
I won't go into the details of this, but essentially
single is what you want most at the time.
Now for our triggers, if we go back to our wiki
guide, you'll see here that I am triggering on
an OK to print job percentage and there's a device ID now.
Doing this through
the interface will allow you to easily get both of these pieces of information.
So if we go back to our device, we're going to look for our new occupant incidents
and there we go.
It's the device of an actor print and two, three, dash two.
And the first trigger that it has here is
when the job percentage value changes.
So if it's above 99, then we will take action.
Now where I get a lot of the YAML code
that's here is available in this visual interface as well.
If you clicked the three dots there
and then click edit enamel,
you'll see this same information matches
the same sort of information here for the trigger of this recipe.
So pretty easy to follow.
You can either look at it from a code perspective or the visual editor here
really allows you to do this in here and walk you through the process.
So we'll go back to our recipe here and we can see we have no conditions,
so we'll skip that.
And then the next step is super simple.
It's a matter of sending information to
one of the media players in my home.
In this particular case,
I have an office display and that is a Google home display.
And what I'm going to do is have the text to speech service,
send the message that that printer is complete.
So what we'll do here is we'll go down to the device
section here and we're going to call service
and then the service we're going to use, we can just type
in here and there's two different ones.
There's a Cloud one or Google Translate one.
I prefer the cloud one.
I just think the voice sounds a little bit better.
So if we go back to our recipe over here, we'll be able to see
that the only two things we configured was the entity ID, which
we need to select the device that we're going to be playing on.
And that entity idea is going to be my office display
and then the message is that this print is complete.
So we'll just type in here
so the enter three
number two has completed printing.
So now that we've got all this set up, we just click Save and that's it.
We're ready to go.
As this printer gets to 99%, it will then call the service.
Now it's easy to test this out.
You can just run this action and this will trigger
in my office here
the enter three number two has completed printing.
So you can see doing this through the Visual Editor is pretty simple
and we're able to call that now.
The only thing that
we would have left to do here would be to actually start a print.
And then once it gets to 99% of
it will go ahead and trigger that notification on any of those devices.
So that's the first one we're going to cover today is really just
being able to notify 99%.
So I was really
pleased with how this has been coming together so far.
I've got one active print that is running everything really gives me
the ability to turn power on and off on printers.
But what's really cool is I get those Google announcements
across the home whenever a D print finishes, and in the coming weeks
we're going to be covering how I did some of the power management
and being able to start to monitor even on a personal level,
how much power I'm using for print to print.
Now, that might not be important to everybody.
You may only have one printer,
but a lot of the techniques that I'm showing you in these coming
videos, you'll be able to apply to one printer or to ten printers.
So with that is going to be the end of today's video.
If you liked it,
make sure you mash that like button and don't forget to share and subscribe
because you're not going to want to miss any of these upcoming videos.
So with that, I want to say thanks again for watching and we'll see you next time.
In one
of the upcoming videos, I'm going to be covering how I did this
Beast Mode print, which acts as a facade to the steel structure of the printer bay.
And what's really cool is these print in a relatively quick amount of time
and give a little bit of a sci fi look.
I didn't want to waste any space of the enclosure.
So on the sides here, what I've done is I've already put up
some of the parts bins that I had on some of the walls over here.
So I'm able to use a lot of different space,
and I'll be working on making this a little bit of a cleaner look.
Now, you may be wondering what that white is on the background.
That is foam core, and that will be very helpful
in giving it a little bit more of a facade.
Look, but then also allowing me
to really enclose the unit and give it a little bit of a better look.