| Pronouns | they/them |
| Personal website | https://michd.me |
| Github | https://github.com/michd |
| Pronouns | they/them |
| Personal website | https://michd.me |
| Github | https://github.com/michd |
Started building the lil' web tool to help reverse engineer this. Screenshot description: A webpage with 2 sections: "Pick file" and "Graphs". Graphs has a config subsection where you can set a time window in milliseconds, currently set to 100. There there are two rows of 8 square boxes each, each with a number at the top. The first two display a waveform: two cycles of a sine wave, and two cycles of a saw-tooth. The rest are blank, only showing a reticle.
The graphs are fake data for now.
After another day of hacking, I got this working.
I fixed the bug in #esphome earlier today and just now submitted the pull request: https://github.com/esphome/esphome/pull/5411
Then I spent the rest of the afternoon determining the specifics of the protocol used by this remote with the help of my oscilloscope. I'm now at least able to turn this heater on and off from Home Assistant. :)
Picture is screenshot of the oscilloscope with reference of original remote and what esphome is producing, finally matching. :)
What does this implement/fix? Enables the use of RC Switch protocol with IR Remote transmitters, by setting the carrier frequency to 38kHz. The RC Switch protocol can be used for both RF and IR rem...
Spent most of my afternoon and late evening trying to debug a weird issue with infrared LED and receiver and #esphome; getting the scope out, and finally realising that for remote_transmitter.transmit_rc_switch_raw, esphome isn't actually modulating the signal. Not a weird hardware issue with my LED/sensor/esp32 board etc, but a bug in esphome 🙃
Guess I'll have a crack at fixing it in esphome myself tomorrow or something.
Today's fun: replacing the A/C Wifi control hack I wrote up here: https://michd.me/blog/integrating-our-air-conditioners-into-home-assisstant/ with a much cleaner approach: a purposely designed circuit board.
Ripping out this patched up board + wire mess + 3D printed box and replacing it with a simple board felt much like code refactoring and deleting. Very satisfying.
Not content with what I wrote up here, I decided to take it a bit further. Why not replace the PCB carrying the infrared receiver with a custom one that has an ESP32 module right on board?
Fingers crossed I can actually get it programmed; so far I've never used ESP32 modules outside of a pre-made development board.
New blog post: Integrated our air conditioners into #HomeAssistant with #ESPHome and a light bit of equipment hacking to integrate it tidily.
Details and good photos included.
https://michd.me/blog/integrating-our-air-conditioners-into-home-assisstant/