add homeassistant
Some checks failed
Build and push image for doorman / docker (push) Failing after 2m44s

This commit is contained in:
Martin Dimitrov 2024-09-23 20:14:27 -07:00
parent 81699c7bf4
commit fdb70a9703
2 changed files with 19 additions and 0 deletions

View File

@ -13,3 +13,19 @@ 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.
## homeassistant integration
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' }}"
```

View File

@ -8,6 +8,9 @@
},
{
"path": "."
},
{
"path": "packages/serverless"
}
]
}