This guide walks you through adding your Foscam camera to SmartThings for centralized smart home control. You’ll learn setup steps, integration tips, and how to troubleshoot common issues.
Key Takeaways
- Check compatibility: Not all Foscam models work with SmartThings—verify yours supports ONVIF or RTSP before starting.
- Use a custom device handler: Since Foscam isn’t natively supported, you’ll need to install a community-created SmartThings device handler.
- Enable ONVIF on your Foscam: This protocol allows third-party systems like SmartThings to communicate with your camera.
- Assign a static IP address: Prevent connection drops by giving your Foscam a fixed local IP on your router.
- Test live view and motion alerts: After setup, confirm video streaming and automation triggers work as expected.
- Keep firmware updated: Regularly update both your Foscam camera and SmartThings hub for optimal performance and security.
- Troubleshoot with logs: Use SmartThings IDE logs to diagnose connection or authentication errors quickly.
Introduction: Why Integrate Foscam with SmartThings?
If you’re building a smart home ecosystem, you know how powerful it is to have all your devices—lights, locks, sensors, and cameras—working together in one place. While SmartThings offers excellent native support for many brands, Foscam cameras aren’t officially supported. That doesn’t mean you’re out of luck! With a little technical know-how, you can still add your Foscam camera to SmartThings and enjoy centralized monitoring, motion-triggered automations, and live video feeds right from the SmartThings app.
In this comprehensive guide, we’ll walk you through every step required to integrate your Foscam camera into your SmartThings setup. Whether you’re using a Foscam R2, R4, FI9900P, or another compatible model, you’ll learn how to enable ONVIF, install a custom device handler, configure network settings, and test your integration. We’ll also cover common pitfalls and how to fix them—so you can get your security camera working smoothly without frustration.
By the end of this guide, you’ll have a fully functional Foscam camera inside SmartThings, ready to trigger lights when motion is detected, send alerts to your phone, or even start recording when you leave home. Let’s get started!
Prerequisites: What You’ll Need
Before diving into the setup, make sure you have the following ready:
- A compatible Foscam IP camera (see list below)
- A Samsung SmartThings Hub (Hub v2, v3, or Aeotec Hub)
- Access to your home Wi-Fi network and router admin panel
- A computer or smartphone to access the SmartThings IDE (Integrated Development Environment)
- Basic familiarity with networking terms like IP addresses and ports
Supported Foscam Models
Most modern Foscam cameras that support ONVIF or RTSP streaming can be integrated with SmartThings. Commonly supported models include:
- Foscam R2 / R2S
- Foscam R4 / R4S
- Foscam FI9900P / FI9901EP
- Foscam C1 / C2
- Foscam FI8910W (with limitations)
Note: Older models like the FI8908W may not support ONVIF and are unlikely to work.
Important Notes Before Starting
- This process requires using the SmartThings Classic IDE, which is still functional but being phased out. Samsung recommends migrating to the new SmartThings app eventually, but custom device handlers currently only work in the Classic environment.
- You’ll be installing a community-developed device handler—not an official Samsung solution. Always download from trusted sources like the SmartThings Community Forum.
- Your Foscam must be connected to the same local network as your SmartThings Hub.
Step 1: Prepare Your Foscam Camera
The first step is to ensure your Foscam camera is properly configured for third-party access. This involves enabling ONVIF (the standard protocol used by SmartThings) and setting up a static IP address.
Connect and Log Into Your Foscam
- Power on your Foscam camera and connect it to your Wi-Fi network using the Foscam app or web interface.
- Open a web browser and enter your camera’s IP address (usually found in your router’s connected devices list or via the Foscam app).
- Log in with your admin credentials (default is often admin/admin—change this for security!).
Enable ONVIF Protocol
ONVIF allows external systems like SmartThings to communicate with your camera. Here’s how to turn it on:
- In the Foscam web interface, go to Settings > Network > ONVIF.
- Check the box to Enable ONVIF.
- Create an ONVIF user account (if prompted). Use a strong username and password—you’ll need these later for SmartThings.
- Save your changes.
Tip: Some Foscam models require you to restart the camera after enabling ONVIF. Do so if prompted.
Assign a Static IP Address
To prevent your camera’s IP from changing (which would break the SmartThings connection), assign it a static IP:
- Go to your router’s admin page (usually http://192.168.1.1 or similar).
- Find the DHCP reservation or static lease section (often under LAN or DHCP settings).
- Locate your Foscam camera by its MAC address (found in the Foscam settings or router client list).
- Assign a fixed IP address (e.g., 192.168.1.150) and save.
Alternatively, you can set a static IP directly in the Foscam settings under Network > TCP/IP, but router-based reservation is more reliable.
Step 2: Install a Custom Device Handler in SmartThings
Since Foscam isn’t natively supported, you’ll need a custom device handler—a piece of code that tells SmartThings how to talk to your camera.
Access the SmartThings IDE
- Go to https://account.smartthings.com and log in with your Samsung account.
- Click on Classic IDE (you may need to switch from the new developer workspace).
- Navigate to My Device Handlers > Create New Device Handler.
Install a Foscam-Compatible Handler
There are several community-made handlers available. One of the most reliable is the “Foscam ONVIF Camera” handler by user RBoy.
- Copy the code from a trusted source (e.g., SmartThings Community Forum). Search for “Foscam ONVIF Device Handler.”
- Paste the entire code into the “Create New Device Handler” editor in the IDE.
- Click Create, then Save, and finally Publish > For Me.
Warning: Only use handlers from reputable developers. Avoid untested or outdated code that could expose your network.
Verify the Handler is Active
- Go to My Devices in the IDE.
- You should now see your new device handler listed. If not, refresh and check for errors in the code.
Step 3: Add Your Foscam Camera to SmartThings
Now it’s time to pair your camera with the SmartThings hub using the custom handler.
Create a New Device in SmartThings
- In the SmartThings IDE, go to My Devices > New Device.
- Fill in the following fields:
- Name: e.g., “Front Door Camera”
- Device Network ID: Use a unique ID like “Foscam_001” (no spaces or special chars)
- Type: Select the custom handler you just created (e.g., “Foscam ONVIF Camera”)
- Location: Choose your SmartThings location (e.g., “Home”)
- Hub: Select your SmartThings hub
Configure Camera Settings
After creating the device, click on it to edit its preferences:
- Camera IP Address: Enter the static IP you assigned (e.g., 192.168.1.150)
- ONVIF Port: Usually 8899 (check your Foscam settings if unsure)
- Username & Password: The ONVIF credentials you created earlier
- Stream URL (optional): For RTSP streaming, use something like
rtsp://[username]:[password]@[IP]:554/videoMain
Save your changes.
Sync with the SmartThings App
- Open the SmartThings Classic app on your phone.
- Go to My Home > Things > Add a Thing.
- Your Foscam should appear under “Recently Added” or in the list of devices.
- Tap it to confirm and add it to your dashboard.
Note: If it doesn’t appear, wait a few minutes and check the IDE logs for errors.
Step 4: Test and Customize Your Integration
Once your camera is added, it’s time to make sure everything works—and set up automations.
Test Live Video Streaming
- In the SmartThings app, tap your Foscam device.
- Look for a “Live View” or “Snapshot” button. If configured correctly, you should see a real-time feed.
- If you see a black screen or error, double-check your RTSP URL and credentials.
Enable Motion Detection Alerts
Many Foscam models can send motion events to SmartThings:
- In the Foscam web interface, go to Alarm > Motion Detection.
- Enable motion detection and set sensitivity.
- Under Alarm Action, choose “HTTP Notification” and enter a callback URL (if supported by your handler).
- In SmartThings, create an automation: “When motion is detected, send me a notification” or “Turn on porch light.”
Create Useful Automations
Here are a few ideas to get the most out of your integration:
- Arrive Home: When you arrive, turn off indoor lights if motion is detected (indicating someone’s already home).
- Leave Home: When you leave, enable camera recording mode.
- Night Mode: After sunset, if motion is detected, flash smart bulbs as a deterrent.
Troubleshooting Common Issues
Even with careful setup, you might run into problems. Here’s how to fix the most common ones.
“Device Offline” or No Video Feed
- Verify the camera’s IP address hasn’t changed (check router DHCP list).
- Ensure ONVIF is enabled and the port (usually 8899) is open.
- Test the RTSP URL in VLC media player:
rtsp://user:pass@192.168.1.150:554/videoMain - Restart both the camera and SmartThings hub.
Authentication Failed
- Double-check username/password in both Foscam and SmartThings.
- Ensure you’re using the ONVIF user, not the main admin account.
- Some cameras require URL-encoded passwords (e.g., replace “@” with “%40”).
SmartThings App Shows “Unknown” Device
- Re-publish the device handler in the IDE.
- Delete and re-add the device in SmartThings.
- Clear the app cache or reinstall the SmartThings Classic app.
High Latency or Buffering
- Reduce video resolution in Foscam settings (e.g., 720p instead of 1080p).
- Ensure strong Wi-Fi signal—consider a mesh extender near the camera.
- Use wired Ethernet if possible (via a PoE adapter).
Security Best Practices
Integrating cameras into your smart home introduces security risks. Follow these tips to stay safe:
- Change default passwords on both Foscam and router.
- Disable UPnP on your router to prevent unauthorized port forwarding.
- Update firmware regularly—check Foscam’s website monthly.
- Use a guest network for IoT devices to isolate them from your main devices.
- Disable remote access unless absolutely necessary.
Conclusion: Enjoy Your Integrated Smart Home
Adding your Foscam camera to SmartThings might take a bit of effort, but the payoff is worth it. You now have a unified security system that responds to motion, integrates with lights and sensors, and gives you peace of mind—all from one app.
Remember, this setup relies on community support and may require occasional maintenance as SmartThings evolves. But with the steps in this guide, you’re well-equipped to handle updates, troubleshoot issues, and expand your automation routines.
So go ahead—test that live view, set up a motion-triggered light, and enjoy the seamless experience of a truly smart home. Your Foscam isn’t just a camera anymore; it’s a vital part of your connected ecosystem.