I have a ceiling lamp hooked up to a wemos running ESPHome (let’s call this wemos 1) that I want to be able to control using from another ESPHome (let’s call this wemos 2). Basically, I want the ceiling lamp to turn on when a light that is connected to wemos 2 is turned on as well using a 433 Mhz RF transmitter and receiver module. So the wemos 2 would send a remote command via RF when the light is switched on, and then the RF receiver on wemos 1 would receive this as a state change on a binary switch which then would turn on and off the ceiling lights. Is this possible using the remote transmitter and receiver component? How do I correctly set this up?
These are the RF modules that I’m trying to set up:
I know how to set up the automations, I’m just having trouble finding resources on setting up the transmitter and receiver component on ESPHome. Which remote transmitter action do I use? Is it remote_transmitter.transmit_rc_switch_raw? What code do I use?