Great and timely video, thanks for sharing. I plan to use the IR controls for my mini split A/C as well as my ceiling fans coupled with a temp/humidity sensor.
Thanks! Now that I've gotten this to work for the AC unit, it's started me thinking about how I could do something similar to control/automate other IR devices in my home that are normally "dumb" devices. I think it should work with something like a ceiling fan as well, assuming you can capture the needed IR codes from the existing remote.
I just wanted to leave a comment saying thanks! You inspired me to upgrade my place with an ESP8265 with IR Receiver and Transmitter combo similar to (but a titch cheaper haha) than the one you linked to. My Frigidaire units aren't (yet) supported for the climate integration but I managed to clone my Remote signals from the IR Reciever too! You've provided a lot of much needed inspiration to make my apartment a whole lot "cooler". This was my first time making a model from scratch, which made me feel super proud. Files will be on thingiverse after I clean up the files and and some personal touches. You've been a great resource while I've been dipping my toes into homeassistant and helped inspire me to take the dive and upgrade to a proxmox isntance that made my (fairly rudimentary) home lab a heck of a lot easier to manage. Thanks for making content that newbies and experts can take a page from! Keep on doing what you're doing.
Wow... thank you so much for the kind words. I'm glad you find my videos helpful and that they inspire you to give DIY a shot. For me, there is a lot of satisfaction in making something work and figuring out how to do it (even though I often make some mistakes along the way). I think you will be very happy with Home Assistant on Proxmox. It was one of the best moves I've made for my smart home... even if no one else sees it. Thanks again for the comments. It's comments like yours that inspire me to continue to make videos! Keep me advised of your progress on other projects.
I'm new to Home Assistant and your videos have been extremely helpful. I live in the Caribbean and we use Air Conditioning rather than Thermostats, so I was looking for a solution to managing my Ac through HA, this video could not have come at a better time. Thank you, I've learnt soo much from you!
You are most welcome... and I'm happy you find my videos helpful. While it might take a little extra work if your model of AC isn't one of the officially supported ones by ESPHome, as long as it has an IR remote it should be possible to capture those codes from a receiver and reuse them. The IR transmitter is really the only part needed to do a lot of Home Assistant automation. The bed sensor was just an additional piece for me... because I've wanted one for a while now to use in other automations. Thanks for watching... and taking time to leave a comment!
I am in a similar situation, I am an expat living in Mexico. We use mini split types of A/C and fortunately for me my new Trane units do support IR so I am looking forward to automating them with Home Assistant as well. This is a very timely video for me.
Thanks... I appreciate it! While I'm using this for an air conditioner, I hope others can see how both parts of this project have a lot of other potential uses for automating other devices as well. Thanks for watching!
You are welcome. While the final project is a bit specific for my use case, hopefully the idea of a bed sensor or a custom IR transmitter can be adapted for a lot of other uses and projects. Thanks for watching and taking a moment to leave a comment.
If more nervous about applying too much heat to the FSR pins, you could consider conductive glue instead! (or a crimped connector). You don't have to solder so much (nasty fumes and burn risks and extra equipment to keep around when you aren't using it too).
Good tip! I'm pretty comfortable with my soldering skills, but this is a great suggestion for others that might not have the equipment or experience with soldering. Thanks for sharing it.
Well, while I'm using it for my AC unit, there are a lot of possibilities if you have an automation system like Home Assistant. For example, I have a nightly routine that runs that turns off any lights that are on, check and locks any doors that are unlocked, assures the overhead garage door is down, etc. Right now, that's based on time... but I could easily update that to use the bed sensor so that the 'goodnight routine' runs whenever I get into the bed at night. Or you could flip that around and have it run a series of actions when you get out of bed in the morning. Or have it light up some low level under bed LEDs if you get out of bed in the middle of the night so you don't stub a toe on something! There are a lot of potential uses, but it does require an automation system like Home Assistant, NodeRed, etc. But I do appreciate you watching and taking time to leave a comment.
@@ResinChemTech I have been wanting to build a bed sensor using load cells but was not keen on the wires running under the bed all over the floor. Your idea is much neater. I will use the load cells now for my water cooler to notify when to replace the bottle. Sadly electricity is becoming scarce in south Africa so a smart home is not as effecient as it used to be
I was exactly the same. I wanted a bed sensor and even bought load cells. But it was so much wiring under the bed, and my particular bed wasn't conducive to the design, so I gave up on the idea a long time ago. It was just recently when I ran across that forum post and discovered the method of using the force sensitive resistor that renewed my hope. This method is nice as there are no wires under the bed and everything goes under the mattress/box springs, so it also doesn't interfere with making the bed, changing the sheets, etc.
Lucky you that ESPhome climate supports your Aircon. I have an old Mitsubishi unit and am trying for ages to get it to work. But ESP Climate doesn't support the model and I can't figure out how to teach it the right codes from the remote. Any chance you could make an instruction on that? :)
I was fortunate that I didn't have to capture and learn the codes for my Midea. However, I have captured codes from other remotes and used those capture codes to transmit to a different device. The best advice I can give is to connect an IR receiver to an ESP running ESPHome and use the ESPHome log to display the code each time it receives one. Get the various codes from the different remote buttons. Then use those same codes that you captured to send out via the IR transmitter platform in ESPHome. Without an actual remote to test, it's hard for me to provide any additional assistance, but my YAML does include an option for capturing and logging codes received (even though I'm not actually using a receiver in my case). You might also check out the ESPHome Discord server as well (if you haven't already). You may run into someone there that has either figured out your model of AC... or can give you better tips/advice than I can! Good luck. I wish I could provide exact details.. but that's about the best I can offer.
@@ResinChemTech Awesome, thank you for the quick reply. I'll have a look at your code. I have a receiver attached and can see the codes coming from the Aircon remote. I just didn't know how to integrate them into ESPhome to make it work, hopefully your yaml code will help.
Very good. You could also define the threshold setting as a template number in the esphome code rather than using a helper from home assistant so that it would all be self contained.
Thanks for the idea. Of course there are always multiple ways to tackle any project. Your method does put all of the related entities into the ESPHome node, which depending on your personal installation and organizational method may or may not be the desired choice. For me, I use packages, so I have everything related to the AC automation in one YAML package. This includes my automations, switches, input_booleans, etc. So, I could either put the input_number in my package or the ESPHome file (via a template number). Either method results in the same outcome... a slider in the front end to be able to adjust the trigger level. But I appreciate the alternate approach. For some, it may be a better organizational option than importing an input_number from Home Assistant. For others that are not as comfortable with using YAML, creating the helper using the UI and doing the simple import into ESPHome might be more easily understood than creating a template number via YAML in ESPHome. But again, thanks for the alternate approach idea. I always appreciate viewers' feedback and other ways to tackle a project.
Thank you very much. I have a GREE air conditioner. How can modify the code for GREE air conditioner which supports heatpumpir ? Can you help me write the modified code for my GREE air conditioner?
ESPHome natively supports and has the code for the GREE Heatpump. In fact, there's a special section in the documentation that describes the GREE libary. You should find all you need, including the necessary code, here: esphome.io/components/climate/climate_ir.html Look under the section that talks about Arduino-HeatpumpIR.
Can you help me please Am trying to control my tcl inverterpro air conditioiner with arduino uno. First i got the raw data from tv and tv box and the array size was 70 Then i got the raw data from my air conditioner and it was over 500. It worked on tv and the tv box but it didnt work with the air conditioner😢 Can you tell me where the problem is? Sorry for my bad english.
I was reading that forum on home assistant and there were alot of issues with false positives with these during configuration. How accurate has this been for you?
I'm assuming you are talking about the force sensitive resistor (and not the IR transmitter). Mine has been in use for about 7 months now and the only real issue I've had is some slight drift in the upper voltage (unoccupied) range, but that is mostly due to my Sleep Number bed that loses pressure over time. When the "Sleep Number" is reset, the voltage also falls back into line. But it is important to select the proper resistor to give you the broadest voltage range between occupied and unoccupied. The narrower this range, the more likely you are to get false positives (or negatives) based on small changes in pressure. In my case, I generally get around 3V when unoccupied and 1V when occupied. Naturally doing things like lifting up the mattress to change sheets can cause false readings, but I do try to account for those in my automations. I also have any 'occupancy' automations limited to certain times of the day. With all this taken together, I've not had any false occupancy/non-occupancy issues regarding the triggering of the window AC unit. Since the voltage can bounce a bit, especially as you move around in bed, if you are wanting to use this for some sort of "instant" action (such as turning on under bed lighting), it may not be the ideal system as simply rolling over in the middle of the night could result in a trigger. In my case, I look for a state change that lasts for at least 5 minutes before an automation fires, so this will account for things like shifting while in bed. But at least for the first 7 months, it has worked out just fine for controlling the AC unit. This could change in a year, two years, etc... but for now, it has been working as expected.