This component pulls information about user's status, and the game they're currently playing from the Discord. It creates a sensor for every configured user with online status and game played status. Discord avatar is used as entity_picture.
You can use this component in combination with native Home Assistant Discord notify integration. It works well together, and you can use the same token for both components, and the bot will combine both functions. So 1 Discord bot to rule both.
First you have to create a Discord bot user and get it's token to be able to use this component.
To create a bot user and get a token:
You also need your own discord server (or some server where you have "manage server" permission), and you need to invite the bot to that server. To invite your bot to your server, use following steps:
If this doesn't work for you, you can try to use this guide to invite your bot (select no permissions): https://discordpy.readthedocs.io/en/stable/discord.html#inviting-your-bot
Now just go to Home Assistant integrations/devices dashboard and add Discord Game integration:
If you are using Safari or the iOS Home Assistant app, please set the image_format
to png
, because Safari doesn't support the webp
image format.
Thanks to @descention https://github.com/descention for an original component idea and component itself which I've rewritten for current Discord API and Home Assistant and integrated it with HACS.