This is a poorly documented project, I am sorry for that, but I think the idea and the practicallity of such a setup is too good to not be shared
This projects gives you four schuko sockets you can controll though Home Assistant with ESPHome.
In addition to power controll, you have a DHT sensor for temperature and humidity, and a binary indication for whether or not the soldering iron is docked in it's stand.
This enables us to make nifty automations making the use of the soldering station feel more exclusive.
This happens when I deploy the soldering iron from its stand:
- The soldering iron automatically turns on and starts heating
- The lights above the desk turns on
- The soldering fan turns on
Whats connected to my station:
- Soldering Iron
- Soldering Fan
- Glue Gun
- Not anything particulary at the moment
The glue gun has its own stand
Using a NODEMCU-32S since it has a lot of digital GPIO.
Main concepts:
- The shucko sockets are connected to a four channel relay breakoutboard
- DHT sensor connected to GPIO ports. Remember the resistor!
- The soldering iron dock have a wire screwed into it. This wire is connected to one of the MCUs GPIO pins, while the MCUs ground is connected to earth. Since the iron is connected to earth through the soldering station, the GPIO pin will be pulled to the earth when the iron is docked, and this can be read out binary from the pin.
- Using a USB wall adapter to provide 5V to the MCU and relay breakout board from 230V. This enables you to only connect the entire box to the wall using one power cord.
- Glue Gun with it's own stand and an embedded push button which tells if the gun is docked or not. Using GPIO pins.