{
  "format": "dataset-manifest/1",
  "slug": "voice-activated-smart-home-control",
  "version": 3,
  "seed": "voice-activated-smart-home-control:1",
  "engine": 1,
  "engineVersion": "1.0.0",
  "spec": {
    "format": "dataset/1",
    "slug": "voice-activated-smart-home-control",
    "name": "Smart Home Energy Insights",
    "tagline": "Patterns of smart home device activations, voice commands, energy consumption, and user routines.",
    "description": "Smart home devices monitor and manage energy consumption in increasingly interconnected homes. Through a network of appliances and systems, households optimize their utility usage, enhancing comfort and efficiency. The operation revolves around tracking how devices are activated, how voice commands are utilized to control them, and the routines established by users to automate these actions. For instance, evenings often see a surge in energy consumption as users engage with their homes, highlighting distinct patterns in their interactions with smart technology.\n\nThe primary tables in this dataset illustrate key components of this smart energy management system. The 'devices' table contains information on various smart appliances, detailing their type, status, and energy consumption metrics. The 'voice_commands' table records the commands issued by users, showing how often and which commands are executed in relation to device activations. 'energy_consumption' captures the actual energy usage data over time, linking it to specific devices through timestamps. The 'routine_schedules' table outlines the predefined schedules set by users for their devices, establishing when certain actions are expected to occur. Finally, the 'user_engagement' table tracks how often users interact with their smart home systems, providing insights into user behavior.\n\nBy analyzing this data, developers can answer questions about energy usage patterns, device effectiveness, and the relationship between user commands and energy consumption. They can explore how different routines impact overall energy efficiency and how user engagement changes with varying usage trends. This dataset is ideal for practicing data analysis, exploring smart home technology impacts, and developing models to predict energy consumption behavior. Please note that this data is synthetic, designed to simulate realistic smart home energy management scenarios for practice.",
    "domain": "energy",
    "shape": "time-series",
    "useCases": [
      "analytics-demo",
      "bi-dashboards"
    ],
    "keywords": [
      "smart home",
      "energy management",
      "voice control",
      "device activation",
      "routine schedules",
      "energy consumption",
      "time-series"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "devices": {
        "description": "This table holds information about the smart devices in the home. Each device has a unique ID and is linked to its type and model.",
        "rows": 50,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each device."
          },
          "device_type": {
            "kind": "enum",
            "values": [
              "light",
              "thermostat",
              "security_camera",
              "speaker"
            ],
            "description": "Type of the smart device.",
            "weights": [
              6,
              4,
              2,
              1
            ]
          },
          "model": {
            "kind": "words",
            "max": 3,
            "description": "Model name of the smart device.",
            "pool": [
              "thermostat",
              "bulb",
              "camera",
              "sensor",
              "plug",
              "hub",
              "switch",
              "outlet",
              "doorbell",
              "lock",
              "thermometer",
              "fan",
              "speaker",
              "controller",
              "monitor",
              "detector",
              "display",
              "module",
              "gateway",
              "appliance",
              "system"
            ],
            "min": 1
          },
          "installation_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "The date the device was installed."
          }
        }
      },
      "voice_commands": {
        "description": "This table captures the voice commands issued by users, linking them to specific devices and the time of execution.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each voice command."
          },
          "device_id": {
            "kind": "fk",
            "ref": "devices.id",
            "description": "References the device being controlled."
          },
          "command": {
            "kind": "words",
            "max": 3,
            "description": "The voice command issued by the user.",
            "pool": [
              "turn",
              "set",
              "increase",
              "decrease",
              "activate",
              "deactivate",
              "play",
              "pause",
              "stop",
              "start",
              "open",
              "close",
              "lock",
              "unlock",
              "schedule",
              "check",
              "report",
              "show",
              "adjust",
              "sync",
              "configure"
            ],
            "min": 1
          },
          "executed_at": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Timestamp of when the command was executed.",
            "dayProfile": "waking"
          },
          "response_time_seconds": {
            "kind": "decimal",
            "min": 0,
            "max": 5,
            "scale": 2,
            "distribution": "normal",
            "description": "Time taken to execute the command in seconds."
          }
        }
      },
      "energy_consumption": {
        "description": "This table records the energy consumption data for each device over time, allowing analysis of usage trends.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each record of energy consumption."
          },
          "device_id": {
            "kind": "fk",
            "ref": "devices.id",
            "description": "References the device whose energy consumption is recorded."
          },
          "consumption_kwh": {
            "kind": "decimal",
            "min": 0,
            "max": 10,
            "scale": 2,
            "description": "Energy consumed by the device in kilowatt-hours.",
            "distribution": "high"
          },
          "recorded_at": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Timestamp of when the energy consumption was recorded."
          },
          "peak_consumption_kwh": {
            "kind": "decimal",
            "min": 0,
            "max": 10,
            "scale": 2,
            "distribution": "normal",
            "description": "Peak energy consumption during the recording period."
          },
          "average_consumption_kwh": {
            "kind": "decimal",
            "min": 0,
            "max": 10,
            "scale": 2,
            "distribution": "normal",
            "description": "Average energy consumption over a defined period."
          }
        }
      },
      "routine_schedules": {
        "description": "This table defines the schedules for routines that automate device activities, detailing when they should be activated.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each routine schedule."
          },
          "device_id": {
            "kind": "fk",
            "ref": "devices.id",
            "description": "References the device involved in the routine."
          },
          "scheduled_time": {
            "kind": "time",
            "description": "Time of day when the routine is scheduled to activate."
          },
          "routine_name": {
            "kind": "words",
            "max": 3,
            "description": "Name of the routine associated with the schedule.",
            "pool": [
              "morning",
              "evening",
              "night",
              "away",
              "home",
              "sleep",
              "wake",
              "movie",
              "party",
              "cleaning",
              "cooking",
              "exercise",
              "security",
              "relax",
              "energy",
              "comfort",
              "entertainment",
              "dinner",
              "study",
              "notification"
            ],
            "min": 1
          },
          "duration_minutes": {
            "kind": "int",
            "min": 1,
            "max": 1440,
            "distribution": "normal",
            "description": "Duration for which the routine is active in minutes."
          }
        }
      },
      "user_engagement": {
        "description": "This table tracks user interactions with the smart home system, linking them to voice commands and routines.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each user engagement record."
          },
          "user_id": {
            "kind": "uuid",
            "description": "Unique identifier for the user engaging with the system."
          },
          "command_id": {
            "kind": "fk",
            "ref": "voice_commands.id",
            "description": "References the voice command associated with the engagement."
          },
          "engaged_at": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Timestamp of when the user engaged with the system.",
            "dayProfile": "waking",
            "trend": "growing"
          },
          "engagement_type": {
            "kind": "enum",
            "values": [
              "voice command",
              "routine activation"
            ],
            "description": "Type of user engagement with the system."
          },
          "engagement_duration_seconds": {
            "kind": "decimal",
            "min": 0,
            "max": 300,
            "scale": 2,
            "distribution": "normal",
            "description": "Duration of user engagement in seconds."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "timestamped",
      "monetary",
      "categorical",
      "high-cardinality"
    ],
    "analysisQuestions": [
      "What time of day do users engage with voice commands the most?",
      "Which devices consume the most energy during peak hours?",
      "How do routine schedules affect overall energy consumption?",
      "Are there any seasonal trends in smart home energy usage?",
      "What voice commands are most frequently executed?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Voice Commands with Devices",
        "sql": "SELECT vc.command, d.device_type FROM voice_commands vc JOIN devices d ON vc.device_id = d.id;",
        "dialect": "postgres"
      },
      {
        "title": "Aggregate Energy Consumption by Device Type",
        "sql": "SELECT d.device_type, SUM(ec.consumption_kwh) AS total_consumption FROM energy_consumption ec JOIN devices d ON ec.device_id = d.id GROUP BY d.device_type;",
        "dialect": "postgres"
      },
      {
        "title": "Daily Peak Usage Analysis",
        "sql": "SELECT DATE(recorded_at) AS date, MAX(consumption_kwh) AS peak_consumption FROM energy_consumption GROUP BY DATE(recorded_at);",
        "dialect": "postgres"
      },
      {
        "title": "User Engagement Trends Over Time",
        "sql": "SELECT DATE(engaged_at) AS date, COUNT(*) AS engagement_count FROM user_engagement GROUP BY DATE(engaged_at);",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Energy Management Dashboard",
        "body": "Energy analysts can use this dataset to build a dashboard that visualizes energy consumption trends in smart homes. By monitoring device usage patterns, they can provide recommendations for optimizing energy efficiency."
      },
      {
        "title": "User Behavior Analysis",
        "body": "Researchers can analyze user engagement with voice commands to understand how homeowners interact with their devices. This analysis can inform the development of more intuitive voice recognition systems."
      },
      {
        "title": "Routine Optimization",
        "body": "Smart home developers can utilize the routine schedules data to enhance automation features. By examining how routines impact energy consumption, they can create smarter scheduling algorithms that save energy."
      },
      {
        "title": "Peak Usage Identification",
        "body": "Utility companies can leverage the energy consumption data to identify peak usage times across different devices. This information can be used to develop demand-response programs that encourage users to shift their energy usage."
      }
    ]
  },
  "counts": {
    "devices": 50,
    "energy_consumption": 500,
    "routine_schedules": 100,
    "voice_commands": 300,
    "user_engagement": 200
  },
  "stats": {
    "devices": {
      "rows": 50,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "device_type": {
          "nulls": 0,
          "distinct": 4,
          "min": "light",
          "max": "thermostat"
        },
        "model": {
          "nulls": 0,
          "distinct": 42
        },
        "installation_date": {
          "nulls": 0,
          "distinct": 50,
          "min": "2020-01-21",
          "max": "2023-12-07"
        }
      }
    },
    "voice_commands": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "device_id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "command": {
          "nulls": 0,
          "distinct": 207
        },
        "executed_at": {
          "nulls": 0,
          "distinct": 300,
          "min": "2023-01-02 18:46:53",
          "max": "2023-12-31 16:38:50"
        },
        "response_time_seconds": {
          "nulls": 0,
          "distinct": 188,
          "min": 0.35,
          "max": 4.18
        }
      }
    },
    "energy_consumption": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "device_id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "consumption_kwh": {
          "nulls": 0,
          "distinct": 362,
          "min": 0.02,
          "max": 10
        },
        "recorded_at": {
          "nulls": 0,
          "distinct": 500,
          "min": "2023-01-01 02:01:05",
          "max": "2023-12-31 12:55:32"
        },
        "peak_consumption_kwh": {
          "nulls": 0,
          "distinct": 313,
          "min": 0.76,
          "max": 8.96
        },
        "average_consumption_kwh": {
          "nulls": 0,
          "distinct": 323,
          "min": 0.75,
          "max": 8.58
        }
      }
    },
    "routine_schedules": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "device_id": {
          "nulls": 0,
          "distinct": 44,
          "min": 1,
          "max": 50
        },
        "scheduled_time": {
          "nulls": 0,
          "distinct": 100,
          "min": "00:02:10",
          "max": "23:48:02"
        },
        "routine_name": {
          "nulls": 0,
          "distinct": 82
        },
        "duration_minutes": {
          "nulls": 0,
          "distinct": 94,
          "min": 206,
          "max": 1297
        }
      }
    },
    "user_engagement": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "user_id": {
          "nulls": 0,
          "distinct": 200
        },
        "command_id": {
          "nulls": 0,
          "distinct": 144,
          "min": 1,
          "max": 294
        },
        "engaged_at": {
          "nulls": 0,
          "distinct": 200,
          "min": "2023-01-07 19:58:38",
          "max": "2023-12-31 18:21:33"
        },
        "engagement_type": {
          "nulls": 0,
          "distinct": 2,
          "min": "routine activation",
          "max": "voice command"
        },
        "engagement_duration_seconds": {
          "nulls": 0,
          "distinct": 199,
          "min": 36.06,
          "max": 236.33
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/devices.csv",
      "format": "csv",
      "table": "devices",
      "key": "datasets/voice-activated-smart-home-control/v3/csv/devices.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/voice-activated-smart-home-control/v3/csv/devices.csv",
      "bytes": 1968,
      "sha256": "c5cac346278e282403817760a1891db6a315212ab37f79fc43152a20a269a91c",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/energy_consumption.csv",
      "format": "csv",
      "table": "energy_consumption",
      "key": "datasets/voice-activated-smart-home-control/v3/csv/energy_consumption.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/voice-activated-smart-home-control/v3/csv/energy_consumption.csv",
      "bytes": 21403,
      "sha256": "3980d001abaf6247bb3e36fe62c9f1ea63e63b06727a1fc4b3e08794a0137c2b",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/routine_schedules.csv",
      "format": "csv",
      "table": "routine_schedules",
      "key": "datasets/voice-activated-smart-home-control/v3/csv/routine_schedules.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/voice-activated-smart-home-control/v3/csv/routine_schedules.csv",
      "bytes": 3584,
      "sha256": "f3b189c89276796cca7e9bde66e9e5d73a613a6507b83c3835f077545af54b95",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/voice_commands.csv",
      "format": "csv",
      "table": "voice_commands",
      "key": "datasets/voice-activated-smart-home-control/v3/csv/voice_commands.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/voice-activated-smart-home-control/v3/csv/voice_commands.csv",
      "bytes": 13792,
      "sha256": "5689efd08a94d654e25effc61269f708f4c37724d0dce37f4345c13eb85dd958",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/user_engagement.csv",
      "format": "csv",
      "table": "user_engagement",
      "key": "datasets/voice-activated-smart-home-control/v3/csv/user_engagement.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/voice-activated-smart-home-control/v3/csv/user_engagement.csv",
      "bytes": 17748,
      "sha256": "1c50d5d174cfa44791595cb3d4db448273a5c143c59d4e6ac5c0f7aa0adac6c1",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "voice-activated-smart-home-control.json",
      "format": "json",
      "table": null,
      "key": "datasets/voice-activated-smart-home-control/v3/voice-activated-smart-home-control.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/voice-activated-smart-home-control/v3/voice-activated-smart-home-control.json",
      "bytes": 221474,
      "sha256": "123806d81ba4957215ea9716982c41dc2283921fb61c0a60a4f8e497076ae116",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/voice-activated-smart-home-control/v3/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/voice-activated-smart-home-control/v3/sql/postgres.sql",
      "bytes": 78144,
      "sha256": "356918bd65fac67e99452d91f1486310796c808b3e4b7eb303eabcc550ccde3d",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/voice-activated-smart-home-control/v3/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/voice-activated-smart-home-control/v3/sql/mysql.sql",
      "bytes": 77532,
      "sha256": "5d169708b90bda497bba68c98b79f3f017fec68c6530c418864726b7c51aac57",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/voice-activated-smart-home-control/v3/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/voice-activated-smart-home-control/v3/sql/mssql.sql",
      "bytes": 79965,
      "sha256": "608e1236de4f37dcb2518088fb9c3e1a62cd7891796533406d23c1e203cf5310",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/voice-activated-smart-home-control/v3/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/voice-activated-smart-home-control/v3/sql/sqlite.sql",
      "bytes": 77282,
      "sha256": "f37d3ec48e51c1f8e48a7964346f2c8d16ce384c228d7e184720660e80f76c8b",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/voice-activated-smart-home-control/v3/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/voice-activated-smart-home-control/v3/prisma/seed.ts",
      "bytes": 191053,
      "sha256": "54a18126b28f230f9df9a01e95f7bbfbf9173846a089f9298b52edc5a4b40406",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/voice-activated-smart-home-control/v3/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/voice-activated-smart-home-control/v3/django/fixtures.json",
      "bytes": 282528,
      "sha256": "c8f6483ce07ac061f7df565416e419e43ddbb6126de678f056fde9fe16305489",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788765911531,
  "updatedAt": 1789096139073
}
