The title in this node will be the title of the notification on your phone. Msg.url_title: This is what the above hyperlink will be called in the notificationĪctive Alarm Push Notification: This is the Pushover node that actually sends the notification. I chose the URL of my Home Assistant instance, so from the notification I can go directly to my HA dashboard. Msg.url: This allows us to include a hyperlinked URL in the push notification. Msg.payload: This is the body of the pushover notification We want to change the msg.payload as well as other msg properties to send data into our Pushover node. That payload is just the ‘on’ from the trigger node. This means that unless we stop the loop manually, every 2 minutes the ‘Active Alarm’ sequence will be triggered.Īctive Alarm Notification: The looptimer node sends the original payload it received on every loop. This node will send a payload on a loop every X length of time. Smoke Alarm Trigger Node: We start with a trigger node that sends a payload to start the sequence when the sensor goes from ‘off’ to ‘on’.Ģ Minute Loop: The trigger node flows into a looptimer node. That signal will cause all the other detectors to beep. However, when a smoke detector is triggered it sends a 9V signal down this wire. In normal conditions this interconnecting wire is dead. They are also connected to each other through a third conductor, known as the interconnecting wire (this is typically the red wire in 14-3 Romex NM-B wire). Each one is connected to the homes 120V power. I may come back to this post and write detailed instructions for that in the future. Alternatively, you could write a script for an ESP8266 based Node MCU or Wemos D1 Mini that monitors the normally-closed switch and sends an MQTT message when it opens. When an alarm is triggered, the switch will open, and the board will change the state in Home Assistant, where will will handle our automation in Node Red. From the relay, I will be wiring normally-closed contacts to my Konnected board. There are DIY methods to achieve this, but for $13 it is well worth it to buy the purpose-made product from the pros. This relay made by Kidde allows for a safe way to connect the smoke detectors, which are on a mains voltage circuit, to our low voltage electronics. I will instead add a component to it- a $13 relay. Safety is always the top priority.įor the hardware in this project I will not be making any changes to my homes smoke detector system. If you are not comfortable with home wiring you may want to skip my hardware setup and make the expensive purchase above or hire a licensed electrician to do the work for you. Warning: There are parts of this section that involve working with 120V mains voltage. It's been a long time since then and a lot has changed! I now use Home Assistant for all my smart devices, automations, and notifications. It used input from a voltage sensor module and sent a text message via the Twilio API. I had no previous programming experience and after a few weeks learning Python I had a working script. The smart smoke detectors on the market were, and still are, very expensive and I wanted to find a solution myself. My very first Raspberry Pi project was to get alerts if my interconnected smoke alarms went off while I was away from home.
0 Comments
Leave a Reply. |