Hello,
I’m using the last version of OMG on a ESP8266 12E NodeMCU.
I have keep default PIN :
RF RX : D3 Pin
RF TX : RX Pin
my RF signal is a new_kaku like and Reception is OK :
home/OpenMQTTGateway/PilighttoMQTT {"message":{"id":17870848,"unit":1,"state":"off"},"protocol":"arctech_switch","length":"17870848","repeats":2,"status":2}
home/OpenMQTTGateway/PilighttoMQTT {"message":{"id":17870848,"unit":1,"state":"down"},"protocol":"arctech_screen","length":"17870848","repeats":2,"status":2}
home/OpenMQTTGateway/PilighttoMQTT {"message":{"id":17870848,"unit":1,"state":"off"},"protocol":"arctech_dimmer","length":"17870848","repeats":2,"status":2}
home/OpenMQTTGateway/PilighttoMQTT {"message":{"id":17870848,"unit":1,"state":"closed"},"protocol":"arctech_contact","length":"17870848","repeats":2,"status":2}
This is a Power Switch, so I think a must keep : "protocol":"arctech_switch"
Now I’m trying to send the signal with :
mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTtoPilight" -m '{"message":"{\"systemcode\":17870848,\"unitcode\":1,\"off\":1}","protocol":"arctech_switch","length":"17870848","repeats":2,"status":2}'
but it fails. Here is the log from Serial :
Hey I got a callback
MQTTtoPilight json data analysis
MQTTtoPilight msg & protocol ok
pilight(3): arctech_switch: insufficient number of arguments
message is invalid
Does anyone has already find how to send this kind of message ?
Many Thanks.
Minims.