Skip to main content

๐Ÿš€ Install

NPMGitHub

๐Ÿ’พ Installโ€‹

Add as a dependency, and add to your imports. Nice and easy

npm i @digital-alchemy/automation

Add to code

import { LIB_HASS } from "@digital-alchemy/hass";
import { LIB_SYNAPSE } from "@digital-alchemy/synapse";
import { LIB_FASTIFY } from "@digital-alchemy/fastify-extension";
import { LIB_AUTOMATION } from "@digital-alchemy/automation";

// application
const MY_APP = CreateApplication({
libraries: [LIB_HASS, LIB_SYNAPSE, LIB_AUTOMATION, LIB_FASTIFY],
name: "home_automation",
})

// library
export const MY_LIBRARY = CreateLibrary({
// fastify optional for libraries
depends: [LIB_HASS, LIB_SYNAPSE, LIB_AUTOMATION/*, LIB_FASTIFY*/],
name: "special_logic",
})

๐ŸŽ‰