i tried to flash the code to my NodeMCU (ESP8266). But everytime i try to compile the code i get this errors: ZgatewayIR:32: error: 'IRrecv' does not name a type ZgatewayIR:33: error: 'IRsend' does not name a type
I have the following libs installed:
IRRemote
IRRemoteEsp8266
PubSubClient
rc-switch
Yes your receive this message because you took the last version of irremoteesp8266 library instead of the linked one.
The library linked into the openmqttgateway is the 1.2.0.
Here is the link that you have into the libraries folder:
I do however, have a gateway listening to the codes the energenie remote sends, which you should be able to use to transmit from the openmqttgateway.
switch (MQTTvalue) {
case 4000398: // rc button 1 off
case 4000399: // rc button 1 on
case 4000390: // rc button 2 off
case 4000391: // rc button 2 on
case 4000394: // rc button 3 off
case 4000395: // rc button 3 on
break;
case 4000386: // rc button 4 off
break;
case 4000387: // rc button 4 on
break;
case 4000396: // rc button all off
case 4000397: // rc button 4 on
Please avoid posting the same message on different topics. This will not bring more reactivity or more qualitative answers, it will only pollute the topics on which the answer will not be given.
This means that you have a problem with your broker authentication and this is not related with OpenMQTTGateway.
If your broker is installed locally I suggest to remove authentication on it for your first tests.
Hi,
I am receiving IR code on Serial Monitor and putty as well and I declare it on HA, when I turn on light through HA it sends command as I can see in Serial Monitor “Hey I got a callback
16503341”
IR code is “16503341”
but light is not turning on, I also have put simple LED instead of IR LED but simple led is not turning on when I send command through HA/MQTT even I press button on the remote nothing happening.
Led light blink when I re-plug NodeMCU or open serial monitor.