I tried like:
mosquitto_pub -t “home/OpenMQTTGateway_ESP8266_RF/commands/MQTTto433” -m ‘{“value”: 628740,“protocol”: 26,“length”: 19,“delay”: 738}’
mosquitto_pub -t “OMG/OpenMQTTGateway_ESP8266_RF/commands/MQTTto433” -m ‘{“value”: 628740,“protocol”: 26,“length”: 19,“delay”: 738}’.
I use the same pins and configuration as in the documentation.
But i have the same issue like earlier. Switch send the message, gateway receives the message, the template it’s working, but the cover do not respond.
@1technophile I changed the hardware, I tried with a D1 mini 8266, I changed the pins and everything I could, RX, TX, but with the same result. I receive the same answer I try to send and it does not activate the shutters.
I don’t know how to try again.
I pressed the remote control button and I received this code (close value):
{
“value”: 628741,
“protocol”: 26,
“length”: 19,
“delay”: 734
}
After which I published this code (open value):
{
“value”: 628736,
“protocol”: 26,
“length”: 19,
“delay”: 734
}
And it also changed in the receiver. From here I understand that the code was sent correctly.
I will attach the pictures in the same order as the steps above.
But the cover it’s not working…
Hi, @1technophile i managed to set the second rf, but when I give the command in home / OpenMQTTGateway / commands / MQTTto433 it is not set in the second one.
I tried both ways and neither received the signal.
There seems to be a problem here. And there’s something else. The moment I set other pins, I get a different answer every time I press the same button.
I have another topic here and it’s some photo with my remote.
On your setup I don’t see any ground wire connected to the ESP. The ESP, the emitter and the receiver should all have their grounds(-) connected together.
I managed to get an answer because I also put vin and gnd from the microcontroller, but every time I press a button, I receive a different code. I don’t get it every time I press. I don’t know what to do.
I suggest that before trying to control your shutter or see what you are receiving with the button, you finish the test setup. Once done you will be able to see if your devices are compatible.
Note that the 2 gateways must have a different MQTT gateway name.
With the 2 ESP, you could try to send a message from one, see if the other one receive it (either by the serial monitor or an MQTT broker client). And the other way around.
If both setup are working properly (you receive what you send in both directions), you can see now if your device is compatible.
@1technophile
Now i use esp32, but every time when i press on remote button, I receive a new code. Maybe my remote is not compatible…
Thank you for all your help.
But as I said, before checking the remote and to “certify” your setup, you should send from one ESP to another an RF signal by pushing an MQTT command. If this works constantly you can say that this is your remote. If not this is your setup.
@1technophile
Something strange is happening. When I send the signal from one setup, the other receiver receives something else: for example I send:
{
“value”: 628736,
“protocol”: 26,
“length”: 19,
“delay”: 737
}
And the other one receives:
{“Value” 52224, “protocol” 5 “length” 18, “delay”: 897}
If I send high values such as: 258507434, the receiver receives something else, but if I send lower values such as 66867, the receiver receives correctly.