top | item 44632576

(no title)

mianos | 7 months ago

I just have some IR LEDs on an esp8266 in the same room as my Daikin and run tasmota. It works perfectly. I have temp control and fully remote automation.

discuss

order

RebeccaTheDev|7 months ago

This is what I did to control an DeLonghi electric oil radiator in my home office. And since it takes a couple hours to warm up, I have it connected to Home Assistant to turn on a couple hours before my workday starts - and also sync'd to my work calendar so it doesn't do it on days I'm not working. And then turn off again at the end of the day.

Ended up setting it up as a virtual thermostat along with a Zigbee temperature sensor and letting HA manage the the whole thing. After a few months of hacking and tweaking, it works pretty well!

But, there were a few problems with this approach:

* The IR code to turn on and turn off were the same code (which makes sense if you look at the unit, there's just an on-off toggle button)

* No temperature control. On the heater itself, you can adjust the temperature as well as a high/medium/low setting. The remote didn't have these settings, so I couldn't capture them using an IR receiver sensor. Thankfully, these settings persist when the unit is off so I just set them once and called it good enough. And I eventually got around the need for this by setting up the virtual thermostat with a Zigbee temperature sensor in the room.

But the biggest problem is that I had no way to know if the unit was actually ON.

The codes sometimes wouldn't work unless the IR blaster was pointed directly at the unit, and even then they will sometimes randomly fail. I ended up plugging it into a Zigbee plug with power monitoring, so I could tell from the power draw if it was on, and try to re-send the commands a few times if it failed to turn on.

Overall, it was kind of a fun way to make a dumb device smart, but what OOP is doing is way cooler.

brk|7 months ago

Home Assistant supports a variety of plug-in watt meters. I have some smart plugs that have a current meter built in, you wouldn't need to use the On/Off of the plug, just have Home Assistant read the current power consumption value and branch your logic from there.

mianos|7 months ago

I have one of those little Xiaomi LCD temperature meters in the room as well.

I actually have more than one LED on my device. It's in the opposite corner and points to the air-conditioning unit that is fixed. In this scenario I can't ever recall it not working 100%.

My automation is in nodered and I heat or cool the bedroom to 18C and turn the the unit off.

stavros|7 months ago

I tried that but the IR LEDs were too directional. In the end I got a little $7 device off Ali that connects to the Tuya API. The API works passably well (I'd rather connect directly, but eh), but the hardware is great, it works from any position in the room, even without line of sight.

darkwater|7 months ago

How did you teach it the IR language it has to speak?

snickerdoodle12|7 months ago

I've done the same for an AC that wasn't supported by IRDB at the time. Just went through recording every possible combination, was a boring 30 minutes but it's worked perfectly ever since.