Turning a dumb AC unit smart (without losing my security deposit)
prilik.com
prilik.com
Speaking more seriously, I wish classes of appliances would expose some simple analog and digital interface pins in a standardized configuration to let users choose whatever automation or monitoring hardware they want. HVAC equipment does this with standardized thermostat terminals. I'd love to see that on other types of appliances, too.
The manufacturer's crappy "app" that will inevitably be abandoned and require keeping some old phone / tablet in good "health" lest you lose the "smart" functionality (or worse, any use of) the appliance.
Then current way of putting the "smarts" inside the appliance is just planned obsolescence and a recipe for all of us being eyeball deep in ewaste.
(I did get my last Sony Bravia integrated with Homekit so that I could control inputs, volume, etc. via the Home app, but that's not really what I'm looking for).
Give me an HTTPS API, require me to authenticate devices on the TV itself before it accepts their commands, and just let me do whatever. Default it to off and make it a hidden setting, but yeah just let me do the thing without having to pay tens of thousands of dollars for some professional installation to integrate with hardware I don't have and can't afford.
https://community.home-assistant.io/t/serial-projector-contr... from a quick search.
Using a whole Raspberry Pi seems like overkill, though: Support for a wide variety of common USB serial chips is already built into esphome. https://esphome.io/components/usb_uart/
Just wire it up with a cheap dev board, build a firmware image for it, and that end of things is... done, right?
Not sure if they still have this though. Mine does.
https://gist.github.com/kalleth/e10e8f3b8b7cb1bac21463b0073a...
For the Bravia, which is probably Android, you can likely write an android service that connects to the web and handles things like volume and maybe channels.
I know a few 'filthy rich' people and some of them don't even own any TV or projector, because they're totally content with a laptop screen and don't want their kids to be exposed to TVs. You will not see their wealth unless you know where to look.
Once people have money, most of them begin to think about what actually serves them and what doesn't; if you can afford anything you want, you usually become more humble and selective. There's simply no point in owning things for the sake of owning them any more. Displaying your wealth usually has far more downsides than upsides. What we see is the outliers.
For every ostentatiously visibly rich person, there are 100 quiet ones shaking their heads.
Or if they do own a ultra high end TV like a C Seed N1 they hide them away inconspicuously.
https://www.cseed.com/en/indoor-tv/c-seed-n1-tv.html
It is like eating cheap and nasty junk. If you are rich you avoid it or eat it discreetly...Or your acquaintances laugh at you.
I think I'd likely prefer one of those slightly more discrete OLEDs that rolls up into its box when not in use, like the LG Signature R...
Projectors cannot handle ambient light without being a fire hazard.
That seems an overstatement. I now have one in my entire house (don't have kids).
There's a fairly large TV panel on one wall in basically a sitting room. Otherwise I just use a computer. A relative basically has TVs in every room. I guess it maybe made sense when he was rebuilding anyway but it still seems excessive to me who might sit down to watch a movie or show but doesn't have live TV.
But, then, I don't have AC either in Massachusetts.
I will say that when all sorts of stuff got pulled out of my house for smoke damage mitigation, I also made the conscious decision to just not put back a lot of the things/wiring that I really wasn't using to any degree. A lot has changed (both with respect to technology and myself) to the point where it really didn't make sense to put things back like they were.
Ambient light is dealt with having nice thick blackout drapes.
This is not some rocket science, it was done for like a hundred years.
edit: actually in my former apartment I just bought a roll-down projector screen that completely covered the window. pull down - zero ambient light even in full sunshine.
Take a look at this house:
https://www.zillow.com/homedetails/5619-Walnut-Hill-Ln-Dalla...?
Sure, it has a theater room with probably an incredible projector I'd imagine. It also has a bar with a big TV behind it. It also has a game room with several TVs mounted on the walls. In both of those situations, you wouldn't really want a projection setup. A brighter TV wins out in the end.
I've seen lots of TVs mounted in outdoor living room/kitchen arrangements. They're common to find in living rooms even for people who have separate theater rooms. I've seen them mounted in garages. TVs have uses other than just pure cinematic experiences. And I say that as someone who has personally pushed TV watching to an exclusive space in my home and made a point to not have TVs everywhere. Other people like different things.
Yes, you might, but you can also have normal multi-use rooms. It's not like being rich somehow makes a 'standard' living room configuration with TV and couch gauche. The likely main difference is the couch is going to be way bigger and the TV is probably 100" inches.
Theater/cinema rooms are a very different experience (lights off, dedicated to watching the thing) compared to a standard lights on TV experience. Two different purposes.
To be clear I only know this because I was totally going to swap to a projector once I bought a place only to realize they don't work well during the day.
I don't want a "smart" washer / dryer / fridge / toaster. I want a standard interface I can build my own system around, or use someone else's that they've already built.
I don't think I'd like to reintroduce it exactly as it was, but it's a useful example because:
1. It demonstrates how a strong economic-norm can arise from popular concern that a certain "buyer/borrower beware" arrangement is too prone to abuse.
2. Being unusual to us, it's easier to see and consider, as opposed to existing norms we may take for granted as "just how things are."
3. Since it changed over time (albeit by going away) it indicates that change is possible, and shows those economic rules are socially-constructed.
I also don't want a "smart" phone. Just give me a normal phone with a standard interface so I can build my own system around it.
yes, they standardize thermostat terminals, but they should allow additional inputs such as a measure of radiant heat entering through the boundary surfaces. I have to change my thermostat far more because it's a sunny day than I need to because of different outdoor temperatures. Bear in mind, I shouldn't have to change my thermostat at all† (except perhaps between summer and winter)
† perhaps my biggest pet peeve, and I have many, is that 99% of the population—including engineers from top universities—believe that if you feel warm you should imediately max-out your A/C thermostat, and when you get cold you should shut it off. It's a thermostat, its job is to turn on-and-off to maintain a temperature. I never touch the one in my car and it works great. (as mentioned, I need to change the house thermostat, see solar radiance‡ above)
‡ I once had the pleasure to work with a great mechanical engineer, he designed climate systems for art museums and other public and billionaire buildings, and I described my radiant heat problem and he said "that would be super advanced, I've never heard of any systems that do that."⹋
⹋ another one of my pet peeves is footnotes. In general, they require a massive context shift, as if it's not a problem to keep your place while you look in another place. But notice how I've threaded mine so they do not require congnitive leaps.
Similarly, floor heating systems measure temperature of the radiating element (floor) and room temperature to decide if they switch heating on or off.
I generally combine shutters for large windows in controlling the temperature in my automation too (greenhouse effect).
Yes but the temperature of the air in your home is only one part of it. The other part is the temperature of the radiant heat.
I always understood that the temperature is measured in the shade, and that the difference between shade/sun on a sunny day can be very significant. A temperature of 22 degrees in the sun would feel like standing in the shade at 30 degrees.
Similarly in your home it could very well be that the air is your house is heated up to 22 degrees by the outside air and radiant heat, but additionally if you're under the radiant sun sitting next to a window it can feel much hotter.
Of course if the temperature meter itself is exposed to the radiant heat, it'll likely measure that directly. But mine for example is mounted under a table in a utility corner and gets virtually no radiant heat. I could mount it next to the window to get exposure to the radiant heat of the sun, but then if I'm sitting further away from the windows in the room I get no radiant heat but the sensor does, and it'll think the room is a lot hotter than the experience I'm having.
if that was true, I would not feel the need to adjust the thermostat, i'm basing this on the pattern I've noticed wrt feeling discomfort, and I remember temperature numbers. In general, I find A/C chilly below 75ish and warm (in a humid way) above 77ish so it stands out to me when i feel the need to push the system harder just to maintain comfort
But it's just a furnace (or just an aircon) that is controlled by a thermostat. In broad strokes, the combined system just turns things on and off (or speeds them up, or slows them down).
So what would it do with that information if it had it?
I mean: Suppose that the thermostat knows, however it knows this, that you're experiencing an uncomfortable level of warmth due to radiant heat in a particular room.
What does it do next? Make everything else in the house (or the zone) cooler to compensate? Something else, instead?
The industry hates this and wants it gone because they want you locked into buying the rest of the stack from them and they want you shelling out $$$ for emergency repairs rather than jumpering it when it fails at a bad time.
The reason we need an app in the first place is 1) customizability, 2) ability to access the device even when out of WiFi range, even when behind carrier-grade NAT and/or a restrictive firewall. A design where the device hosts a simple "server" that makes an outbound connection to a proxy of the user's choosing, likely provided by their smartphone vendor, to receive requests would solve both problems.
Really simple appliances can be very hard to find, e.g. a desk fan that can be set to spin very slow. Most fans have 3 or 5 speed settings and the lowest is already tenfold too high for my taste. Solution? Get the dumbest fan you can find and speed control the motor yourself.
From what I understand, PTACs started as a convenient way to retrofit apartments with air conditioning. You don't need ductwork, which I believe is more expensive in the concrete buildings around here. Also, I think you need protected refrigerant sleeves to meet code here, but only if the sleeves go from one floor to another (someone just told me this fact today, and i haven't verified this).
BTW that PTAC's thermostat dial in the link doesn't have numbers around the dial, which I think is honest. No A/C unit I've ever owned has managed to have a thermostat that read the temperature I was feeling consistently. It makes me think the apartment was built before the late 2010s though -- still feels new but a generation ago in HVAC terms. Mini-splits seem to have arrived, even for <1M condos. Talking to the mini-split contractors I had over recently for a squeaky noise, I got the feeling that business was booming. They had every day in the summer booked months in advance.
When I lived in the US I tried to get a minisplit and they wanted $4000 for a medium size unit! The same one where I live now is $400 installed.
The situation with R-22 (better known as "Freon" in the US) seems pretty messy and confusing. https://en.wikipedia.org/wiki/Chlorodifluoromethane#Phaseout...
As far as I can tell, the import of the R-22 refrigerant itself wasn't banned until 2020.
A vactrol is a device which combines LED and photoresistor in one package (sealed against the leakage of light).
The photoresistor has a "dark resistance" that is typically very high, like hundreds of thousands of ohms. When it is illuminated by the LED, the resistance goes down: you control how much via the current to the LED.
Another possibility is using a digital potentiometer, like this: https://ww1.microchip.com/downloads/en/DeviceDoc/20005207B.p...
A digital pot is an integrated circuit that switches a bank of resistors with FETs to create a desired resistance, or combination of resistances to simulate a wiper position along an analog pot's track.
They are programmed with I2C and such.
These things have certain disadvantages; like the one I linked to requires that power rails be provided for the analog domain where the resistors "live", and the voltages on them must be within this range. The vactrol has no such issue; it is a passive resistor with light shining on it.
This is what I was wondering about as well.
The knobs on the unit are probably potentiometers, so it ought to be possible to replace them with a digital device of some kind, and avoid the mechanical coupling altogether.
I imagine that the author did consider this possibility, but decided that disassembling the control panel in order to replace or byypass them was just too difficult and dangerous, especially since everything is at AC line voltage as he notes in the write-up. The modern smart thermostats that I've looked inside have a clean separate between the low-voltage digital side, and the AC-line-voltage power control side… but evidently these older purely-analog devices didn't.
I’ve got a vibe coded “Nuaire Fan” controller to talk UART to my whole home ventilation and present it as a HA controllable fan.
I couldn't believe it when it basically worked on the first try, including pairing with the base unit and other remotes.
> Option 2 certainly is the “jankier” of the two options, given that it relies on a second-order property (target temp) to power the unit on/off… but hey - whatever’s easier, right?
Isn't this basically how a thermostat works? I.e. there is a component that is binary on/off, and a thermometer is used to decide to switch on or off.
If you want to be able to do both heating and cooling, it'd get a bit complicated since the above would be inverted for heating.
On older ones, but newer ones can modulate blower speed, compressor speed, and refrigerant flow. Don't think I've seen an air-con without blower-speed as part of the cooling apparatus for a long while.
IMHO it's not that bad? With the disclaimer that I'm also a software engineer who dabbles very very lightly with electronics and has no mechanical engineering expertise. But the overall approach of doing this by stepper motor seems quite defensible given the security deposit constraint. The only part that seems really janky to me is that it's not physically held in place that well as noted in this paragraph:
> Ultimately, the biggest issue is that binder clips and cardboard aren’t quite as robust of a mounting mechanism as I’d hoped they’d be… and over time, the stepper motor tends to “sag” a bit, resulting in a bit too much friction between the motor, the coupler, and the underlying knob, causing the mechanism to stall out until someone manually goes and reseats it…
Involving MQTT and HA can sometimes get frustrating too; having your AC not working properly if there's a problem on a Linux machine can suck. If this becomes a problem in practice, iirc ESPHome also has a thermostat component, and temperature sensors are really cheap and easy to wire in, so you could do it all on the microcontroller pretty easily in a low-code way. But if this part is working, no need to mess with it.
You do have to set the "api: reboot_timeout: 0" if you don't want it to reboot itself every 15 minutes while HA is down. I persisted the alert threshold to flash though so even if it does reboot it comes right back up and works fine.
There's nothing wrong with jank as long as it's not going to burn your house down the way some of his other rejected ideas would have.
https://prilik.com/blog/post/automating-ac-nyc/#-what-are-my...
3M command strips should be very strong/secure, while also allowing for adjustment and will detach without residue when the time comes.
I own a 3d printer which makes most of these projects look like the perfect fit for a 3d print (even when there are far simpler solutions). So that is what I'd do :)
Command Strips work similarly to the adhesive that holds batteries into phones. Very strong hold in the directions that count, but pulling the tab stretches them in a way that causes their structure to collapse and release. Must have for anyone who rents a house and doesn't want to put holes in walls etc, but I've also found them to be very useful for all sorts of off-label applications.
They're strong enough to hold heavy picture frames etc on to walls, lasting for years and still detaching easily. I'd certainly trust them to secure this little motor!
.....or just screw into the AC unit somewhere discrete and hope no one notices.
Unless you have made a mess with wires getting out looking like a fire hazard in waiting I don't know anyone who would stop at 2 tiny screw holes. Heck the landowner may not even remember the unit was not made that way in the first place.
If you have a favorite smart thermostat you could also wire up a receptacle with a contactor between it and a cord and a 24v AC transformer wired to the line side. This would make your window unit controllable just like a central air conditioner.
Assuming the thermostat is controlling 120V AC:
1: There are plenty of cheap wireless thermostats for AC that you can buy off of Amazon. I have two, and they work great with space heaters.
2: You can use a 120V relay with those thermostats to control different voltages, amperages, ect.
---
BTW, controlling the dial for min cool, max cool, ect, could increase efficiency. Max cool is only needed if the unit's been off, or it's a super-hot day.
There's only 3 wires to deal with as well so it's not THAT scary to make your own cable (but I'd understand why you might feel differently).
First, I'm not referring to a smart plug. I'm referring to a thermostat-controlled plug. You were afraid that it would rapidly turn the AC on and off, which would burn out the motor.
They don't do that. Mine (when I use them with a heater) run it for a few minutes, then turn it off for awhile. They don't rapidly turn the heater on and off. I assume it's the same way when run in cooling mode.
The people who make them aren't stupid.
---
WRT a rely: They are safe, you just need to look at the rating for the load. (The point of a relay is to switch a high current / voltage load.) I use an industrial one for an outdoor outlet: It can handle the full 15 amps of the circuit safely. (I use it to adapt a smart switch that can only handle light loads, including a relay.)
OP would need a more beefy relay for an AC unit. 20A minimum, but honestly a 30 or 40A relay would be warranted as AC units have a pretty large "spike" when they turn on which generally exceeds the amp rating of their circuit. It's short enough to not trigger a circuit breaker, but it's something to be aware of when designing things like relays.
I'd basically get something like this [1] and then put it in the middle of a patch cable.
[1] https://www.amazon.com/Aeotec-Security-controller-electricit...
Look at the MAC addresses of smart devices connected to your home network and 90% of them are just going to be ESP32 chips hooked up in this way to some control mechanism, but in a nicer enclosure.
you can buy smart outlets with the correct connector, just look for 20A versions. (honeywell, at a minimum, sells one).
https://prod-edam.honeywell.com/content/dam/honeywell-edam/h...
The compressor can be turned off at any time. It doesn't matter where in the compression cycle it is when it becomes unpowered; it just doesn't care. It's probably ultimately going to come to rest on a compression stroke no matter what, anyway (Newton's 3rd law, etc).
While the compressor is off, the high pressure side leaks down. That's good. (Sometimes, that's a noisy process: We've probably all heard aircons and fridges and such hiss and/or gurgle a bit after they've been turned completely off in an otherwise-quiet room; that's the sound of the high and low pressure sides approaching equilibrium.)
The only trick is to wait a bit for the pressure to leak down before restarting it again; a minute or two is almost certainly more than plenty with a small loop. That wait is just to make the compressor's job of restarting a bit easier than it could be otherwise.
The risk of restarting too soon is that it's harder on things than it could be. It might be hard enough on things that the compressor stalls. Stalled compressors are bad because they use a lot of current and make a lot of heat, but there's safety cutouts present that are designed to prevent them from becoming fire just for these instances.
And anyway, it's all completely avoidable in this scenario: Set the smart plug to default to off (for when recovering from a real power outage), program a reliable restart delay into whatever the control system is (Home Assistant or whatever), and call it a day. This is functionally exactly what my Nest thermostat does.
(Some aircons already have a delay at fresh power-up as an unavoidable built-in feature, and these don't need any special handling at all.)
if you turn those knobs to the off position while the compressor is running, does it actually go into some kind of orderly shutdown or does it abruptly cut power to the compressor?
This a pet peeve of mine. If you buy the wrong $2 part don't return it. If you don't eat the loss the seller will and the part will wind up in the landfill.
If it was actually a $2 part, I'd agree with you. But it's enough that it's probably worth returning, especially since he had to try a few to get it right, and then he can return them all at once.
It's not his fault if it ends up in the landfill. That's on Amazon. Also, they have discount stores they ship returned stuff to before it hits the landfill.
Happy to answer any questions :)
It even has a component specifically for the ULN2003 stepper motor driver you were using
It might've been because my early testing was done via an old Arduino Uno board, and I must've figured that I might as well port the sketch over to the ESP32 once I had it working.
(I'm general though, I will say that LLMs can totally write bespoke one-off firmwares like this, and I don't feel too bad about it, given that it's running entirely within my LAN, and will never actually get "productized")
Is it because of personal ownership reasons? Counterintuitive physics? Heat dissipation limitations on the roof?
Can someone with more knowledge clue me in?
PTACs are self contained and so they don't even require an HVAC technician to install. Simply knock a hole in a wall and plug it in. They are basically a permanent version of a window AC unit.
But I think the main reason is that in places without central AC, people tend to want to incrementally upgrade. For example, you might get a mini split just for your bedroom, because that’s the room you require the most comfort during the hot days. Then when you start getting used to the comfort of the AC in the bedroom, you’ll want one in the living room. And so on.
You can only run one mode for all rooms, and while that sounds reasonable, I have one tiny storage room that houses my old dual Xeon heater, which requires AC on even in the winter.
Still, split units are way easier and more efficient but I guess the landlords just go for the cheapest option.
Some device I can mount in proximity, that controls the AC, but preferably also has a temperature and humidity sensor included.
I had better luck for my use cases with the Aqara M2 Hub. I believe that device is discontinued, but they seem to have other very similar models. No built in climate sensors on that one, but the UX and IR signal response time have been much better overall.
[1] https://github.com/peterhinch/micropython_ir/issues/46 [2] https://www.tindie.com/products/maxmixproject/power-bus/
I thought about building my own controls for it: After all, it's just a compressor and a fan that are each controlled by relays -- how hard could it be to have them controlled by my relays? Or to have its relays controlled by my logic?
But then I discovered that this particular aircon would resume, with a delay[1], after a power outage.
So I turned it on and left it on, and put it on a smart plug. It turned out that this was Good Enough, and there was no drama. It just worked.
Plus, because Home Assistant: I was able to use a temperature sensor that I found available in the Alexa speaker that I already had on the night stand to prove that the overall concept worked. (I added a Zigbee temperature sensor later on.)
[1]: The compressor likes to stay switched off for awhile after it has been recently run. People sometimes like to make it sound complicated or mysterious, but: It's just to help prevent the compressor from trying to restart while from a resting position that is in the middle of a compression stroke. Doing that is harder on things than it could be in the best case, and it stalls the compressor in the worst case (which can then extend to exercising thermal and/or overcurrent protection).
But as long as there's a bit of a gap between runs, then that provides time for the high-pressure side to leak down so there's not so much to compress, and the compressor can restart without too much fuss. That's all; that's the whole merit. My aircon's irrevocable power-up delay handled that problem well-enough, but the logic could be scripted in HA's YAML with a helper if that were necessary.
You could also buy an IR transmitter module from AliExpress and add a temperature/humidity sensor chip on I2C like an SHT41.
Flipper Zero can record IR remotes.
I'd gladly let them keep the security deposit so that evil companies like RealPage don't blacklist me.
Why? Not all "janky" things are the same:
* Sloppy changes to the internal 240V wiring: yeah probably a violation of the lease, and legitimately likely to burn the place down, with associated liability.
* Temporarily mounting to the exterior this mechanism that turns the knob shaft, with no changes to the wiring, no holes, no nothing. I can't think what grounds they'd have for considering this a lease violation or a reason to keep any of the security deposit, as long as you pop the original knob back on when you move out. And as inigyou pointed out, how would they even know?
All of the air that gets pushed out of that singular exhaust hose gets replaced by hot (and often very humid) outside air -- the same stuff we're burning electricity to fight a war against. (It is my considered opinion that single-hose portable aircons should not exist, and I'd remove them from the Earth if I had the ability.)
Dual-hose units can work OK.
They have some advantages, too, like being portable (they can be placed in the space that most-needs cooling instead of the space where they're mounted hard into a wall), or being quiet[er].
I've never experienced a PTAC in an NYC apartment, but some of the ones I've used in hotel rooms have been monstrously-noisy. I would never want to live with one of the noisy ones.
If this was a remote control knob it might begin to make sense, but it isn't.
A NYC apartment with a 115V PTAC is by definition the size of a shoebox, is twisting a knob twice a day really that much of a burden?