Keeping Ghosts Grounded: Smart Wind Protection for Inflatable Decorations Using a Smart Plug

by MrMemory in Living > Holidays

37 Views, 0 Favorites, 0 Comments

Keeping Ghosts Grounded: Smart Wind Protection for Inflatable Decorations Using a Smart Plug

WindGuard-ezgif.com-optimize.gif
IMG_20251025_150403300.jpg
diagram-export-10-25-2025-2_00_11-PM.png
Screenshot_20251025-120939.png

I created WindGuard, a smart IoT system that automatically protects inflatable decorations from wind damage using real-time weather monitoring and a smart plug you can find at any hardware or electronics store! When wind speeds exceed safe thresholds, as they often do around the holidays, WindGuard instantly turns off the smart plug powering your decorations, preventing costly damage from sudden gusts.

If you're like me, you've patched many a hole in your inflatable decorations caused by them whipping around in wind gusts while I'm not home to unplug them or mess with my old plug-in timers. Manually monitoring weather 24/7 around busy holidays just isn't practical.

This project solves this by combining:

  1. Real-time local weather data from OpenWeatherMap
  2. Smart home automation via TP-Link Kasa plugs
  3. Cloud infrastructure for reliable 24/7 monitoring
  4. Intelligent notifications so you know when your decorations are being protected

This is a fully automated system that costs less than $5/year to run and has already saved my decorations multiple times this season. You don't need to know anything about IoT or cloud computing to deploy it- it deploys in a single click with no coding required!

The GIF here shows WindGuard in action - you can see my inflatable ghosts and pumpkins safely deflating when high winds are detected! They'll reinflate if later the winds die down. When I'm away I get emails letting me know when and why my decorations turned off!

How it Works

WindGuard creates an intelligent feedback loop between real-time weather data and your smart plug, automatically protecting your decorations when Mother Nature gets too aggressive.

The diagram above shows the different services this project makes sue of:

  1. Weather Monitoring: Every 5 minutes, AWS Lambda fetches current wind speed data from OpenWeatherMap API for your exact location
  2. Smart Decision Making: The system compares wind speed against your custom thresholds (default: turn OFF at 20+ mph, turn ON below 10 mph)
  3. Time Awareness: WindGuard only acts during your decoration hours (default 5 PM - 10 PM) using your local timezone
  4. Automatic Protection: When dangerous winds are detected, Lambda sends commands through TP-Link's cloud API to instantly cut power to your decorations
  5. State Tracking: DynamoDB remembers the last action taken, preventing notification spam while ensuring decorations stay protected
  6. Smart Notifications: You only get alerted via email when the plug state changes

Supplies

IMG_5266.JPG

Hardware

TP-Link Kasa Smart Outdoor Plug - $25-35

Recommended Models: KP400 (dual outlet), EP40 (single outlet), but others will work as well

Requirements: Must be outdoor-rated and WiFi-capable

Inflatable Decorations - $20-100

Any plug-in inflatables!

Outdoor Extension Cord (if needed) - $15-25

Weather-resistant, appropriate length for your setup

Software/Services

  1. AWS Account - Free tier eligible. New accounts get 12 months of free tier benefits
  2. OpenWeatherMap API Key - Free. Sign up at openweathermap.org/api. Free tier includes 1,000 calls/day (more than enough)
  3. TP-Link Kasa Account - Free. Download the Kasa app and create account!

Tools

  1. Computer with internet access
  2. Smartphone (for Kasa app setup)

Total Cost

  1. Hardware: ~$40-160 (depending on decorations)
  2. AWS Services: $0.41/month ($5/year)
  3. API Services: Free

Note: Test your smart plug in the Kasa app before starting the AWS setup to ensure compatibility and note the exact device name you'll need for configuration.

Set Up Your Smart Plug

WindGuard Demo.png
Screenshot_20251025-100409.png
Screenshot_20251025-100739.png
Screenshot_20251025-100817.png
Screenshot_20251025-100804.png

What You'll Do:

Get your smart plug connected to WiFi and ready to control your decorations. This is the foundation that WindGuard will use to automatically protect your inflatables.

Instructions:

  1. Download the Kasa App
  2. Open your phone's app store
  3. Search for "Kasa Smart" (by TP-Link)
  4. Download and install the official Kasa app
  5. Open the app and tap "Create Account" if you're new
  6. Prepare Your Smart Plug
  7. Unbox your Kasa smart plug
  8. Plug it into an indoor outlet near your WiFi router (for initial setup)
  9. The LED should blink amber and green - this means it's ready to configure
  10. Add the Device in Kasa App
  11. In the Kasa app, tap the "+" button to add a new device
  12. Select "Smart Plug" from the device list
  13. Follow the on-screen instructions to connect the plug to your WiFi
  14. When prompted, enter your WiFi network password
  15. Name Your Device
  16. Give your plug a clear, memorable name like:
  17. "WindGuard"
  18. "Halloween Decorations"
  19. "Outdoor Inflatables"
  20. "Front Yard Ghosts"
  21. Critical: Write down this exact name! WindGuard will need it later
  22. Avoid special characters - stick to letters, numbers, and spaces
  23. Set a Schedule
  24. Tap your device and then the schedule tab. Set an "on" and "off" time for your plug. You'll use this same on and off time when you deploy WingGuard. This way WindGuard does not turn on/off your decorations outside your set schedule.
  25. Test Your Setup
  26. Plug a small lamp or device into your smart plug
  27. Use the Kasa app to turn it on and off
  28. Verify you can control it remotely from anywhere in your house
  29. Move to Final Location
  30. Unplug your test device
  31. Move the smart plug to where your Halloween decorations will be
  32. Test the Kasa app again to ensure good WiFi signal at that location

