You can bring your smart home data into Excel and turn it into a live dashboard, but Excel itself does not connect directly to most smart home devices. The practical method is to export device logs or use a hub that can push data to a spreadsheet, then use Excel's Power Query to refresh that data automatically. This guide covers the reliable routes: exporting from your smart home app, using a hub like SmartThings or Home Assistant to log to a CSV or Google Sheet, and then pulling that file into Excel. You will need a computer with Excel (Microsoft 365 or Excel 2019 or later for the best Power Query support), your smart home app or hub, and a way to share the exported file—such as a cloud folder or a web link.
What You'll Need
- Excel for Microsoft 365, Excel 2019, or Excel 2021 on Windows or Mac. The web version of Excel has limited Power Query support, so use the desktop app for refreshing.
- Your smart home app or hub (for example, SmartThings, Home Assistant, or a device manufacturer's app) that can export history or send data to a file.
- A cloud storage folder (OneDrive, Google Drive, or Dropbox) if you want Excel to refresh from a file automatically.
- Optional: a free IFTTT or Zapier account if your hub can send webhooks but not export files directly.
Step-by-Step
- Choose your data source. Open your smart home app and look for an export or history option. Many apps let you export sensor history as a CSV from the device's detail screen or from the app's settings. If your app has no export, check whether your hub (like SmartThings or Home Assistant) can log data to a file or a Google Sheet. The exact menu labels vary by app, device, and region, so look for terms like "Export," "Download data," or "History."
- Export the data to a CSV or a shared sheet. In the app, select the date range and the devices you want, then save the CSV to your computer or to a cloud folder. If you are using a hub, set up a logging integration that writes to a CSV on your network or to a Google Sheet. For Home Assistant, you can use the built-in recorder and export the database to CSV with a script, but that requires some technical comfort; a simpler route is to use a Google Sheets integration if your hub supports it.
- Open Excel and start Power Query. In Excel, go to the Data tab and click "Get Data." Choose "From File" > "From Text/CSV" if you saved a CSV, or "From Web" if your data is at a URL. If you saved to OneDrive or SharePoint, use "From File" > "From Workbook" or the cloud option. Power Query opens a preview window.
- Clean and shape the data. In the Power Query Editor, check that the first row is used as headers, remove blank rows, and set the correct data types (for example, Date/Time for timestamps, Decimal Number for temperature). Use the "Remove Rows" and "Change Type" buttons on the Home tab. Give the query a clear name, like "SmartHomeLog," then click "Close & Load" to put the table on a worksheet.
- Set up a refresh schedule. If your data source is a file in a cloud folder, you can refresh manually by right-clicking the table and choosing "Refresh," or set Excel to refresh when the file opens: go to Data > Queries & Connections, right-click the query, choose Properties, and tick "Refresh data when opening the file." For automatic background refresh, you need the file stored in OneDrive or SharePoint and opened in Excel for the web or desktop with the refresh option enabled. Note that Excel cannot pull from a local file while the file is closed; the refresh happens when you open the workbook.
- Build your dashboard. With the data loaded, insert PivotTables and PivotCharts to summarise by device, room, or hour. For example, create a PivotChart of temperature over time, or a count of motion events per day. Use slicers to filter by room. Keep the raw data table on a separate sheet and build the dashboard on a new sheet.
- Update the source regularly. If you export manually, repeat the export and overwrite the CSV in the same folder, then refresh the query. If you use a hub that writes to a Google Sheet, you can connect Excel to that sheet via "From Web" using the sheet's published CSV link, but be aware that Google Sheets publishing is read-only and may have a delay. For near-real-time data, consider a dedicated dashboard tool instead of Excel.
Common Mistakes
- Expecting Excel to connect directly to devices. Excel has no native smart home integrations. You must go through an export, a hub, or a webhook service.
- Using the web version of Excel for Power Query. The browser version has limited data refresh options; use the desktop app for building and refreshing queries.
- Forgetting to set data types. If timestamps are imported as text, charts will not plot correctly. Always set Date/Time and Number types in Power Query.
- Pointing the query at a file that moves. If you rename or move the CSV, the query breaks. Keep the file path stable, or use a cloud folder that keeps the same link.
- Assuming automatic refresh works with a closed file. Excel refreshes on open, not in the background when the file is closed, unless you use a scheduled refresh in Power BI or a similar service.
Tips
- Start with a small export (one device, one day) to test your query before pulling weeks of data.
- Use Power Query's "Reference" feature to create multiple queries from one source without duplicating the load.
- Name your query steps clearly; it makes debugging easier when a column changes.
- If your hub supports webhooks, services like IFTTT or Zapier can append rows to a Google Sheet, which Excel can then read via a published CSV link. This is not instant, but it is automatic.
- Keep a backup of your raw CSV before you overwrite it, in case you need to rebuild the query.
Troubleshooting
If the query fails to refresh, first check that the source file still exists at the same path and that you have permission to read it. For cloud files, sign out of your Microsoft account and sign back in, then try refresh again. If the data loads but looks wrong, open Power Query and check the applied steps—often a column has been removed or a type changed incorrectly. If Excel crashes on refresh, reduce the data size by filtering in Power Query before loading. If you cannot find an export option in your smart home app, check the manufacturer's support pages; some apps only show history for a limited period or require a subscription. As a last resort, contact the app's support; do not use unofficial apps or modified versions.
Frequently Asked Questions
Can Excel connect directly to my smart home devices?
No. Excel has no built-in smart home integrations. You need to export data from your app or hub, or use a service that writes to a file or sheet that Excel can read.
Can I refresh Excel data automatically?
You can set Excel to refresh when the workbook opens, but it will not refresh while the file is closed. For scheduled refresh without opening the file, you would need a service like Power BI or a script that runs on a computer that stays on.
What if my smart home app has no export option?
Check if your hub (like SmartThings or Home Assistant) can log data to a file or Google Sheet. If not, you may need to use a webhook service like IFTTT or Zapier to send data to a spreadsheet, but that depends on your device's integrations.
Does this work on Excel for Mac?
Yes, Power Query is available in Excel for Mac, but some features and menu locations differ from Windows. The steps are similar; look for the Data tab and Get Data.
Can I use Google Sheets instead of Excel?
Yes, Google Sheets has its own query and import functions, but this guide focuses on Excel. If you prefer Sheets, you can use its IMPORTDATA or connected sheets features.
Is it safe to export my smart home data?
Exporting your own device data is generally safe, but be careful where you store the file—avoid public links. Recording laws vary by location, so if your data includes camera or audio events, ensure you comply with local privacy rules.