RFLink-ESP
RFLink-ESP copied to clipboard
CANNOT GET IT TO WORK
Hallo Schmurtz, you did a great job with this software, thanks for sharing it. Sadly enough i can't get it to work properly. A long story short: I moved the "#endif" in RFL_Protocol_Base.h to right after "MQTT_Client.publish(Topic...etc". I compiled with "#define ESP8266" just after the version information, and defined both RS232 and MQTT. Uploaded the sw on a Wemosd1. In domotics i configured a hardware RFLink_Gateway_USB, (the MySensors Gateway does nothing).
Everything seems to work, i can control a kaku device via domoticz, It switches but domoticz says Error sending switch command, check device/hardware (idx=2) and the log shows a TX time out error. And no configuration page shows up, i hardcoded the serverName and topic. Although i edited the regexes, didn't help.
These are the problems i am facing after a lot of time consuming experiments. Maybe i overlooked something, can you (or someone else) please point me in the right direction? Thanks in advance.
The following is a summary of my experiments. I installed the software on a WEMOSd1, i think the hardware is oke. The raspberry domoticz system works well with a classic rflink on a mega board. I compiled with "#define ESP8266"just after the version information, and defined RS232 (not MQTT). No rf signal reception observed, not in serial monitor nor domoticz or homepage.
I compiled with "#define ESP8266"just after the version information, and defined both RS232 and MQTT.
i have rf signal reception (the receiver works) and i can register devices in domotics. When i control the device via domoticz, it switches (so the transmitter works) but i get an RX time out error.
When i compile with only mqtt i see reception of signal in the serial monitor. In domoticz i see no receptions. not in the log nor the device learning. Sending with the registered devices gives the TX time out error. In the webpage of the rflink i see receptions as well. But i never see the settings page.
I discovered that only when MQTT is defined ( see RFL_Protocol_Base.h ), a message is displayed on serial port and webpage. I think the #endif should be placed right after "MQTT_Client.publish(Topic...etc".
After i changed that i compiled with MQTT defined. Now i see receptions in serial monitor and domotics. Can control a registered switch but get the TX time out error. In domoticz i configured as hardware RFLink Gateway USB. Now i have seen somewhere a suggestion that the hardware should be a MySensors Gateway. When i try this, nothing worked anymore an no detection of this hardware in the log.
I feel that i overlooked something, can you please point me in the right direction? Thanks in advance.