Hi all,
My first post on the forum because I’m at a loss. I can’t get the RF2 to work, problem sounds much like:
https://kaku-acd-1000-and-flamingo-sf-501p-switch-dont-respond-on-omg-rf2-sent-signal
I’ve tested on master branch and developement (both cloned on May 13th)
In the serial monitor I can see my button press:
N: Subject: /RF2toMQTT
N: Received json : {“unit”:9,“groupBit”:0,“period”:262,“address”:28861626,“switchType”:1}
T: jsonPublishing
T: simplePublishing
T: Creating RF2 buffer
T: Rcv. RF2
N: Subject: /RF2toMQTT
N: Received json : {“unit”:9,“groupBit”:0,“period”:262,“address”:28861626,“switchType”:0}
But this doesn’t work:
T: Hey I got a callback home/OpenMQTTGateway/commands/MQTTtoRF2
N: Received json : {“unit”:9,“groupBit”:0,“period”:262,“address”:28861626,“switchType”:0}
Finally I’ve tested the Dimmer sketch example from the NewRemoteSwitch library, that worked!
NewRemoteTransmitter transmitter(28861626, 4, 260, 3);
transmitter.sendDim(9, );
The build flags:
build_flags =
${com-arduino.build_flags}
‘-DZgatewayRF=“RF”’
‘-DZgatewayRF2=“RF2”’
‘-DRF_RECEIVER_GPIO=1’ #D3 on UNO
‘-DRF_EMITTER_GPIO=4’ #D4 on UNO
‘-DZsensorDHT=“DHT”’
‘-DDHT_RECEIVER_GPIO=8’ #D8 on UNO
‘-DZsensorDS1820=“DS1820”’
‘-DDS1820_OWBUS_GPIO=2’ #D2 on UNO
‘-DZgatewayIR=“IR”’
‘-DIR_RECEIVER_GPIO=9’ #D9 on UNO
‘-DZmqttDiscovery=“HADiscovery”’
;‘-DsimplePublishing=true’
‘-DsimpleReceiving=true’
‘-DjsonPublishing=true’
‘-DjsonReceiving=true’
‘-DLED_RECEIVE=7’ # red D7 on UNO
‘-DLED_SEND=6’ #orange D6 on UNO
‘-DLED_INFO=5’ #green D5 on UNO
‘-DGateway_Name=“OpenMQTTGateway”’
‘-DNTP_SERVER=“pool.ntp.org”’
‘-DLOG_LEVEL=LOG_LEVEL_TRACE’
I’ve tested both simpleReceiving as well as json.
Checked, re-checked and triple checked my connections and power. (and then checked again)
Anybody got some ideas where to look?
Regards,
Bert