doorman/README.md
Martin Dimitrov 24ca5f8e0b
Some checks failed
Build and push Doorman UI / API / docker (push) Failing after 17s
move packages
2024-10-26 11:49:42 -07:00

45 lines
899 B
Markdown

# doorman
To install dependencies:
```bash
bun install
```
To run:
```bash
bun run index.ts
```
This project was created using `bun init` in bun v1.0.3. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
## Deployments
They are configured to happen in gitea actions for CI/CD. If you need to deploy manually, it should be possible as long as you source the requisite envs first.
## to deploy Doorman API / UI
```bash
bun run deploy-serverless
```
## to deploy Doorman Buzzer client
```bash
bun run deploy-buzzer-client
```
## homeassistant integration poller
in configuration.yaml
```
switch:
- platform: rest
name: Doorman
icon: mdi:door-closed-lock
state_resource: https://doorman.chromart.cc/api/door/info?door=buzzer
resource: https://doorman.chromart.cc/api/door/auth?door=buzzer&key=1991
is_on_template: "{{ value_json.status == 'OPEN' }}"
```