Welcome to the Digital Alchemy standalone automation repository!
This repository is designed to work both locally and deployed as a docker container. The container will interact with the HomeAssistant websocket to fulfill its automation goals.
- π Documentation
- π£οΈ Discord
These tools need to be installed on your machine:
- Volta - Autonomously manages Node and Yarn versions
- Docker desktop - For packaging the application
Clone the repository to your local machine:
git clone git@github.com/Digital-Alchemy-TS/automation-standalone.gitChange directory to the repository root:
cd automation-standaloneOptional: If you don't have Volta installed, you must enable Corepack to use the correct Yarn version.
npm uninstall -g yarn pnpm
corepack enableInstall dependencies using Yarn:
yarnCreate a .env file from the .env.dist example file.
cp .env.dist .envThen, configure each variable in .env so that the application can connect to your HA instance.
Synchronize the latest DA packages and write types based on your HA instance
yarn type-writerRun your automations locally
yarn devRun all your tests
yarn testSee ./playground folder readme.
Build the application
yarn buildBuild and publish your application to a docker registry
yarn publishFor now, this will be considered a manual step. Basically all you have to do is pull the image that you've just pushed.
Note: make sure that the same variables from
.env.distare passed into the container at runtime.
This project is licensed under the MIT License, as detailed in the LICENSE file.