In this project you will see how you can use Photon Particle to send Events to Photon Cloud and then using Webhook Integration to connect them to Slack Platform.
Like you can see in schematic this is plain and simple project. It will use Reed Relay and Ferrite (Magnetic field) to trigger alarm.
For example when you open the door circuit will be broken because there will be no connection between Reed Relay and Ferrite.
You can use this schematic and code even without Reed Relay. For test on breadbord connect 3V3 pin with A0 pin to "close the door" after you can break connection and that will result an event sent to Particle Dashboard and after all on your Slack app.
In next two videos you can see how to implement Webhook Integration to Slack.
JSON code:
{
"text": "{{PARTICLE_EVENT_VALUE}}"
}
And after that you can test everything and receive your messages on Slack
Comments