Troubleshooting:

  1. Plug won't connect: Move closer to your WiFi router and try again
  2. Can't find device: Make sure your phone is on the same WiFi network
  3. Poor signal outdoors: Consider a WiFi extender for your decoration area

Get Your Weather Credentials

Screenshot From 2025-10-26 09-37-34.png
Screenshot From 2025-10-25 10-18-08.png

What You'll Do:

Obtain the free API keys that let WindGuard monitor your local weather conditions and find your exact location coordinates for accurate wind monitoring.

  1. Sign Up for Free Account
  2. Go to openweathermap.org
  3. Click "Sign Up" in the top right corner
  4. Fill out the registration form with your email and create a password
  5. Verify your email address when prompted
  6. Access Your API Keys
  7. Log into your OpenWeatherMap account
  8. Click on your username in the top right, then select "My API Keys"
  9. You may be prompted to choose a pricing plan. WindGuard uses too few queries a day (running only once every 5 minutes) to incur a charge, but you still will need to choose a plan and provide some payment details. I recommend the OneCall API myself.
  10. On the API keys page, you'll see an API key created for you like in the above screenshot.
  11. Click the "Copy" button next to your API key
  12. Important: Save this key somewhere safe - you'll need it for the next step

Find Your Location Coordinates

Screenshot From 2025-10-26 09-40-40.png

WindGuard needs your approximate latitude and longitude to get weather data for your decorations. This information is stored securely in your WindGuard deployment on your personal AWS account.

What You'll Do:

  1. Navigate to https://gps-coordinates.org/
  2. Enter your address or optionally give the website permission to retrieve your location
  3. Copy the coordinates that appear


Deploy WindGuard!

Screenshot From 2025-10-26 10-01-25.png
Screenshot From 2025-10-26 10-01-37.png
Screenshot From 2025-10-25 10-19-40.png
Screenshot_20251025-102019.png
Screenshot_20251025-102028.png

Can you believe we're almost done?

What You'll Do:

Deploy all of the cloud services with no coding required by clicking a link and filling in a simple form. This creates your serverless weather monitoring system that will protect your decorations 24/7.

  1. Sign Up for AWS
  2. Go to aws.amazon.com
  3. Click "Create an AWS Account"
  4. Follow the registration process (you'll need a credit card, but we'll stay within free tier limits)
  5. Cost: WindGuard costs $0.41/month ($5/year) to run
  6. Verify Your Account
  7. Complete email and phone verification
  8. Wait for account activation (usually takes a few minutes)
  9. Click here to deploy WindGuard to your AWS account!
  10. You'll first see a screen with the title "Create Stack". Verify that the URL shown is right for WindGuard (https://windguard.s3.us-east-1.amazonaws.com/cloudformation.yml) and click "Next".
  11. When the CloudFormation page opens, you'll see a form. Fill it out using the information from the previous steps:
  12. TPLinkEmail: Your Kasa account email
  13. TPLinkPassword: Your Kasa account password (this, along with your API key, will be stored securely in AWS Secrets Manager)
  14. TPLinkDeviceAlias: Exact name of your smart plug (as it appears in the Kasa app)
  15. OpenWeatherApiKey: Your API key (from Step 2)
  16. Latitude: Your location latitude (from Step 3)
  17. Longitude: Your location longitude (from Step 3)
  18. WindOffThreshold: Wind speed to turn OFF decorations (default: 20 mph)
  19. WindOnThreshold: Wind speed to turn ON decorations (default: 10 mph)
  20. OnStartHour: When monitoring starts (default: 17 = 5 PM)
  21. OnEndHour: When monitoring ends (default: 22 = 10 PM)
  22. TimeZone: Your timezone (default: America/New_York)
  23. NotifyEmail: Your email for alerts (optional but recommended)
  24. Launch your stack
  25. Review Your Settings
  26. Double-check all your parameters are correct
  27. Pay special attention to the device name - it must match exactly!
  28. Deploy WindGuard
  29. Check the box "I acknowledge that AWS CloudFormation might create IAM resources"
  30. Click "Create Stack"
  31. Wait 2-3 minutes for deployment to complete
  32. Confirm Success
  33. Watch the "Events" tab for progress updates
  34. When you see "CREATE_COMPLETE", WindGuard is live!
  35. Check the "Outputs" tab for your system details
  36. Check Your Email
  37. AWS will send you a subscription confirmation email if you provided one for alerts in the CloudFormation form.
  38. Click "Confirm subscription" in that email
  39. You're now set up to receive WindGuard alerts!

Troubleshooting:

  1. Stack creation failed: Check that your device name exactly matches the Kasa app
  2. No email confirmation: Check spam folder, or re-deploy after checking the email address you input is correct.
  3. Parameter errors: Review your credentials and try again

Enjoy WindGuard

Screenshot_20251025-120939.png
IMG_5270.JPG

On the next blustery evening, watch as WindGuard automatically turns your decorations off to protect thema and turns them back on when the wind dies down! If you provided your email for alerts, you should also see alerts come into your email when the switch is toggled on/off.

Here are some final troubleshooting tips:

  1. No plug response: Double-check device name matches Kasa app exactly
  2. No notifications: Confirm email subscription in your inbox/spam folder
  3. WindGuard not operating at the right times: Check that the TimeZone parameter matches your location