date: 2023-07-03
title: Tasmota Relay Box
thumbnail-image-url: http://picture-files.nuke24.net/uri-res/raw/urn:bitprint:KH3IKEJWHO7KCFHI2V7GG5H35BWFD2TS.OX7A5VZC622SYOOJVCELK2H3KXGK4U5E6DZEHXY/20230702_225614.jpg
summary: Renee needed a smart switch to control her old window AC unit.
We didn't immediately find a ready-made thing that seemed suitable, so we built one.

Tasmota Relay Box - 2023-07-03 - Entry 38 - TOGoS's Project Log

A.k.a. WSPROJECT-200386

Renee needed a smart switch to control her old window AC unit. We didn't immediately find a ready-made thing that seemed suitable, so we built one.

Back side of front panel
Front side of front panel

Parts:

We installed Tasmota on the WeMos D1 Mini (a small, cheap, ESP8266 board of which I have many sitting in boxes in my workshop). It turns out that you can plug it into your USB port and then program it directly from tasmota.github.io using their 'web installer'. So easy, even Granny could do it!

My dad asked if those SSRs are designed for inductive loads. The product page didn't say either way, so we're taking a bit of a risk, there. This was before he realized we were switching AC power. It being AC means that the voltage and the current should cross zero 120 times per second, and therefore we don't need to use special 'inductive load' relays.

We chose to make the box a hulking 18″x6″x4½″ so that we'd have plenty of room to lay out all the components, but also, being as wide as it is, it acts as a short bit of conduit for getting power from one point on the wall to another. This may or may not be useful, depending where Renee places it in her living room. For now it's just on the floor.

Rahter than using wire nuts or WAGO connectors to join the 240V wires between the inlet, outlet, and power supply, we soldered the leads to the power supply (18AWG) to the stripped ends of the 12AWG wires that connect the inlet to the relays.

The input wires are daisy-chaned across the two relays. This way we avoided any dangly wire junctions.

2023-07-05 Update

It does turn out that the SSRs that we bought get real hot while passing as much power as the air conditioner uses, and that there are perfectly suitable conventional relays that will do the job. Our plan is to replace one of our SSRs with a 2P2T conventional relay (maybe that one), and have the remaining SSR control it.

2023-07-09 Update

Modifications made yesterday:

I don't have any 240VAC appliances at my house. In order to test this thing, we rigged up an adapter cable from my dryer outlet (NEMA 10-30) with a NEMA 6-20 on the other end. NEMA 10-30s are deprecated due to not having a ground pin, only a neutral, and that neutral beomes the ground on the 6-20 end. The other way would be problematic, but I think this should be fine.

We also rigged up a couple of lightbulb sockets in series. I only had LED bulbs handy. When plugged into 240V they pulsate. I suspect that regular old incandescent bulbs would have behaved better. But the LED bulbs worked well enough to tell that power was on or not.

We were going to add some momentary buttons that Renee could program to do anything she wanted either through the Tasmota configuration on the ESP8266 or using Home Assistant, but we ran out of time.

We noticed that the relay hums when power is off due to, we eventually figured, the SSR being unable to switch fully off.

In the future, we may replace the SSR with a WeMos 5A 250V relay shield, which should solve the humming problem.

3D Printing News

I always think these look super cool as they're printing

I started printing some 'TOGridPile Bracket Shelves' for storing TOGridPile cups on a wall or a beam or something. The current designs have quarter inch walls around the outside, which makes the hull of the thing 'a funny dimension' (i.e. the box itself doesn't fit nicely on the 1½″ grid), but maybe that's okay, or maybe I'll come up with a way to make it work by combining with a TOGRack or something.

First prototype, a wall-mountable TOGridPile container with room for three 1½″ blocks