Phil Speed
Published © GPL3+

My Alarms and Sensors Send Me Text Messages

Now I get notified when I am away from home and my smoke alarm activates. This could potentially work for some of my other sensors as well!

IntermediateShowcase (no instructions)3 hours844
My Alarms and Sensors Send Me Text Messages

Things used in this project

Hardware components

Wired Smoke Alarm
×1
Adafruit Raspberry Pi Zero W
×1
4 Pin Optocoupler
×1

Story

Read more

Schematics

Smoke Detector Connected to Raspberry PI

This is used to monitor the output signal pin of a wired smoke detector

Code

Monitor GPIO pin 12 for a LOW and Send Email/Text

JSON
This flow monitors pin 32 of the Raspberry Pi for a low and then sends an email/text. A pullup resistor is provided the flow.
[{"id":"47e6795.7176688","type":"tab","label":"Smoke Alarm","disabled":false,"info":""},{"id":"72e35cc4.89437c","type":"rpi-gpio in","z":"47e6795.7176688","name":"","pin":"32","intype":"up","debounce":"25","read":false,"x":120,"y":180,"wires":[["96c2f399.b7fdc"]]},{"id":"a0028079.d4fd1","type":"inject","z":"47e6795.7176688","name":"Test","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":60,"wires":[["96c2f399.b7fdc"]]},{"id":"448a89ab.c16618","type":"e-mail","z":"47e6795.7176688","server":"smtp.gmail.com","port":"465","secure":true,"tls":false,"name":"your_phone_number@your_provider.com","dname":"Send Text","x":500,"y":120,"wires":[]},{"id":"96c2f399.b7fdc","type":"change","z":"47e6795.7176688","name":"The message to send","rules":[{"t":"set","p":"payload","pt":"msg","to":"Smoke Alarm Is Active!!","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":120,"wires":[["448a89ab.c16618"]]},{"id":"b7f9259d.ffba98","type":"comment","z":"47e6795.7176688","name":"Open for Service Providor Information","info":"The following provided by\nhttps://www.techwalla.com/articles/how-to-send-a-text-message-from-email\n\n\"Here are some of the most popular providers' texting domain names:\n\n    AT&T: [number]@txt.att.net\n    Sprint: [number]@messaging.sprintpcs.com or [number]@pm.sprint.com\n    T-Mobile: [number]@tmomail.net\n    Verizon: [number]@vtext.com\n    Boost Mobile: [number]@myboostmobile.com\n    Cricket: [number]@sms.mycricket.com\n    Metro PCS: [number]@mymetropcs.com\n    Tracfone: [number]@mmst5.tracfone.com\n    U.S. Cellular: [number]@email.uscc.net\n    Virgin Mobile: [number]@vmobl.com\"","x":570,"y":160,"wires":[]},{"id":"ec1b904.c808af","type":"comment","z":"47e6795.7176688","name":"Be sure to fill in the node \"Send Text\"","info":"Be sure to fill in the node \"Send Text\"","x":560,"y":80,"wires":[]}]

Credits

Phil Speed
4 projects • 1 follower
Repaired anything in a computer room back in the late 60s and 70s. Also, did some assembly and machine language programming.
Contact

Comments

Please log in or sign up to comment.