RESOLVED:
I modified @perivar’s rcswitch to accept pulse length in the new constructor and now successfully controlling outlets from SmartThings via Nodemcu! Thank you!
(leaving original notes below for reference)
Okay so the mega can receive/send the codes and it works w/ the outlets. The nodemcu can interact receive/send updates from Smartthings; however, the code send isn’t working on the nodemcu. I had to specify setProtocol(1,189) on the mega but can’t seem to set the pulselength with the constructor in your code. If I use the original constructor w/ pulselength it goes into a reboot cycle. Any ideas?
Here is the sniffed on code:
Received 79107 / 24bit Protocol: 1
Raw timing data: 5816,144,608,136,600,144,604,140,608,140,604,140,604,140,608,512,232,140,612,132,612,508,240,508,236,136,612,508,240,132,612,508,240,132,608,140,604,144,600,148,596,14
8,596,152,596,524,220,524,
Raw bitdata: 000000010011010100000011
Here is the sniffed off code:
Received 79116 / 24bit Protocol: 1
Raw timing data: 5812,144,604,144,600,144,600,144,604,144,600,144,604,140,604,520,224,144,608,136,604,516,232,512,232,144,604,516,228,144,604,520,224,148,596,148,596,152,596,148,596,52
4,224,520,228,148,596,148,
Raw bitdata: 000000010011010100001100
Here are the two constructors:
static st::EX_RCSwitch executor3(F(“switch2”), PIN_RCSWITCH, “000000010011010100000011”, “000000010011010100001100”, 1, 4, LOW);
static st::EX_RCSwitch executor4(F(“switch3”), PIN_RCSWITCH, 79107, 24, 79116, 24, 189, 1, 4, LOW);
Here is the working code in Arduino test:
mySwitch.setProtocol(1, 189);
mySwitch.setRepeatTransmit(4);
const char *everflourish4On = “000000010011010100000011”;
const char *everflourish4Off = “000000010011010100001100”;