Hey Im really new at HA and after watching a bunch of tutorials I wanted to give it a go by adding a feature that lets me see my online status of my Steam account.
I was following this tutorial Steam - Home Assistant (home-assistant.io)
but I think I may have misunderstood some things as I can not find the data from Steam anywhere on HA. I assumed it would be somewhere in entities but no luck
Firstly, I let to Steam and found my API key and account id.
Which was the first issue as I was asked to add a domain name (I am guessing was the HA url in this case)
Then I went into my configuration.yaml file and added this piece of code
sensor: #Steam:
platform: steam_online
api_key: my api key
accounts: my account id
Lastly I went into HA, clicked on âcheck configurationâ which was valid. and then restarted the HA server.
If someone can assist me I would be very thankful as I am a complete noob
That looks like it should work, although I assume you have the correct indentation and are using a âdashâ and not a âbulletâ at the start of the platform line (note itâs always better to show code using the code format, and not as text, like below)
# Steam
- platform: steam_online
api_key: !secret steam_api_key
accounts:
- <account-id1> # Tracked account ID 1 name
- <account-id2> # Tracked account ID 2 name
The domain name is the one you want to use to identify the account. After a reboot, the above show up as Entities in HA, with a format as below
Can you double check your code. In your first example, you used âaccountsâ, and in the second you used âclient_idâ It should be accounts.
Also, take out the â#Steamâ line just after âsensor:â line from your first example. The platform needs to be defined immediately after the sensor declaration.
Suggestion would be just cut and paste the code from the documentation, then edit for your requirements with the secrets.
Did you restart HA ? If your API key is valid, then any accounts should show up as sensors in the Entities tab. Note the accounts should be 17 digit numbers.