This Google Apps Script system adds a π Smart Home Tools menu to the Smart Home Inventory Google Sheet, with tools for keeping the inventory complete and tidy β autofilling device info from a model number, validating rows against a device database, sorting, and more. Explore the menu (including βΉοΈ Help) to see what's available.
- β Automatic population: Enter a model number β related fields auto-fill instantly
- β Smart detection: Only fills empty fields or fields with "-" placeholder
- β Non-intrusive: Won't overwrite data you've already entered
- β User feedback: Shows notifications on success or if model not found
- β Comprehensive checks: Validates all items against the device database
- β Beautiful HTML report: Shows discrepancies in an easy-to-read format
- β Cell references: Identifies exactly which cells have issues
- β Auto-fix option: Automatically correct all discrepancies with one click
- β Database stats: View statistics about your device database
- β Custom menu: Easy access to all tools via "π Smart Home Tools" menu
- β Clean code: Well-structured with separated concerns
- β Device database: Pre-loaded with your existing inventory
Open the Google Spreadsheet containing your "Items" sheet.
- In Google Sheets, click Extensions β Apps Script
- This opens the script editor in a new tab
Copy every file from src/autofill/ into the Apps Script editor, keeping the same file names. Delete the default Code.gs file if it still exists. (Or push them with clasp β see the deploy notes.)
- Click "Untitled project" at the top
- Rename it to "Smart Home Inventory - Autofill"
- Click away to save the name
- Close the Apps Script tab
- Go back to the spreadsheet
- Reload the page
- A new menu should appear: π Smart Home Tools
- Click π Smart Home Tools β β Validation β Show Database Stats
- Google will ask for authorization
- Click Review Permissions β Choose your account
- Click Advanced β Go to Smart Home Inventory - Autofill
- Click Allow