Skip to content

Digital-Alchemy-TS/automation-standalone

Repository files navigation

Automation Standalone 🏡💻🐳

Welcome to the Digital Alchemy standalone automation repository!

Purpose

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.

Community

Setup

Prerequisites

These tools need to be installed on your machine:

  • Volta - Autonomously manages Node and Yarn versions
  • Docker desktop - For packaging the application

Clone

Clone the repository to your local machine:

git clone git@github.com/Digital-Alchemy-TS/automation-standalone.git

Change directory

Change directory to the repository root:

cd automation-standalone

Install

Install dependencies using Yarn:

yarn

Configure

Create a .env file from the .env.dist example file.

cp .env.dist .env

Then, configure each variable in .env so that the application can connect to your HA instance.

Usage

Sync

Synchronize the latest DA packages and write types based on your HA instance

yarn sync

Run

Run your automations locally

yarn dev

Testing

Unit tests and integration tests

Run all your tests

yarn test

End-to-end tests

See ./playground folder readme.

Publication

Build

Build the application

yarn build

Publish

Build and publish your application to a docker registry

yarn publish

Deploy

For 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.dist are passed into the container at runtime.

📄 License

This project is licensed under the MIT License, as detailed in the LICENSE file.

About

A docker-deployable standalone starter-kit for HomeAssistant automations using TypeScript

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published