Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

What is my_zwift_username ? #33

Open
sebascha opened this issue Mar 17, 2022 · 1 comment
Open

What is my_zwift_username ? #33

sebascha opened this issue Mar 17, 2022 · 1 comment

Comments

@sebascha
Copy link

Hy,
this maybe a stupid question, but what exactly is my username to put into the config file? Is it the Zwift ID, or is it my login mail adress or sth completely different?

@tylerwmarrs
Copy link

Sorry for the late response on this, but the core developer(s) hasn't responded yet. Your username is your email address. As an aside, if you want your power metrics, you must use your credentials as they are not public. I first created an "api" account using the gmail + trick and noticed this.

So my config looks something like this:

secrets.yaml file:

# zwift id tyler
zwift_tyler_user_id: XXXXXX

# dummy zwift API account
zwift_user: email+ha@gmail.com
zwift_password: redacted

You get your ID by going to:

C:/Users/USERNAME/Documents/Zwift/cp

There you will see a folder with "userXXXXXX". The number should be your id. If you have multiple users, you'll have to figure out what the corresponding ID is.

configuration.yaml file:

sensor: !include sensors.yaml

sensors.yaml file:

- platform: zwift
  username: !secret zwift_user
  password: !secret zwift_password
  players:
    - !secret zwift_tyler_user_id

Once your configuration is set, you'll most likely have to restart home assistant - I did.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants