433mhz, infrared IR to and from MQTT on ESP8266

I dint tryed your latest build. But should it fix the random disconnects?

Hi @1technophile,

I saw a new wiring on the webpage! is that one definitive? Or should we expect changes until v5? :slight_smile:

Hello,

Yes here is some infos about it :

It will not change on v0.5 and I hope after but I don t know what the future will bring ; -)

@all, if you want you can vote in the github issues list by adding +1 to the next enhancement you would like to see in the next release click on the smiley on the top right of the issue description


For example did I should better work on Json/homie implementation or xiaomi miflora integration.

It will enable to have the community opinion on the next priorities

1 Like

Still have the issue with clone Hm-10
Should I flash the lastest one?

You mean with the master version ?

Yes, I modify the file of v0.4

Ok i m going to provide you some other test to do. Thanks for the feedback

Got some feedback for you:

The default (new) receiver port assignment of the RF gateway isnt working correctly. Dint had any codes beeing received on the serial monitor and the MQTT server. When I changed it to gpio 4 (D2) it recognized the codes and put it on the mqtt server.

From the previous DC issue I had the problem that I overflooded the ESP8266 with codes bc my automation went crazy all the time.

One last thing. The commenting on making the gateway having a static IP has the wrong lines into the comment (dont know the right ones but it should be something else).

If you need any help on testing stuff just PM me.

Hello, you mean that with the receiver on D3 your setup is not working ?

Yes the new assigned receiver port is by default on D3. I changed it to D2 and now it works again.

I’m not reproducing this behaviour, are you using RF and RF2 gateway at the same time?
What are the sensors and gateway activated in the user_config.h?

This is how my user config looks like:

/*  
  OpenMQTTGateway  - ESP8266 or Arduino program for home automation 

   Act as a wifi or ethernet gateway between your 433mhz/infrared IR signal  and a MQTT broker 
   Send and receiving command by MQTT
 
  This program enables to:
 - receive MQTT data from a topic and send RF 433Mhz signal corresponding to the received MQTT data
 - publish MQTT data to a different topic related to received 433Mhz signal
 - receive MQTT data from a topic and send IR signal corresponding to the received MQTT data
 - publish MQTT data to a different topic related to received IR signal
 - publish MQTT data to a different topic related to BLE devices rssi signal
  
    Copyright: (c)Florian ROBERT
  
    This file is part of OpenMQTTGateway.
    
    OpenMQTTGateway is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    OpenMQTTGateway is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

/*----------------------------USER PARAMETERS-----------------------------*/
#define SERIAL_BAUD   115200
/*-------------DEFINE YOUR WIRING TYPE BELOW----------------*/
// Choose between "I2C_Wiring" OR "Classic_Wiring" OR "RFM69_Wiring"
// Please Note: I2C Wiring,Classic Wiring and RFM69_Wiring uses different Pins for all Modules, see PIN definitions into the wiki
//#define I2C_Wiring // With Support for I2C Modules and the associated libraries BH1750 and BME280
//#define RFM69_Wiring // following file img/OpenMQTTGateway_IR_RF_RFM69.png
#define Classic_Wiring // following file img/OpenMQTTGateway_IR_RF_BT.png
/*-------------DEFINE YOUR NETWORK PARAMETERS BELOW----------------*/
//MQTT Parameters definition
#define mqtt_server "192.168.0.xx"
//#define mqtt_user "your_username" // not compulsory only if your broker needs authentication
//#define mqtt_password "your_password" // not compulsory only if your broker needs authentication
#define mqtt_port 1883
#define Gateway_Name "OpenMQTTGateway"
#define will_Topic "home/OpenMQTTGateway/LWT"
#define will_QoS 0
#define will_Retain true
#define will_Message "Offline"
#define Gateway_AnnouncementMsg "Online"

/*-------------DEFINE YOUR NETWORK PARAMETERS BELOW----------------*/
// Update these with values suitable for your network.
#ifdef ESP8266 // for nodemcu, weemos and esp8266
  #define wifi_ssid "xxx"
  #define wifi_password "xxxx"
#else // for arduino + W5100
  const byte mac[] = {  0xDE, 0xED, 0xBA, 0xFE, 0x54, 0x95 }; //W5100 ethernet shield mac adress
#endif

const byte ip[] = { 192, 168, 0, xx }; //ip adress
// Advanced network config (optional) if you want to use these parameters uncomment line 158, 172 and comment line 171  of OpenMQTTGateway.ino
const byte gateway[] = { 192, 168, 0, x }; //ip adress
const byte Dns[] = { 8, x, x, x }; //ip adress
const byte subnet[] = { 255, 255, 255, 0 }; //ip adress

/*-------------DEFINE YOUR OTA PARAMETERS BELOW----------------*/
#define ota_hostname "OTAHOSTNAME"
#define ota_password "OTAPASSWORD"
#define ota_port 8266

/*-------------DEFINE THE MODULES YOU WANT BELOW----------------*/
//Addons and module management, comment the Z line and the config file if you don't use
#ifdef ESP8266 // for nodemcu, weemos and esp8266
//  #define ZsensorDHT
//  #include "config_DHT.h"
  #define ZgatewayRF
  #include "config_RF.h"
 // #define ZgatewayRF2
  //#ifdef RFM69_Wiring
   // #define ZgatewayRFM69
  //include "config_RFM69.h"
  //#endif
  //#define ZgatewayIR
  //#include "config_IR.h"
  //#define ZgatewayBT
  //#include "config_BT.h"
  //#ifdef I2C_Wiring // to use the sensor below the gateway should wired with I2CWiring, see PIN DEFINITIONS below
    //#define ZsensorBH1750
    //#include "config_BH1750.h"
    //#define ZsensorBME280
    //#include "config_BME280.h"
  //#endif
#else // for arduino + W5100
 // #define ZgatewayRF
  //#include "config_RF.h"
 // #define ZgatewayRF2
  //#ifdef RFM69_Wiring
    //#define ZgatewayRFM69 not tested
    //#include "config_RFM69.h"
#endif
  //#define ZgatewayIR
  //#include "config_IR.h"
  //#define ZgatewayBT
  //#include "config_BT.h"
  //#define ZsensorDHT
  //#include "config_DHT.h"
  //#define ZsensorBH1750
  //#include "config_BH1750.h"
  //#define ZsensorBME280
  //#include "config_BME280.h"
  
//#endif/*----------------------------OTHER PARAMETERS-----------------------------*/
/*-------------------CHANGING THEM IS NOT COMPULSORY-----------------------*/
/*--------------MQTT general topics-----------------*/
// global MQTT subject listened by the gateway to execute commands (send RF, IR or others)
#define subjectMQTTtoX "home/commands/#"
#define subjectMultiGTWKey "toMQTT"

/*-------------------ACTIVATE TRACES----------------------*/
#define TRACE 1  // 0= trace off 1 = trace on

Can I debugg myself? How?

could you post your user_config.h (remove password and personal info)?

could you update to the last master version and see if it works with D3?

Still having the same issue. I reverted it back to D2 again.

Strange, you said you’ve tried with several nodemcu but was it the same issue ?

change the TimeBtw_Read time,and now the gateway working well for 48 hours

Yes I tried several other esp8266 nodemcu boards. Maybe its a problem with one batch of boards. If others dont complain about it I do think its a problem of my own boards. I only had to change the RF pin on the RF_config file and it works like a charm.