Giter Site home page Giter Site logo

automation's Introduction

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 [email protected]/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.

automation's People

Contributors

webbertakken avatar

Stargazers

Ben Siggery avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.