{
  "format": "dataset-manifest/1",
  "slug": "ai-powered-home-management-system",
  "version": 2,
  "seed": "ai-powered-home-management-system:1",
  "spec": {
    "format": "dataset/1",
    "slug": "ai-powered-home-management-system",
    "name": "Smart Home Event Logs",
    "tagline": "Event logs from smart home devices capturing energy usage, voice commands, grocery consumption, and security events.",
    "description": "Smart home devices continuously record interactions to create a dynamic environment for enhancing daily living experiences. Each device, whether it’s a smart thermostat, security camera, or kitchen appliance, generates logs of events detailing user interactions and automated responses based on pre-set conditions. These logs include energy consumption data, sensor readings, and the execution of voice commands, illustrating how homeowners optimize comfort and security throughout the day.\n\nThe tables in this dataset interrelate to provide a comprehensive view of smart home activities. The 'devices' table lists all connected devices, while the 'events' table outlines specific occurrences, such as device activations or alerts. The 'voice_commands' table captures the spoken instructions issued by users, linking directly to changes in device behavior noted in the 'events' table. Meanwhile, 'energy_consumption' records the power usage patterns of various devices over time, which can be analyzed in relation to user activity captured in the 'events' table. Grocery usage trends are documented in the 'grocery_usage' table, showcasing how often and when items are utilized, which can tie back to events and voice commands related to kitchen appliances. Lastly, 'security_events' catalog security-related triggers, helping to assess how security measures are integrated with daily routines.\n\nThis dataset allows developers to explore critical questions such as patterns of energy consumption during specific times of day, the effectiveness of voice commands in controlling devices, and the correlation between grocery usage and household activities. It provides an excellent foundation for practicing data analysis, machine learning, and IoT applications. Please note that this data is synthetic, modeled to represent a typical smart home ecosystem without real-world identifiers.",
    "domain": "iot",
    "shape": "event-log",
    "useCases": [
      "analytics-demo",
      "etl-pipelines"
    ],
    "keywords": [
      "smart home",
      "iot",
      "event logs",
      "device interaction",
      "energy consumption",
      "voice commands",
      "grocery usage"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "devices": {
        "description": "This table captures the devices installed in the smart home. Each device has a unique ID and is categorized by type.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each device."
          },
          "device_type": {
            "kind": "enum",
            "values": [
              "light",
              "thermostat",
              "security_camera",
              "smart_speaker",
              "smart_plug"
            ],
            "description": "Type of the device."
          },
          "location": {
            "kind": "words",
            "max": 3,
            "description": "Room or area where the device is located.",
            "nullable": true,
            "when": {
              "column": "device_type",
              "in": [
                "light",
                "thermostat"
              ]
            },
            "pool": [
              "kitchen",
              "livingroom",
              "bedroom",
              "bathroom",
              "garage",
              "office",
              "hallway",
              "patio",
              "basement",
              "attic",
              "diningroom",
              "laundry",
              "porch",
              "garden",
              "workspace",
              "entryway",
              "study",
              "den",
              "mediaroom",
              "playroom"
            ],
            "min": 1
          }
        }
      },
      "events": {
        "description": "This table logs events triggered by devices, such as activation or deactivation. Each event is linked to a specific device.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each event."
          },
          "device_id": {
            "kind": "fk",
            "ref": "devices.id",
            "description": "Reference to the device that triggered the event."
          },
          "event_type": {
            "kind": "enum",
            "values": [
              "activation",
              "deactivation",
              "status_change"
            ],
            "description": "Type of event logged."
          },
          "timestamp": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date and time when the event occurred.",
            "nullable": true,
            "when": {
              "column": "event_type",
              "in": [
                "activation"
              ]
            },
            "dayProfile": "waking"
          }
        }
      },
      "voice_commands": {
        "description": "This table records voice commands issued by users to control devices. Each command is associated with a timestamp and device.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each command."
          },
          "device_id": {
            "kind": "fk",
            "ref": "devices.id",
            "description": "Reference to the device being controlled."
          },
          "command": {
            "kind": "words",
            "max": 3,
            "description": "The voice command issued by the user.",
            "nullable": true,
            "pool": [
              "turn",
              "set",
              "dim",
              "play",
              "pause",
              "stop",
              "start",
              "open",
              "close",
              "lock",
              "unlock",
              "adjust",
              "activate",
              "deactivate",
              "schedule",
              "sync",
              "check",
              "report",
              "show",
              "list",
              "update"
            ],
            "min": 1
          },
          "timestamp": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date and time when the command was issued.",
            "dayProfile": "waking"
          }
        }
      },
      "energy_consumption": {
        "description": "This table tracks energy consumption for each device over time, helping to analyze efficiency.",
        "rows": 600,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each consumption record."
          },
          "device_id": {
            "kind": "fk",
            "ref": "devices.id",
            "description": "Reference to the device whose consumption is recorded."
          },
          "consumption_kwh": {
            "kind": "decimal",
            "min": 0,
            "max": 10,
            "scale": 2,
            "description": "Energy consumed in kilowatt-hours.",
            "nullable": true,
            "distribution": "high"
          },
          "timestamp": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date and time of the consumption measurement."
          }
        }
      },
      "grocery_usage": {
        "description": "This table logs the usage of grocery items, indicating how often and when items are consumed.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each grocery usage record."
          },
          "item_name": {
            "kind": "words",
            "max": 3,
            "description": "Name of the grocery item.",
            "pool": [
              "milk",
              "bread",
              "eggs",
              "cheese",
              "apples",
              "bananas",
              "chicken",
              "beef",
              "tofu",
              "rice",
              "pasta",
              "tomatoes",
              "potatoes",
              "carrots",
              "spinach",
              "onions",
              "garlic",
              "cereal",
              "yogurt",
              "juice",
              "coffee"
            ],
            "min": 1
          },
          "quantity": {
            "kind": "int",
            "min": 1,
            "max": 100,
            "description": "Quantity of the item used.",
            "nullable": true,
            "distribution": "long-tail"
          },
          "timestamp": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date and time of the grocery item usage.",
            "dayProfile": "waking",
            "trend": "growing"
          }
        }
      },
      "security_events": {
        "description": "This table captures any security-related events, such as alarms triggered by security devices.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each security event."
          },
          "device_id": {
            "kind": "fk",
            "ref": "devices.id",
            "description": "Reference to the security device that triggered the event."
          },
          "event_description": {
            "kind": "sentence",
            "description": "Description of the security event.",
            "nullable": true
          },
          "timestamp": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date and time when the security event occurred.",
            "dayProfile": "business"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "timestamped",
      "categorical",
      "high-cardinality"
    ],
    "analysisQuestions": [
      "What are the peak times for device usage in the home?",
      "How often are voice commands issued compared to manual device activations?",
      "Which devices consume the most energy, and during what times?",
      "What grocery items are most frequently used, and how does this vary over time?",
      "How often do security events occur, and are there patterns in the timing?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Events with Devices",
        "sql": "SELECT e.id, e.event_type, d.device_type FROM events e JOIN devices d ON e.device_id = d.id",
        "dialect": "postgres"
      },
      {
        "title": "Count Events by Device Type",
        "sql": "SELECT d.device_type, COUNT(e.id) as event_count FROM events e JOIN devices d ON e.device_id = d.id GROUP BY d.device_type",
        "dialect": "postgres"
      },
      {
        "title": "Average Energy Consumption by Device",
        "sql": "SELECT d.device_type, AVG(ec.consumption_kwh) as avg_consumption FROM energy_consumption ec JOIN devices d ON ec.device_id = d.id GROUP BY d.device_type",
        "dialect": "postgres"
      },
      {
        "title": "Security Event Frequency Over Time",
        "sql": "SELECT date_trunc('day', timestamp) AS day, COUNT(id) as event_count FROM security_events GROUP BY day ORDER BY day",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Home Automation Analytics",
        "body": "Smart home developers can utilize this dataset to analyze user interactions with devices and optimize automation routines. By understanding peak usage times and command types, they can enhance user experiences and improve system reliability."
      },
      {
        "title": "Energy Efficiency Analysis",
        "body": "Energy analysts can leverage the energy consumption data to identify patterns in device usage and propose strategies for improving energy efficiency within smart homes. This can lead to cost savings for homeowners and environmental benefits."
      },
      {
        "title": "Security Monitoring",
        "body": "Security professionals can use the security events data to assess the frequency and nature of security-related incidents in smart homes. This analysis can inform better security measures and protocols to ensure resident safety."
      },
      {
        "title": "Grocery Management Insights",
        "body": "Retailers and grocery management applications can utilize the grocery usage logs to understand consumption patterns and preferences. This can help in optimizing inventory management and tailored marketing strategies."
      }
    ]
  },
  "counts": {
    "devices": 100,
    "energy_consumption": 600,
    "events": 500,
    "grocery_usage": 200,
    "security_events": 150,
    "voice_commands": 300
  },
  "stats": {
    "devices": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "device_type": {
          "nulls": 0,
          "distinct": 5,
          "min": "light",
          "max": "thermostat"
        },
        "location": {
          "nulls": 61,
          "distinct": 35
        }
      }
    },
    "events": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "device_id": {
          "nulls": 0,
          "distinct": 99,
          "min": 1,
          "max": 100
        },
        "event_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "activation",
          "max": "status_change"
        },
        "timestamp": {
          "nulls": 343,
          "distinct": 157,
          "min": "2023-01-03 08:20:19",
          "max": "2023-12-29 19:30:28"
        }
      }
    },
    "voice_commands": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "device_id": {
          "nulls": 0,
          "distinct": 95,
          "min": 1,
          "max": 100
        },
        "command": {
          "nulls": 27,
          "distinct": 194
        },
        "timestamp": {
          "nulls": 0,
          "distinct": 300,
          "min": "2023-01-01 17:01:40",
          "max": "2023-12-31 11:36:03"
        }
      }
    },
    "energy_consumption": {
      "rows": 600,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 600,
          "min": 1,
          "max": 600
        },
        "device_id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "consumption_kwh": {
          "nulls": 73,
          "distinct": 368,
          "min": 0.02,
          "max": 10
        },
        "timestamp": {
          "nulls": 0,
          "distinct": 600,
          "min": "2023-01-01 09:45:08",
          "max": "2023-12-31 07:54:18"
        }
      }
    },
    "grocery_usage": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "item_name": {
          "nulls": 0,
          "distinct": 153
        },
        "quantity": {
          "nulls": 18,
          "distinct": 78,
          "min": 1,
          "max": 96
        },
        "timestamp": {
          "nulls": 0,
          "distinct": 200,
          "min": "2023-01-08 04:09:53",
          "max": "2023-12-31 18:11:55"
        }
      }
    },
    "security_events": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "device_id": {
          "nulls": 0,
          "distinct": 77,
          "min": 1,
          "max": 99
        },
        "event_description": {
          "nulls": 15,
          "distinct": 135
        },
        "timestamp": {
          "nulls": 0,
          "distinct": 150,
          "min": "2023-01-06 11:22:33",
          "max": "2023-12-31 16:13:57"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/devices.csv",
      "format": "csv",
      "table": "devices",
      "key": "datasets/ai-powered-home-management-system/v2/csv/devices.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-home-management-system/v2/csv/devices.csv",
      "bytes": 2291,
      "sha256": "5b46fc53f7f5b0fffa135d4011a5df604d888eb1417ba93a4fd05c46746d1037",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/energy_consumption.csv",
      "format": "csv",
      "table": "energy_consumption",
      "key": "datasets/ai-powered-home-management-system/v2/csv/energy_consumption.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-home-management-system/v2/csv/energy_consumption.csv",
      "bytes": 19386,
      "sha256": "3771d841e9b4103bd268c558c9cd50429b5de9e753b0b328e87f74d16e42e23e",
      "rows": 600,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/events.csv",
      "format": "csv",
      "table": "events",
      "key": "datasets/ai-powered-home-management-system/v2/csv/events.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-home-management-system/v2/csv/events.csv",
      "bytes": 13721,
      "sha256": "82f8d8c22ae0f0e1039b9f761c8bfb84da3a8398359211cf68481713ced7c30d",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/grocery_usage.csv",
      "format": "csv",
      "table": "grocery_usage",
      "key": "datasets/ai-powered-home-management-system/v2/csv/grocery_usage.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-home-management-system/v2/csv/grocery_usage.csv",
      "bytes": 8155,
      "sha256": "b2b900f941923d339209ed38b40549c9e69d30c3857be0324a5fa730283e03e9",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/security_events.csv",
      "format": "csv",
      "table": "security_events",
      "key": "datasets/ai-powered-home-management-system/v2/csv/security_events.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-home-management-system/v2/csv/security_events.csv",
      "bytes": 11886,
      "sha256": "7e23d2476a1ae2ac8bdd1d68bc1347f89169946e82cfd6e94750d8644d2875c3",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/voice_commands.csv",
      "format": "csv",
      "table": "voice_commands",
      "key": "datasets/ai-powered-home-management-system/v2/csv/voice_commands.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-home-management-system/v2/csv/voice_commands.csv",
      "bytes": 11748,
      "sha256": "2e73e9c6e0760b6245613f125b622519de4ec7dd3341caed75d01d4b843abe3c",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "ai-powered-home-management-system.json",
      "format": "json",
      "table": null,
      "key": "datasets/ai-powered-home-management-system/v2/ai-powered-home-management-system.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-home-management-system/v2/ai-powered-home-management-system.json",
      "bytes": 232439,
      "sha256": "eb39d6f81ad955e316bb9223a39d8c41ff4d7eb92466c222711946d0e72b46bf",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/ai-powered-home-management-system/v2/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-home-management-system/v2/sql/postgres.sql",
      "bytes": 94413,
      "sha256": "3307bada682aab63f5339422a36a9e8046d1c744e004afd2f002b916c084474e",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/ai-powered-home-management-system/v2/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-home-management-system/v2/sql/mysql.sql",
      "bytes": 93699,
      "sha256": "956590eab7edb7835b58d5c96e4f2036920d97d31bfadb91823bda7baa8ce187",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/ai-powered-home-management-system/v2/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-home-management-system/v2/sql/mssql.sql",
      "bytes": 96788,
      "sha256": "f4ba3c70fbe07add107c0a97154a3c36ca35225c548e79d22dd51193270c1f2b",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/ai-powered-home-management-system/v2/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-home-management-system/v2/sql/sqlite.sql",
      "bytes": 93462,
      "sha256": "33d5d38effd3cc8585f04cc28a74eb8178ad0f40bbbb59ef608050ab0d921dee",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/ai-powered-home-management-system/v2/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-home-management-system/v2/prisma/seed.ts",
      "bytes": 199129,
      "sha256": "1a47756eec716ca4fd575859d177d8bccca6a78d27d41523088b3c4610be80e8",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/ai-powered-home-management-system/v2/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-home-management-system/v2/django/fixtures.json",
      "bytes": 319888,
      "sha256": "b30033df6bc3d35857a3a3d0a9136c83fb7878cf042a981fdcfbd17938f7ee6a",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788765962885,
  "updatedAt": 1788777350439
}
