The code below is not activating the relays. The Photon is on a relay shield and I’ve had other sketches work on this same device. So, I’m confident that it’s not related to hardware.
I am using Sense/IFTTT. I do see the event in console.particle.
First, I’d go for a much shorter event name (without blanks).
Next I’d try ALL_DEVICES (for testing only) and/or double-check whether the IFTTT event is actually sent as PRIVATE.
So… I took the coffee sketch and added it to what I started working on before I couldn’t get the “coffee” to work.
By the way this is supposed to open three windows that are attached to linear actuators that are attached to three different Particle Photons and three Photon Relay boards.
Originally, the AC_… was working to close the windows (write relays LOW)
Now the windows open and stay open (relays HIGH).
I was so thrown off by the Power Down and other items on the console that I failed to mention that the sketch is not working as I thought it would.
The windows stay open. When they do close, as they are closing, the relays click and occasionally the windows reverse direction. Once they do close, after a few seconds, the widows open again.
Also, none of these problems occur if I use TInker.
For one, when I suggested tryping ALL_DEVICES I had added that this should also just be a temporary test, the goal should be to stick with MY_DEVICES and PRIVATE events on the IFTTT side.
This would suggest and issue with your IFTTT recipe and/or your circuitry. AFAICT the shown code itself doesn't warrant that behaviour unless a respective event is coming from somewhere.
You should try to correlate the observed behaviour with incoming events - the screenshot you show above does not allow for that.
And in order to get an actual feeling of what's going on with your code, you should add some Serial.print() debug statements in your event handlers to see when and how often the handlers get triggered and with what data.
e.g. having an ALL_DEIVES Weather subscription opens the door for each and every other Particel account to trigger your handler by just emitting any arbitrary PUBLIC Weather event (which is not an uncommon term to be used).
If every Particle user would be aware of the implications and adhered to the repeatedly voiced sentiment that PRIVATE/MY_DEVICES should be the prime choice this would not be the issue it obviously still is.