{
  "format": "dataset-manifest/1",
  "slug": "voice-controlled-smart-home-energy-system-management",
  "version": 2,
  "seed": "voice-controlled-smart-home-energy-system-management:1",
  "spec": {
    "format": "dataset/1",
    "slug": "voice-controlled-smart-home-energy-system-management",
    "name": "EcoSync Energy Dynamics",
    "tagline": "Energy consumption patterns, device usage statistics, and peak load times from smart home systems.",
    "description": "EcoSync Energy Dynamics is a synthetic dataset designed to model a voice-controlled smart home energy management system. It captures various aspects of energy consumption, device usage, user preferences, and peak load times, enabling users to optimize their energy usage effectively. The dataset consists of multiple tables that relate to each other, allowing for comprehensive analysis of energy patterns and device statistics. With a focus on sustainability and efficiency, the data can help answer questions about energy consumption trends, peak usage times, and user behavior. This dataset is perfect for practicing analytics and BI dashboards, offering insights into real-time energy management in smart homes.",
    "domain": "energy",
    "shape": "time-series",
    "useCases": [
      "analytics-demo",
      "bi-dashboards"
    ],
    "keywords": [
      "smart home",
      "energy management",
      "voice control",
      "data analysis",
      "sustainability",
      "energy consumption",
      "device usage",
      "real-time data"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "energy_consumption": {
        "description": "This table records the energy consumption data of the smart home, linking to devices and capturing their usage over time.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each energy consumption record."
          },
          "device_id": {
            "kind": "fk",
            "ref": "devices.id",
            "description": "Foreign key linking to the device that consumed the energy."
          },
          "consumption_kwh": {
            "kind": "decimal",
            "min": 0,
            "max": 100,
            "scale": 2,
            "description": "Amount of energy consumed in kilowatt-hours.",
            "distribution": "normal"
          },
          "timestamp": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date and time of the recorded energy consumption.",
            "dayProfile": "business"
          }
        }
      },
      "devices": {
        "description": "This table contains information about the smart devices connected to the energy management system.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each device."
          },
          "device_name": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "Name of the smart device.",
            "nullable": true,
            "pool": [
              "thermostat",
              "sensor",
              "controller",
              "monitor",
              "switch",
              "hub",
              "gateway",
              "bulb",
              "plug",
              "outlet",
              "camera",
              "detector",
              "display",
              "module",
              "battery",
              "charger",
              "load",
              "valve",
              "fan",
              "system",
              "network"
            ]
          },
          "device_type": {
            "kind": "enum",
            "values": [
              "light",
              "thermostat",
              "appliance",
              "outlet"
            ],
            "description": "Type of the smart device.",
            "weights": [
              6,
              2,
              1,
              1
            ]
          },
          "user_id": {
            "kind": "fk",
            "ref": "user_profiles.id",
            "description": "Foreign key linking to the user who owns the device.",
            "nullable": true,
            "when": {
              "column": "device_type",
              "in": [
                "light",
                "thermostat"
              ]
            }
          }
        }
      },
      "user_profiles": {
        "description": "This table stores information about users of the smart home energy management system.",
        "rows": 50,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each user."
          },
          "full_name": {
            "kind": "fullName",
            "description": "Full name of the user.",
            "nullable": true
          },
          "email": {
            "kind": "email",
            "from": "full_name",
            "description": "User's email address.",
            "nullable": true
          },
          "preferences": {
            "kind": "json",
            "template": {
              "sustainability": {
                "kind": "bool"
              }
            },
            "description": "User preferences regarding sustainability.",
            "nullable": true
          }
        }
      },
      "peak_load_times": {
        "description": "This table captures the peak load times for energy consumption, helping to identify trends in usage.",
        "rows": 120,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each peak load record."
          },
          "day_of_week": {
            "kind": "enum",
            "values": [
              "Monday",
              "Tuesday",
              "Wednesday",
              "Thursday",
              "Friday",
              "Saturday",
              "Sunday"
            ],
            "description": "Day of the week when peak load was recorded.",
            "weights": [
              5,
              4,
              3,
              2,
              2,
              1,
              1
            ]
          },
          "peak_time_start": {
            "kind": "time",
            "description": "Start time of the peak energy consumption.",
            "nullable": true,
            "when": {
              "column": "day_of_week",
              "in": [
                "Monday",
                "Wednesday"
              ]
            }
          },
          "peak_time_end": {
            "kind": "time",
            "description": "End time of the peak energy consumption.",
            "nullable": true,
            "when": {
              "column": "day_of_week",
              "in": [
                "Monday",
                "Wednesday"
              ]
            }
          },
          "max_consumption_kwh": {
            "kind": "decimal",
            "min": 0,
            "max": 500,
            "scale": 2,
            "description": "Maximum energy consumption during peak times in kilowatt-hours.",
            "nullable": true,
            "distribution": "heavy-tail"
          }
        }
      },
      "device_usage": {
        "description": "This table provides statistics on the usage of devices over time, linked to energy consumption data.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each device usage record."
          },
          "device_id": {
            "kind": "fk",
            "ref": "devices.id",
            "description": "Foreign key linking to the device being used."
          },
          "usage_count": {
            "kind": "int",
            "min": 0,
            "max": 1000,
            "description": "Number of times the device was used.",
            "distribution": "long-tail"
          },
          "timestamp": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date and time of the recorded device usage.",
            "dayProfile": "waking"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "timestamped",
      "monetary",
      "free-text"
    ],
    "analysisQuestions": [
      "What times of day see the highest energy consumption?",
      "Which devices are used most frequently during peak hours?",
      "How do user preferences impact energy consumption patterns?",
      "Are there consistent trends in energy usage across different days of the week?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Device and Energy Consumption Data",
        "sql": "SELECT d.device_name, ec.consumption_kwh FROM devices d JOIN energy_consumption ec ON d.id = ec.device_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": "Find Peak Load Times",
        "sql": "SELECT day_of_week, peak_time_start, peak_time_end, MAX(max_consumption_kwh) FROM peak_load_times GROUP BY day_of_week, peak_time_start, peak_time_end;",
        "dialect": "postgres"
      },
      {
        "title": "Device Usage Trends Over Time",
        "sql": "SELECT d.device_name, COUNT(du.usage_count) AS total_usage FROM device_usage du JOIN devices d ON du.device_id = d.id GROUP BY d.device_name ORDER BY total_usage DESC;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Energy Analysts",
        "body": "Energy analysts can utilize this dataset to explore consumption patterns and device usage statistics, helping to shape strategies for energy conservation and efficiency improvements in smart homes."
      },
      {
        "title": "Business Intelligence Developers",
        "body": "BI developers can create dynamic dashboards that visualize energy consumption trends, device usage, and peak load times, providing valuable insights for smart home users."
      },
      {
        "title": "Sustainability Consultants",
        "body": "Sustainability consultants can analyze user preferences and energy consumption data to recommend enhancements for eco-friendly energy management practices in smart homes."
      }
    ]
  },
  "counts": {
    "peak_load_times": 120,
    "user_profiles": 50,
    "devices": 100,
    "device_usage": 300,
    "energy_consumption": 500
  },
  "stats": {
    "energy_consumption": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "device_id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "consumption_kwh": {
          "nulls": 0,
          "distinct": 477,
          "min": 8.97,
          "max": 85.91
        },
        "timestamp": {
          "nulls": 0,
          "distinct": 500,
          "min": "2023-01-01 19:13:51",
          "max": "2023-12-31 12:34:34"
        }
      }
    },
    "devices": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "device_name": {
          "nulls": 14,
          "distinct": 70
        },
        "device_type": {
          "nulls": 0,
          "distinct": 4,
          "min": "appliance",
          "max": "thermostat"
        },
        "user_id": {
          "nulls": 20,
          "distinct": 41,
          "min": 1,
          "max": 50
        }
      }
    },
    "user_profiles": {
      "rows": 50,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "full_name": {
          "nulls": 6,
          "distinct": 44,
          "min": "Anna Schmidt",
          "max": "Zoe Tanaka"
        },
        "email": {
          "nulls": 9,
          "distinct": 41
        },
        "preferences": {
          "nulls": 5,
          "distinct": 2
        }
      }
    },
    "peak_load_times": {
      "rows": 120,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 120,
          "min": 1,
          "max": 120
        },
        "day_of_week": {
          "nulls": 0,
          "distinct": 7,
          "min": "Friday",
          "max": "Wednesday"
        },
        "peak_time_start": {
          "nulls": 70,
          "distinct": 50,
          "min": "00:34:14",
          "max": "23:28:00"
        },
        "peak_time_end": {
          "nulls": 70,
          "distinct": 50,
          "min": "00:14:26",
          "max": "23:22:02"
        },
        "max_consumption_kwh": {
          "nulls": 16,
          "distinct": 102,
          "min": 0,
          "max": 485.62
        }
      }
    },
    "device_usage": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "device_id": {
          "nulls": 0,
          "distinct": 95,
          "min": 1,
          "max": 100
        },
        "usage_count": {
          "nulls": 0,
          "distinct": 250,
          "min": 0,
          "max": 992
        },
        "timestamp": {
          "nulls": 0,
          "distinct": 300,
          "min": "2023-01-02 16:07:01",
          "max": "2023-12-28 18:11:25"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/peak_load_times.csv",
      "format": "csv",
      "table": "peak_load_times",
      "key": "datasets/voice-controlled-smart-home-energy-system-management/v2/csv/peak_load_times.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/voice-controlled-smart-home-energy-system-management/v2/csv/peak_load_times.csv",
      "bytes": 3212,
      "sha256": "4badeae0d1870f9b1b0b308cfeea4666f290f29e31145e972c22e6d86058d8d3",
      "rows": 120,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/user_profiles.csv",
      "format": "csv",
      "table": "user_profiles",
      "key": "datasets/voice-controlled-smart-home-energy-system-management/v2/csv/user_profiles.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/voice-controlled-smart-home-energy-system-management/v2/csv/user_profiles.csv",
      "bytes": 3060,
      "sha256": "9397dd188b53535adee3ca6b8e9b8f13e4f713ef70ecd5e941938f1afbe0a7f3",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/devices.csv",
      "format": "csv",
      "table": "devices",
      "key": "datasets/voice-controlled-smart-home-energy-system-management/v2/csv/devices.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/voice-controlled-smart-home-energy-system-management/v2/csv/devices.csv",
      "bytes": 2664,
      "sha256": "181b93d61d31862e731b83b34f46a67f309e4a3bd82ef529e06a59689b7ab100",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/device_usage.csv",
      "format": "csv",
      "table": "device_usage",
      "key": "datasets/voice-controlled-smart-home-energy-system-management/v2/csv/device_usage.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/voice-controlled-smart-home-energy-system-management/v2/csv/device_usage.csv",
      "bytes": 9390,
      "sha256": "0799735ba304025f1a8dc787c4f90cf58eddf46aa6efb775dbf732ad383e554f",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/energy_consumption.csv",
      "format": "csv",
      "table": "energy_consumption",
      "key": "datasets/voice-controlled-smart-home-energy-system-management/v2/csv/energy_consumption.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/voice-controlled-smart-home-energy-system-management/v2/csv/energy_consumption.csv",
      "bytes": 16897,
      "sha256": "12e1c91bb5440d4ab9c8f73026af592ffeb0979fea4e1a7f5ca35dcbe838dea6",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "voice-controlled-smart-home-energy-system-management.json",
      "format": "json",
      "table": null,
      "key": "datasets/voice-controlled-smart-home-energy-system-management/v2/voice-controlled-smart-home-energy-system-management.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/voice-controlled-smart-home-energy-system-management/v2/voice-controlled-smart-home-energy-system-management.json",
      "bytes": 137702,
      "sha256": "2d7cd8b4009b8590d305d7b1bb644deb214e00c1dd6c283c6207f5c5a3216986",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/voice-controlled-smart-home-energy-system-management/v2/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/voice-controlled-smart-home-energy-system-management/v2/sql/postgres.sql",
      "bytes": 51085,
      "sha256": "92109638e005925e2c76cd5a7f9bce22dfedd083137918ba4ac20d241e0c45c8",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/voice-controlled-smart-home-energy-system-management/v2/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/voice-controlled-smart-home-energy-system-management/v2/sql/mysql.sql",
      "bytes": 50485,
      "sha256": "1041bc70e1c5f7b52ea94578cc01fb3ea44b107ab6a8d49c3ec8919b9afc4d0d",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/voice-controlled-smart-home-energy-system-management/v2/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/voice-controlled-smart-home-energy-system-management/v2/sql/mssql.sql",
      "bytes": 52192,
      "sha256": "d7f3f1ce45d9be3062bb482e68b688c514588475154a52a6d6bc568707986236",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/voice-controlled-smart-home-energy-system-management/v2/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/voice-controlled-smart-home-energy-system-management/v2/sql/sqlite.sql",
      "bytes": 50307,
      "sha256": "1fa4bd205547b1321c61b33efdcfe69fed1fd7ca14452604db440b51090722f5",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/voice-controlled-smart-home-energy-system-management/v2/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/voice-controlled-smart-home-energy-system-management/v2/prisma/seed.ts",
      "bytes": 117058,
      "sha256": "8f84551dda3cf1a8c4992b72c447d580d3a550075f70cb58ff433120a31697a4",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/voice-controlled-smart-home-energy-system-management/v2/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/voice-controlled-smart-home-energy-system-management/v2/django/fixtures.json",
      "bytes": 190931,
      "sha256": "f56ef58698e84e1e91030dd405a1183fde70153a84210ff5bf9c326b760021b2",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788765991132,
  "updatedAt": 1788786877444
}
