Skip to content

Commit

Permalink
update Global Administration with v0.6.0 dApp
Browse files Browse the repository at this point in the history
  • Loading branch information
LoSk-p committed May 21, 2024
1 parent 89b1b5f commit c8361d3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 14 deletions.
42 changes: 28 additions & 14 deletions docs/global-administration.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,56 @@
---
title: Global Administration

contributors: [nakata5321, Fingerling42]
contributors: [nakata5321, Fingerling42, LoSk-p]
tools:
- Robonomics 2.7.0-1
https://github.com/airalab/robonomics
- Robonomics Dapp
https://github.com/airalab/dapp.robonomics.network
- Robonomics Dapp v0.6.0
https://github.com/airalab/robonomics.app
---

**This article will show you how to set up a new user to your Home Assistant.**

## Adding Users to Subscription

You cannot use previously created accounts because `SUB_OWNER` and `SUB_CONTROLLER` provide security, and the first user you created when you first started Home Assistant does not have a Robonomics Parachain account.
You cannot use previously created accounts because `OWNER` and `CONTROLLER` provide security, and the first user you created when you first started Home Assistant does not have a Robonomics Parachain account.

1. Create an account on Robonomics parachain, as you did in the [previous article](/docs/sub-activate/).

2. Using `SUB_OWNER` account add new user account to the subscription in the [dapp](https://dapp.robonomics.network/#/subscription/devices). Now there should be three addresses in the access list: `SUB_OWNER`, `SUB_CONTROLLER` and `USER`.
2. Using `OWNER` account add new user account to the subscription on the `SETUP A SUBSCRIPTION` page in [Robonomics DApp](https://robonomics.app/#/rws-setup). Now in `USERS IN SUBSCRIPTION` section should be three addresses in the access list: `OWNER`, `CONTROLLER` and `USER`.

<robo-wiki-video autoplay loop controls :videos="[{src: 'https://crustipfs.art/ipfs/QmSxzram7CF4SXpVgEyv98XetjYsxNFQY2GY4PfyhJak7H', type:'mp4'}]" />
<robo-wiki-video autoplay loop controls :videos="[{src: 'https://crustipfs.art/ipfs/QmRyYN7BBodS1VSy5Kq24Mj2zviA8y4m8eF9kUWoCW7CZu', type:'mp4'}]" />


## RWS Setup JSON File

If the user doesn't have `CONTROLLER` credentials (normally he shouldn't), the administrator should give him a JSON file with the information of the RWS Setup.

### Create RWS Setup JSON

Administrator can create JSON file for his setup in [SETUP A SUBSCRIPTION](https://robonomics.app/#/rws-setup) page using `Download import for other users` button.

<robo-wiki-picture src="home-assistant/download_rws_setup_json.png" />

### Import RWS Setup

Now with this JSON file user can import RWS setup using `IMPORT SETUP` button.

<robo-wiki-video autoplay loop controls :videos="[{src: 'https://crustipfs.art/ipfs/QmYr9shCyFzMNLEeP8LC6ZRiEF2YpMaoDrrs587QpTvsgY', type:'mp4'}]" />

## Granting Access to User

1. Go to the dapp service called [Home Assistant Account](https://dapp.robonomics.network/#/home-assistant). Choose the account you've just created at the right sidebar (check that you have chosen the intended account by pressing the profile icon).
On the same page ([SETUP A SUBSCRIPTION](https://robonomics.app/#/rws-setup)) you can set the password for the new user.

2. Enter the `USER` seed in the required field. Add `SUB_OWNER` and `SUB_CONTROLLER` addresses in the administrator credits fields. If everything is correct, you will see verification status `VERIFIED`.
1. Choose the account you've just created at the right sidebar (check that you have chosen the intended account by pressing the profile icon).

3. Create a password for a new user which you have just registered and then confirm the transaction, that will now be without fee due to the subscription. Later you can restore the password in the Restore tab.
2. Enter the `USER`'s address and seed phrase in the required fields.

3. Fill in a password and then confirm the transaction by the `CREATE PASSWORD` button, that will now be without fee due to the subscription.

4. After the registration process, log in to Home Assistant with your user address as login and a newly-created password.

<robo-wiki-video autoplay loop controls :videos="[{src: 'https://crustipfs.art/ipfs/QmW2TXuwCYXzgcRfEUx4imZU5ZerEzkuD5P53u9g2WnxDh', type:'mp4'}]" />
<robo-wiki-video autoplay loop controls :videos="[{src: 'https://crustipfs.art/ipfs/Qme28Bq4qtHcqmndrDpUh5eQU5NbdnbHq76kxcS1HmvKQE', type:'mp4'}]" />

Now you can use the dapp to control your home through Robonomics, check [**"Get Smart Home Telemetry"**](/docs/smart-home-telemetry/) article.

## Troubleshooting

1. If you forget a password to Home Assistant from your Robonomics account, [check the Dapp.](https://dapp.robonomics.network/#/home-assistant)
Go to "Your Home Assistant password" part and choose "Restore" tab.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c8361d3

Please sign in to comment.