aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorAndrea Pierangeli <andrea.pierangeli@gmail.com>2024-02-07 18:09:48 +0100
committerBastien Wirtz <bastien.wirtz@gmail.com>2024-03-11 02:05:55 -0700
commit9c537fb926f065809f46972e150b19a181f1b447 (patch)
tree42df5e402509276e254171139fe9b55d360a9aec /docs
parentbcebb3e67ef546071d4a455ba4661d6a51152871 (diff)
downloadhomer-9c537fb926f065809f46972e150b19a181f1b447.tar.gz
homer-9c537fb926f065809f46972e150b19a181f1b447.tar.zst
homer-9c537fb926f065809f46972e150b19a181f1b447.zip
Add OpenHAB custom service
Diffstat (limited to 'docs')
-rw-r--r--docs/customservices.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/customservices.md b/docs/customservices.md
index 910f401..64ed416 100644
--- a/docs/customservices.md
+++ b/docs/customservices.md
@@ -35,6 +35,7 @@ within Homer:
35 - [Tdarr](#tdarr) 35 - [Tdarr](#tdarr)
36 - [PiAlert](#pialert) 36 - [PiAlert](#pialert)
37 - [Immich](#immich) 37 - [Immich](#immich)
38 - [OpenHAB](#openhab)
38 39
39If you experiencing any issue, please have a look to the [troubleshooting](troubleshooting.md) page. 40If you experiencing any issue, please have a look to the [troubleshooting](troubleshooting.md) page.
40 41
@@ -446,3 +447,19 @@ The Immich server must be running at least version 1.85.0 for the correct api en
446 apikey: "<--- Your api key --->" # administrator user 447 apikey: "<--- Your api key --->" # administrator user
447 updateInterval: 5000 # (Optional) Interval (in ms) for updating the stats 448 updateInterval: 5000 # (Optional) Interval (in ms) for updating the stats
448``` 449```
450
451## OpenHAB
452
453You need to set the type to OpenHAB, provide an api key and enable cors on OpenHAB.
454
455```yaml
456- name: "OpenHAB"
457 logo: "assets/tools/sample.png"
458 url: "http://192.168.0.151/"
459 type: "OpenHAB"
460 apikey: "<---insert-api-key-here--->"
461 things: true # true will query the things API and report total and online things count. false will skip the call
462 items: true # true will query the items API and report total items count. false will skip the call
463```
464To create an API token on OpenHAB, follow the [official documentation here](https://www.openhab.org/docs/configuration/apitokens.html).
465To enable cors on OpenHAB, edit your services/runtime.cfg and uncomment or add this line: `org.openhab.cors:enable=true` \ No newline at end of file