An Internet of Things (IoT) home automation project using Raspberry Pi and Python. This repository includes code for controlling home devices remotely, showcasing hardware and software integration skills.
git clone https://github.com/chogalepar/IoT-Home-Automation.gitIoT-Home-Automation is a home automation project built with Raspberry Pi and Python that demonstrates practical Internet of Things implementation. The project provides code and examples for remotely controlling home devices, integrating both hardware and software components. It showcases hands-on skills in IoT development, hardware-software integration, and remote device management. This project is ideal for learning how to build scalable, connected home automation systems.
["1. **Set Up Your IoT Device:**\n - Connect your Raspberry Pi to the IoT device (e.g., smart thermostat, leak detector) using Python libraries like `RPi.GPIO` or APIs provided by the device manufacturer.\n - Write a Python script to monitor the device for specific alerts (e.g., temperature thresholds, moisture levels). Use placeholders like [DEVICE_NAME] and [ALERT_TYPE] to customize the script for your use case.\n - *Tip:* Test the script locally before integrating with Sortd to ensure it captures alerts accurately.\n\n2. **Configure Sortd for Automation:**\n - Install Sortd’s Gmail add-on and create a dedicated board (e.g., \"Home Automation\" or \"IoT Alerts\") with columns like \"Pending,\" \"In Progress,\" and \"Completed.\"\n - Use Sortd’s API to generate tasks automatically when your Python script detects an alert. Include placeholders like [TASK_DESCRIPTION], [PRIORITY_LEVEL], and [DUE_DATE] in your API request.\n - *Tip:* Use Sortd’s \"Template Boards\" feature to standardize task formats for different alert types (e.g., temperature vs. security).\n\n3. **Integrate Python with Sortd API:**\n - Use the `requests` library in Python to send HTTP POST requests to Sortd’s API when an alert is triggered. Example payload:\n ```python\n {\n \"title\": \"[ALERT_TYPE] Alert for [DEVICE_NAME]\",\n \"description\": \"[DETAILED_DESCRIPTION]\",\n \"priority\": \"[HIGH/MEDIUM/LOW]\",\n \"due_date\": \"[YYYY-MM-DD]\",\n \"board\": \"Home Automation\"\n }\n ```\n - *Tip:* Store your Sortd API key securely using environment variables (e.g., `os.getenv('SORTD_API_KEY')`).\n\n4. **Test the Workflow:**\n - Simulate an alert (e.g., manually trigger the temperature threshold) and verify that a task appears in your Sortd board.\n - Check your Gmail inbox to confirm the task is created and tagged correctly.\n - *Tip:* Use Sortd’s mobile app to receive push notifications for critical alerts.\n\n5. **Monitor and Optimize:**\n - Review completed tasks in Sortd to identify patterns (e.g., frequent alerts from a specific device).\n - Adjust your Python script or Sortd board settings to reduce false positives or improve response times.\n - *Tip:* Use Sortd’s AI features (e.g., urgency detection) to prioritize tasks automatically.","Use Case-Specific Tips:\n - **For Smart Thermostats:** Combine Nest Thermostat API with your Raspberry Pi script to cross-validate alerts and reduce false alarms.\n - **For Security Systems:** Integrate motion sensor data with Sortd to create tasks for reviewing security footage or contacting authorities.\n - **For Water Leak Detectors:** Set up automated tasks to shut off water valves (if supported) and notify plumbers via Sortd.","Troubleshooting:\n - If tasks aren’t appearing in Sortd, check your API endpoint and authentication keys.\n - For Raspberry Pi issues, verify sensor connections and Python dependencies (e.g., `pip install requests`)."]
Remote control of lights and appliances using Python scripts
Learning hardware-software integration with Raspberry Pi
Building IoT projects for home automation
Developing skills in remote device management systems
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/chogalepar/IoT-Home-AutomationCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Create a step-by-step guide for integrating an IoT home automation system (using Raspberry Pi and Python) with Sortd's Gmail workspace to automate task creation and follow-ups for home maintenance alerts. Include [DEVICE_NAME] and [ALERT_TYPE] as placeholders. Example: 'Set up a Python script on your Raspberry Pi to monitor [DEVICE_NAME] for [ALERT_TYPE] (e.g., temperature threshold exceeded). When detected, automatically generate a Sortd task in your Gmail workspace with the following details: [TASK_DESCRIPTION], [PRIORITY_LEVEL], and [DUE_DATE].'
### IoT Home Automation with Sortd Integration: Step-by-Step Guide
**Scenario:** You’ve installed a Raspberry Pi-based home automation system to monitor your smart thermostat (Nest Learning Thermostat) for temperature fluctuations. When the temperature drops below 65°F, your system triggers an alert to ensure your pipes don’t freeze during winter. Here’s how you integrated this with Sortd to automate task management in Gmail:
1. **Raspberry Pi Setup:**
- Connected a temperature sensor (DHT22) to the Raspberry Pi 4 and configured it to log readings every 5 minutes using Python.
- Wrote a Python script (`thermostat_monitor.py`) that checks the sensor data against a threshold of 65°F. If the temperature drops below this, it sends an HTTP POST request to Sortd’s API endpoint with the alert details.
2. **Sortd Task Automation:**
- In Sortd, created a dedicated board called "Home Maintenance" with columns: "Pending," "In Progress," and "Completed."
- Used Sortd’s API to automatically create a task when the alert is triggered. The task included:
- **Title:** "Check Nest Thermostat - Low Temperature Alert"
- **Description:** "Temperature dropped to 62°F. Inspect Nest Thermostat and adjust settings to prevent pipe freezing. Location: Main Floor."
- **Priority:** High (red label)
- **Due Date:** Today + 1 day
- **Assigned to:** Yourself
3. **Gmail Integration:**
- The task appeared in your Sortd-enabled Gmail inbox under the "Home Maintenance" board.
- Sortd’s AI features automatically flagged the task as "urgent" and added a reminder for follow-up.
4. **Follow-Up Automation:**
- After completing the task, you marked it as "Completed" in Sortd. The system sent a confirmation email to your Gmail with the subject: "Home Maintenance Task Completed: Check Nest Thermostat."
- The task was archived in Sortd, and a follow-up reminder was set for the next temperature check in 24 hours.
**Outcome:**
- Reduced manual monitoring time by 70%.
- Ensured no critical maintenance alerts were missed, even during busy workdays.
- Maintained a clear audit trail of all home maintenance tasks in one place (Gmail + Sortd).
**Tools Used:**
- Raspberry Pi 4 + DHT22 sensor
- Python (with `requests` library for API calls)
- Sortd for Gmail (API integration)
- Nest Thermostat API (for secondary validation).Automate your browser workflows effortlessly
Get more done every day with Microsoft Teams – powered by AI
Automate security compliance and monitor real-time security posture seamlessly.
Automate your spreadsheet tasks with AI power
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan