Struggling to send RF Signal

Hi All,

I am new to OMG and struggling to send RF commands.

I have a NodeMCU and this RF Module connected to it. I am able to receive the RF signal from a remote of the light switch but when I try to send that code back to turn off the light, nothing happens.

I have connected NodeMCU to Serial Monitor and these are the logs:

*WM: AutoConnect
*WM: Connecting as wifi client...
*WM: Using last saved values, should be faster
*WM: Connection result: 
*WM: 3
*WM: IP Address:
*WM: 192.168.1.33
connected...yeey :)
saving config
failed to open config file for writing
{"mqtt_server":"192.168.1.2","mqtt_port":"1883","mqtt_user":"username","mqtt_pass":"password"}*WM: freeing allocated params!
OpenMQTTGateway mac: 
84:F3:EB:81:44:72
OpenMQTTGateway ip: 
192.168.1.33
1883
Connecting to MQTT by IP adress
192.168.1.2
RF_EMITTER_PIN 
4
RF_RECEIVER_PIN 
15
RF setup ok
MQTT_MAX_PACKET_SIZE
1024
Setup OpenMQTTGateway end
MQTT connection...
Connected to broker
Subscription OK to the subjects

This is what I get when I press the RF Remote button:

Rcv. RF
isAduplicate?
switchRFDiscovery
CreateDiscoverySwitch
5038820
Pub json into:
homeassistant/switch/84F3EB8144725038820/config
{"stat_t":"home/OpenMQTTGateway/433toMQTT","name":"5038820","uniq_id":"84F3EB8144725038820","pl_on":"5038820","cmd_t":"home/OpenMQTTGateway/commands/MQTTto433","device":{"name":"OpenMQTTGateway","manufacturer":"OMG_community","sw_version":"0.9.1","identifiers":["84F3EB814472"]}}
Pub json into:
home/OpenMQTTGateway/433toMQTT
{"value":5038820,"protocol":1,"length":24,"delay":277}
Store to avoid duplicate
Min ind: 
0
store code :
5038820/89418
Col: val/timestamp
0:5038820/89418
1:0/0
2:0/0
3:0/0
4:0/0
5:0/0
6:0/0
7:0/0
8:0/0
9:0/0
10:0/0
11:0/0
Rcv. RF
isAduplicate?
--don't pub. duplicate--
Hey I got a callback 
Store signal
Min ind: 
1
store code :
5038820/89574
Col: val/timestamp
0:5038820/89418
1:5038820/89574
2:0/0
3:0/0
4:0/0
5:0/0
6:0/0
7:0/0
8:0/0
9:0/0
10:0/0
11:0/0
Data JSON stored

Now to send back the RF signal through MQTT I publish this MQTT message:

mosquitto_pub -h 192.168.1.2 -p 1883 -u username -P password -t "home/OpenMQTTGateway/commands/MQTTto433" -m '{"value":5038820}'

And this is the result on Serial Monitor:

Hey I got a callback 
MQTTtoRF json
MQTTtoRF OK
Pub json into:
home/OpenMQTTGateway/433toMQTT
{"value":5038820}
Hey I got a callback 
Store signal
Min ind: 
4
store code :
5038820/274619
Col: val/timestamp
0:5038820/89418
1:5038820/89574
2:1448/241121
3:1448/241179
4:5038820/274619
5:0/0
6:0/0
7:0/0
8:0/0
9:0/0
10:0/0
11:0/0
Data JSON stored

What do you think could be the issue here?

Hello,

It can be an issue with your emitter wiring, is it correctly powered?
Did you try to check with a led if a signal is applied to its signal pin?

I think the wiring should be good since when i send the mqtt topic I manage to get that code also to rf receiver (i see that on hassio).

This code is only an acknowledgement. Not a received one.

Have you tried sending the other parameters, protocol length and delay, with the payload? I have a doorbell that will only respond if I send the delay parameter as well, as it is outside the range of the default value.

1 Like

Apparently this was a physical issue with my RF transmitter. I bought a new one and it is working flawlessly with an RF switch but I have an issue with my roller shutters. In the back of my remote (see below) it says 433.93MHz but i am NOT able to receive the RF signal (with broadlink I did but when tried to transmit, nothing happened). Attached is the remote and also the motor that I use for my rolling shutters. I would appreciate your feedback.

Motor of the roller shutter as well (since it was not allowing me to upload more then 1 pic)