Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/digital-alchemy-ts/type-writer

Type generation tool for Home Assistant
https://github.com/digital-alchemy-ts/type-writer

application digital-alchemy home-assistant home-automation nodejs typescipt

Last synced: 1 day ago
JSON representation

Type generation tool for Home Assistant

Awesome Lists containing this project

README

        

Welcome to `@digital-alchemy/type-writer`!

This application acts a support application for [@digital-alchemy/hass](https://github.com/Digital-Alchemy-TS/hass), providing type definitions to assist during development

- [Project docs](https://docs.digital-alchemy.app)
- [Discord](https://discord.gg/JkZ35Gv97Y)

![editor](./docs/editor.png)

## 🚀 Usage

```bash
# install to devDependencies
npm i --save-dev @digital-alchemy/type-writer
# run
npx type-writer
```
![command](./docs/command.png)

If you are running your code within a Home Assistant addon environment, `type-writer` will automatically connect to your install. No configuration needed!

## ⚙️ Configuration

For setups outside an addon environment, a configuration file is needed. Create one of the following:

- `.type_writer`: add to project root
- `~/.config/type_writer`: add to user configs

**Contents:**

```ini
[hass]
BASE_URL=http://localhost:8123
TOKEN=... # YOUR LONG LIVED ACCESS TOKEN
```