IOT subscription setup

After setting up Zigbee2MQTT stick, It is time to create robonomics parachain's accounts and buy subscription.

Create accounts

First, let's create account.

Go to Robonomics Parachain app on Polkadot / Substrate Portal. Check at the top left corner that you are connected to Robonomics Parachain.

Go to Accounts -> Accounts and press Add account button.

You should see the following popup menu with account seed.

It has two forms: Mnemonic (human-readable) and Raw (a sequence of digits and letters). Save the mnemonic seed phrase securely and press Next.

Then open `Advanced creation options` and change the crypto type of creating account to `Edwards - ed25519`.

In the next menu, you need to set the account name and password, similar to the extension instructions described above. Let's give a name - sub_owner.

Clicking on the Next button will take you to the last window. Click Save to finish account creation. It will also generate a backup JSON-files that you should safely store. You can later use this file to recover your account if you remember the password.

The same way create account with name `sub_admin`

add to extension

You need to add created account to Polkadot.js extension (for ed25519 account you can do that only with backup JSON file). For that you need to create backup file of the account. Press on three dots on your account and choose Create a backup file for this account and write your password.

Backup file

Then open an extension and press + button on the top right, then choose Restore account from backup JSON file.

Restore backup in extension

In opened window drop saved file, enter the password and press Restore.

Restore backup in extension 2

Buy subscription

Now it's time to buy a subscription.

To buy subscription you should have free XRT on our `SUB_OWNER` account.

Go to our DaPP to subscriptionpage and press add account at right sidebar.

In the following popup menu connect Polkadot{.js} extension. Now you will see your account address with balance:

Let's buy a subscription!

First, check which address connected to dapp.

Check owner account should be the same as in extension account with name SUB_owner.

Press submit button and write password for your account. After that wait until activation process is completed. You will see state of your subscription:

Add SUB_ADMIN account to access list. For this open extension and click on "colorized round" near account name. It will copy account address.

and parse this address to Robonomics parachain address in Manage access part:

Give it a name and press "+" button. Write password in popup window and wait activation process is completed.

Do the same thing for `SUB_OWNER` account.

That's all. Now got to the next article "Robonomics integration setup"

← Connect SLS Gateway to Home Assistant Robonomics integration setup →