Alright, I’m getting a bit overwhelmed and I’m hoping maybe someone can help.
I have several particle photons that I wrote the code for (or a lot of the code, anyway). I have a couple that run automated gates with a simple relay. They also publish events using their device name in the event when they change state. They also listen for a general event so I can ask with other devices for them to report their current state. Then I have another device that can control the gates by publishing commands for specific gates. It also listens for state changes in case some OTHER device changes them (ie. the particle iOS app, IFTTT, etc) and sets some LEDs so I can quickly look at a thing to know the gate status. It even asks for the state of the gates when it boots, too. All this works fine between devices and was pretty trivial to get working thanks to the Particle functions.
But that’s still a long ways from there to an app like I’m talking about.