How To: Trigger a LED Bar Notification for Severe Weather | SmartThings

How To: Trigger a LED Bar Notification for Severe Weather | SmartThings

Please note that this is not meant to be a substitute for alerting you for severe weather warnings. As IFTTT and SmartThings are both cloud based, there may be a delay in receiving your notification. As always, if you suspect severe weather, please check your phone and if necessary, take shelter.

Summary (TLDR)

In this article, you can use your Red Series Switches to give you a heads up alert you when there's severe weather in your area. Program the switches around your house to flash red when there's a Tornado Watch, blue when there's a Flash Flood Warning, or white when there's a Winter Weather advisory, etc. This is done via IFTTT (If This Then That) and SmartThings.

How it will work is via an RSS Feed to Weather.gov and when there's a keyword/phrase detected (ie: tornado watch) in that RSS Feed, it will notify SmartThings to turn on your switches notification. Then if you want them to be all be synced, we'll setup an automation to do so.

If you'd like to add Smart Bulbs to this please see our KB article: How To: Trigger a RGBW bulb for Severe Weather | SmartThings

The following products below can be used in this scenario. Feel free to click on the pictures to be taken to the product page.
  
Model #'s from left to right: LZW30-SN (On/Off Switch), LZW31-SN (Dimmer Switch), LZW36 (Fan/Light Switch)


Pre-Requisites

Before we get into setting up the automation, there are a few things we need to do.
  1. Install the proper Device Handler and Child Handler (for notifications)
    1. Red Series On/Off (LZW30-SN): Device Handler Installation InstructionsDevice Handler Raw CodeChild Handler Raw Code
    2. Red Series Dimmer (LZW31-SN): Device Handler Installation InstructionsDevice Handler Raw CodeChild Handler Raw Code
    3. Red Series Fan/Light (LZW36): Device Handler Installation InstructionsDevice Handler Raw CodeChild Handler Raw Code
  2. Setup an IFTTT account (https://ifttt.com/)
  3. Figure out your RSS Feed
    1. Go to: https://alerts.weather.gov/ (RSS Feed for Kalamazoo says it updates every 2-3 minutes -- check your city for speed)
    2. Click on, "By State/County" (on the left side) 
    3. Scroll down and find your state -- then select the county list
    4. Find your county and then click on the county code (ie: Kalamazoo, MI is MIC077)
    5. The URL is your RSS Feed (ie: Kalamazoo, MI = https://alerts.weather.gov/cap/wwaatmget.php?x=MIC077&y=1)


Directions

Now that the pre-reqs are out of the way, let's start setting this automation up. First, we'll setup the notification effect child device via SmartThings (to use to notify you of inclement weather), then we'll setup IFTTT. In this example, we're going to have your switch Fast Blink Red when there's a Tornado Watch.

Setting up the Notification Effect

The first step is to create the notification animation that will run when your IFTTT Applet is triggered. 
  1. Open up your SmartThings App
  2. Select your Inovelli Red Series Switch
  3. Click the three dots at the top right and select, "Settings"
  4. Scroll down to the, "LED Notifications" section and choose the following effect settings
    1. Effect Color = Red
    2. Effect Level = 100
    3. Effect Duration = Indefinitely
    4. Effect Type = Fast Blink
  5. Go back to the home screen (where it lists out your rooms) and check to see if your notification switch shows up (it should say, "[Your Switch Name] (Notification 1)")
NOTE: The Fan/Light switch will have two different LED Bars to choose from (the Fan and the Light portion).

Setting up the IFTTT Integration

Now that the notification animation is setup, it's time to setup your IFTTT Applet and then connect everything.
  1. Log into IFTTT and click, "Explore"
  2. Click on, "Services" at the top right and search for, "SmartThings"
  3. Click on, "Connect" and then enter in your credentials if prompted
  4. Select the devices you want IFTTT to be able to see (ie: select when you create an Applet)
  5. Once completed, you will see that SmartThings is connected
  6. Now click on, "Create" at the top right
  7. Click on, "If This (Add)" and search for, "RSS Feed" and select it
  8. Then click on, "New feed item matches"
  9. In the text box, "Keyword or simple phrase", type, "Tornado Watch" (NOTE: if you wanted to be notified whenever there's a Tornado Warning and Watch, just type the word, "Tornado")
  10. In the text box, "Feed URL" insert the Weather.gov URL from the Pre-Requisites section (ie: https://alerts.weather.gov/cap/wwaatmget.php?x=MIC077&y=1)
  11. Then click on, "Create trigger"
  12. Then click on, "Then That" and search for, "SmartThings" and select it
  13. Next click on, "Switch on"
  14. Under the, "Which device?" dropdown, select the Notification switch you created (ie: "[Your Switch Name] (Notification 1)")
  15. Click on, "Create action", "Continue", and then, "Finish"
Now whenever the keyword, "Tornado Watch" is detected in your RSS Feed (via Weather.gov), IFTTT will trigger an Applet which tells SmartThings to turn on your notification.