Hi All, What a nice project this is!
I have a KAKU ACD-1000 and Flamingo SF-501P SWITCH that doesn’t respond on OMG Signal:
- I’m Receiving data from RF signal (see below).
- Send data by MQTT to convert it on RF signal looks good in the serial monitor (see below).
- I followed the troubleshooting steps (see below).
Now I ask for help, because I’m running out of time, I want to switch my light on/off when I’m on holiday. No pressure of course, this is a first world problem
Does anybody see what I’m doing wrong?
Help is very appreciated.
KR, Winston
TROUBLESHOOTING
Not able to send or receive RF or IR:
- Verify your power supply voltage with a multimeter
DONE, this is 4,9V - Verify your wiring
DONE, other software is working ok - To eliminate issues of OpenMqttGateway or you home controller try uploading basic examples from the libraries directly
DONE, the NewRemoteSwitch library works with the same hardware setup - If you are only unable to receive RF on nodemcu
N/A, this works
=============================
Receiving data from RF signal
pi@raspberrypi:~ $ sudo mosquitto_sub -t +/# -v
home/OpenMQTTGateway/version 0.9.1
home/OpenMQTTGateway/LWT online
home/OpenMQTTGateway/SYStoMQTT {“uptime”:120,“freeMem”:46008,“rssi”:-75,“SSID”:“AMICE”,“modules”:“RF2”}
home/OpenMQTTGateway/RF2toMQTT {“unit”:1,“groupBit”:0,“period”:260,“address”:1939456,“switchType”:0}
============================================
Send data by MQTT to convert it on RF signal
pi@raspberrypi:~ $ mosquitto_pub -t “home/OpenMQTTGateway/commands/MQTTtoRF2” -m “{“unit”:1,“groupBit”:0,“period”:262,“address”:1939456,“switchType”:1}”
===============
Serial Monitor:
15:18:30.188 → Hey I got a callback
15:18:30.188 → MQTTtoRF2 json
15:18:30.188 → MQTTtoRF2 switch type ok
15:18:30.188 → MQTTtoRF2
15:18:30.188 → 8233378
15:18:30.188 → 1
15:18:30.188 → 262
15:18:30.188 → 0
15:18:30.188 → 1
15:18:30.188 → -1
15:18:30.188 → Sending
15:18:31.456 → MQTTtoRF2 OK
15:18:31.456 → Pub json into:
15:18:31.456 → home/OpenMQTTGateway/433toMQTT
15:18:31.456 → {“unit”:1,“groupBit”:0,“period”:262,“address”:1939456,“switchType”:1}
15:18:42.360 → Uptime (s)
15:18:42.360 → 480
15:18:42.360 → Remaining memory
15:18:42.408 → 46008
15:18:42.408 → RSSI
15:18:42.408 → -71
15:18:42.408 → SSID
15:18:42.408 → AMICE
15:18:42.408 → Activated modules
15:18:42.408 → RF2
15:20:42.375 → Uptime (s)
15:20:42.375 → 600
15:20:42.375 → Remaining memory
15:20:42.375 → 46008
15:20:42.375 → RSSI
15:20:42.375 → -76
15:20:42.375 → SSID
15:20:42.375 → AMICE
15:20:42.375 → Activated modules
15:20:42.375 → RF2
=====================
User_config.h MODULES
/-------------DEFINE THE MODULES YOU WANT BELOW----------------/
//Addons and module management, comment the Z line
//#define ZgatewayRF “RF” //ESP8266, Arduino, ESP32
//#define ZgatewayRF315 “RF315” //ESP8266, Arduino, ESP32
//#define ZgatewayIR “IR” //ESP8266, Arduino, Sonoff RF Bridge
//#define ZgatewayLORA “LORA” //ESP8266, Arduino, ESP32
//#define ZgatewayPilight “Pilight” //ESP8266, Arduino, ESP32
//#define ZgatewayBT “BT” //ESP8266, Arduino, ESP32
#define ZgatewayRF2 “RF2” //ESP8266, Arduino, ESP32
…
config_RF.h PIN DEFENITIONS
/-------------------PIN DEFINITIONS----------------------/
#ifdef ESP8266
#define RF_RECEIVER_PIN 5// D3 on nodemcu // put 4 with rf bridge direct mod
#define RF_EMITTER_PIN 4 // RX on nodemcu if it doesn’t work with 3, try with 4 (D2) // put 5 with rf bridge direct mod
…