I am using a 433mhz sending module (FS1000A) on my ESP. Have connected it to D1, and I see on the PI that data is
received:
# rtl_433 -F json
...
{"time" : "2021-05-28 21:12:43", "model" : "Waveman-Switch", "id" : "O", "channel" : 4, "button" : 1, "state" : "off"}
{"time" : "2021-05-28 21:12:43", "model" : "Waveman-Switch", "id" : "O", "channel" : 4, "button" : 1, "state" : "off"}
{"time" : "2021-05-28 21:12:43", "model" : "Waveman-Switch", "id" : "O", "channel" : 4, "button" : 1, "state" : "off"}
{"time" : "2021-05-28 21:12:43", "model" : "Waveman-Switch", "id" : "O", "channel" : 4, "button" : 1, "state" : "off"}
{"time" : "2021-05-28 21:12:43", "model" : "Waveman-Switch", "id" : "O", "channel" : 4, "button" : 1, "state" : "off"}
The esp code I am using is:
#include <ESPiLight.h>
#define TRANSMITTER_PIN 5
ESPiLight rf(TRANSMITTER_PIN);
void setup() {
}
void loop() {
rf.send("elro_800_switch", "{\"systemcode\":17,\"unitcode\":1,\"on\":1}");
delay(2000);
rf.send("elro_800_switch", "{\"systemcode\":17,\"unitcode\":1,\"off\":1}");
delay(2000);
}
But somehow, the data I am using in the rf.send command is not received on my PI.
Best Regards,
Ralf