[SOLVED] Electron1 -> IFTTT -> Electron2


#1

Hi Particle Community!
I just purchased 2 Particle Electron 2G.
I’ve looked through the community for something like this, but I can’t find any that can help.
Is it possible to get a trigger from Electron1 where the ACTION results in a signal sent to Electron2?

For instance:
I have an Electron1 that measures temperature in a house, it reaches 25 degrees Celsius which is the trigger for IFTTT. The ACTION will then be to send a signal to Electron2 that will turn on a fan. Is this concept possible? if so, how can I do this?

EDIT 1:
I’ve done some more reading in the guide.
Is it possible for Electron1 to publish an event with particle.publish(EventName); and Electron2 is subscribed to this event with Particle.subscribe(EventName, theHandler);, where the handler turns on a fan, based on the response from the subscription from the Electron2 publish?

EDIT 2:
I figured it is possible with the EDIT 1 method from reading: https://docs.particle.io/reference/firmware/photon/#particle-subscribe-

I’ll leave it here incase someone else wants to know if this is possible.

Thanks,
Mic


#2

Good you found the solution on your own :+1:

One thing to note tho’
It’s advisable/preferable to use PRIVATE publishes and subscribe via MY_DEVICES to keep the public event stream tidy.