Skip to content

Streamline Home Assistant automation with TypeScript! πŸš€ Automatic type definitions, minimal dependencies, and VSCode optimized. Get started easily! πŸ‘πŸ’‘

License

Notifications You must be signed in to change notification settings

Digital-Alchemy-TS/haos-template

Repository files navigation

HAOS Template Repo πŸ‘πŸ’»

Welcome to the Digital Alchemy Starter Repo!

This repository is designed to work with Supervised and HAOS based installs, where Addons are supported. See installation documentation for a comparison of different installation types. These instructions assume that Studio Code Server Addon has been installed, serving as both editor and workspace management tool.

πŸš€ Setup

Within the Code Server Addon:

  1. Open a terminal

Press Ctrl-Shift-` (default keybind) to open a terminal, or go through Menu > Terminal > New Terminal.

  1. Execute the command
curl -fsSL https://setup.digital-alchemy.app -o setup.sh; bash setup.sh

This command will:

  • Download setup script & run it
  • Install NodeJS on your system
  • Clone this repository
  • Set up type definitions
  • Provide next steps

βš’οΈ Workspace Management

In order to help Code Server to keep node installed, you need to add a the following script as an init_command in the Configuration tab.

/config/home_automation/scripts/init.sh

ui location

πŸ’» Commands

Once your environment is set up, you can use provided commands from within the package.json to manage your workspace.

NPM Command Description
upgrade ⏺️ Upgrade all @digital-alchemy dependencies
Automatically runs type-writer afterwards
dev ⏩ Run the development server
Not intended for long term deployments!
watch πŸ‘€ Run the development server
Automatically restart server on code changes
build πŸ—οΈ Create a build of your code in the /share/digital_alchemy/ folder
Addon has been set up to run from here
type-writer πŸ–¨οΈ Rebuild custom type definitions for Home Assistant
Run any time you modify your setup for more accurate definitions

🧰 Extra Tools

About

Streamline Home Assistant automation with TypeScript! πŸš€ Automatic type definitions, minimal dependencies, and VSCode optimized. Get started easily! πŸ‘πŸ’‘

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published