Add Device to Robonomics

For each device you need separate Robonomics accounts. After you've added your devices, you need to add them in a config.config file with their seeds. Firstly in Configuration/Entities tab in your Home Assistant find entity ids of your devices:

entity_id

Open the configuration file:

nano /srv/homeassistant/python_scripts/config.config

And add there information of your devices in the following format:

[device_name]
IDS = ['entity_id1', 'entity_id2']
SEED = word word word

Where device_name is the name of your device (you can choose any name), IDS are entity ids of the data from the device (it may be one or more ids) and SEED is a mnemonic or raw seed from robonomics account to this device.

After you fill the configuration file you need to get access token from Home Assistant. For that open your profile in the lower left corner:

profile

In the end of the page find Long-Lived Access Tokens and press create token. Save it somewhere, you will not be able to see it again.

token

Now run create_config.py script with your token:

cd /srv/homeassistant
source bin/activate
python3 python_scripts/create_config.py --token <access_token>

And restart Home Assistant:

systemctl restart home-assistant@homeassistant.service

You can add the data from sensors to your homepage like in Home Assistant setup in the description to Method 1.

You can see the data in subscan, find your account and you will see datalog transactions. Data looks like this:

datalog_data

You can decrypt it with script decrypt.py, run it with the data from datalog:

cd /srv/homeassistant/
source bin/activate
python3 python_scripts/decrypt.py <data>
← Connect Sensors with Zigbee2MQTT Offsetting Service →