Help to construct mosquitto_pub command MQTTto433


#1

Hello
I have Sonoff RF Bridge
Firmware 0.9beta
Serveur mosquitto ok
When i press telecommande button
RF_led blink and serial console show me

Creating SRFB buffer
isAduplicate?
Adv data SRFBtoMQTT
Pub json into:
home/OpenMQTTGateway001/SRFBtoMQTT
{“raw”:“24EA017C03AC151557”,“value”:“1381719”,“delay”:“9450”,“val_Thigh”:“380”,“val_Tlow”:“940”}

And terminal watching mosquitto whith command mosquitto_sub -h localhost -t “#” -v show me
home/OpenMQTTGateway001/SRFBtoMQTT {“raw”:“24E0017C03AC151557”,“value”:“1381719”,“delay”:“9440”,“val_Thigh”:“380”,“val_Tlow”:“940”}

Receive work good, now i want simulate send
I have read https://github.com/1technophile/OpenMQTTGateway/wiki/User-guide-RF

First i don’t know what protocol is used
I’ll try to publish only raw like this (192.168.0.66 is mys moquitto server):
mosquitto_pub -h 192.168.0.66 -t home/OpenMQTTGateway001/commands/MQTTto433 -m 24EA017C03AC151557
In serial console
I see
Activated modules
SRFB
Hey I got a callback
Creating Json buffer

But nothing else
I’ll try different soluce like

mosquitto_pub -h 192.168.0.66 -t home/OpenMQTTGateway001/commands/MQTTto433 -m ‘{“raw”:“24D6017C03AC151557”,“value”:“1381719”,“delay”:“9430”,“val_Thigh”:“380”,“val_Tlow”:“940”}’
or
mosquitto_pub -h 192.168.0.66 -t home/OpenMQTTGateway001/commands/MQTTto433/24EA017C03AC151557 -m 1381719
or
mosquitto_pub -h 192.168.0.66 -t home/OpenMQTTGateway001/commands/MQTTto433/raw -m 24EA017C03AC151557

But always just Creating Json buffer in seral console and i think nothing is emmetted.

Best regard


#2

Here is the relevant documentation chapter:


#3

Very good, that is exactly what i need.
I try and it work very well, now i have all information
For information i’m going to use OMG with Jeedom
Sorry for your lost time i have confused RF and SRFB


#4

No problem,
would it be possible to give us some information about how you will interface OMG with Jeedom (post a dedicated topic for example or write a wiki page)?


#5

Of course, i prepare this.