This might be a basic question for most of you. However, I am new to Home Assistant and to coding, while I am still eager to learn quick.
I am trying to setup my Eufy Vacuum cleaner in HA with the EufyHome integration. The standard integration takes you to this page. EufyHome - Home Assistant
There are instructions to run commands.
My question is, where and how do I run these commands?
access_token
can be obtained by running:
$ curl -H “Content-Type: application/json”
-d ‘{“client_id”:“eufyhome-app”, “client_Secret”:“GQCpr9dSp3uQpsOMgJ4xQ”, “email”:“USERNAME”, “password”:“PASSWORD”}’
https://home-api.eufylife.com/v1/user/email/login
replacing USERNAME and PASSWORD with the EufyHome username and password. This will give an access_token
. Then run:
$ curl -H token:TOKEN -H category:Home
https://home-api.eufylife.com/v1/device/list/devices-and-groups
replacing TOKEN with the access_token
from the previous command. This will provide the local_code for each device.