From fdb70a9703100d8a77a594d4449cdeebe4b91cd5 Mon Sep 17 00:00:00 2001 From: Martin Dimitrov Date: Mon, 23 Sep 2024 20:14:27 -0700 Subject: [PATCH] add homeassistant --- README.md | 16 ++++++++++++++++ doorman.code-workspace | 3 +++ 2 files changed, 19 insertions(+) diff --git a/README.md b/README.md index 0102c10..6e8f8db 100644 --- a/README.md +++ b/README.md @@ -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' }}" +``` \ No newline at end of file diff --git a/doorman.code-workspace b/doorman.code-workspace index deca794..d5aeaf5 100644 --- a/doorman.code-workspace +++ b/doorman.code-workspace @@ -8,6 +8,9 @@ }, { "path": "." + }, + { + "path": "packages/serverless" } ] } \ No newline at end of file