Skip to content

Document gateway connect #63

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions docs/tutorials/connect-your-gateway-to-openremote.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
sidebar_position: 4
---

# Connect your gateway or controller to OpenRemote

An example for connecting your personal gateway or controller to OpenRemote.
This tutorial explains how to link an individual user's gateway (e.g. Home Asistant, openHAB, Smappee) to an OpenRemote central instance.
This use case is relevant for organisations which want to enable their users to connect their centralised service in OpenRemote to their user's individual gateways or controllers.

## Create a restricted service user in OpenRemote

First of all create a service user in OpenRemote:

* go to the users page and select 'add service user'
* create a (service) user name
* select the Realm role: 'Restricted user' and select which assets this service user shpuld have access (Linked assets)
* select the correct roles: 'read assets' and 'write attributes' to allow the service user to read and write (if you want him to be able to write) to the attributes of the asset he is linked to
* don't forget to add the configuration items 'Acces restricted read' and 'Access restricted write' (if you want him to be able to write to this attribute) to the attributes of the assets the service user is linked to

Once you saved the service user, a secret is generated. Store the secret as you will need it later.

## Linking with Home Assistant

To enable a user of Home Assistant to link to the central OpenRemote instance, the user will need:
* a service user name
* a secret
* the URL path to the asset and attributes the user has access to



## Linking with openHAB

To enable a user of openHAB to link to the central OpenRemote instance, the user will need:
* a service user name
* a secret
* the URL path to the asset and attributes the user has access to

Within openHAB....


**IGNORE: Example to add a figure.**

![Fahrenheit attribute as filled by the flow](img/flow-the-fahrenheit-result.png)