I successfully converted a tuya IR/RF smart remote to esphome, meaning that now I can use esphome to program it
I’m a newbie with esphome, this is my first experience.
Before conversion, I managed to use the remote to manage a RF ceiling fan with its lamp and an IR AirCon.
Now I see I can learn the commands, both IR and RF, but sincerely I don’t know how to start.
for the IR part, I’d like to use it with SmartIR (which I’m already using for an identical aircon), just not to re-learn all the commands.
I see that SmartIR can be used with esphome, but I don’t understand how
for the RF one, which is the easiest way? a fan and lamp object on esphome? and if so, how do I send commands? I totally missed it.
Finally, I’d like (but it’s not a priority) con use the receiving capacity of my blaster to keep in sync HA if I use the lamp/aircon remote. is it feasible?
With IR and low-tech RF (which is the majority of devices and which is probably yours since you already managed to easily interface with it), you have no way to know the actual state of the device. Meaning you can’t keep in sync if you use HA + another controller like a remote. Even with just HA it’s not a reliable state : your blaster could have sent the command, but the device could have missed it.
For RF, I think the easiest is to flash a Sonoff RF bridge with ESPHome, but I know no more about it. I started with OpenMqttGateway, built their ESP-based device (I used SRX882 & STX882), then I moved to ESPHome. Here’s an extract of the YAML if it can help you: