|
|
|
|
|
by dracotomes
2 days ago
|
|
I don't know if there is a pre-made solution but it's easily doable using something like an ESP32 or a Pico W and a little soldering.
Maybe ESPHome has IR support but I used a micropython library and a spreadsheet to decipher a Mitsubishi Heavy IR remote. You can then use the same library to play a string of bits through an IR LED[1].
You can get IR receivers and transmitters for cheap on Amazon. You can pair that with any commonly used sensor (DHT22, HTU21, etc... I prefer the BME280), for all of which you can find libraries on GitHub and breakout boards cheaply online.
Then you could either implement a small web server to control it standalone or an MQTT client to control it from i.e. Home Assistant.
If you use an I2C sensor, and something like this[2] you don't even need to solder anything you can just connect it all using those DuPont cables and stuff it in a box. [1] https://github.com/peterhinch/micropython_ir/issues/46
[2] https://www.tindie.com/products/maxmixproject/power-bus/ |
|