LordBoos / discord_game

Home Assistant custom component to get online and game status of Discord users
MIT License
57 stars 9 forks source link

rebooted last night, now everyone is "unknown" #21

Closed bendiger closed 4 years ago

bendiger commented 4 years ago

I've tried updating the token, changing to user IDs, deleting the component and reinstalling, and rolling back to previous versions. Nothing works. When I rebooted, I wasn't even editing any ymal for discord, it just stopped updating. Not sure what else to try.

~Ben

LordBoos commented 4 years ago

Hello, I'm sorry you have such an issue. Is the bot present on your discord server? Are there any errors in your Home Assistant log?

rvst1104 commented 4 years ago

I do have the exact same error. Also tried to roll back to 3.2.1. Last time I got a status was yesterday evening (21:16 Berlin Time).
Bot also seems to be online. Also no errors in the log.

2020-10-28 15_01_46-#songs - Discord 2020-10-28 14_57_41-Dashboard - Home Assistant
bendiger commented 4 years ago

Identical to rvst1104. Mine happened at 4:26 CST Chicago time. Bots online in discord. If I change the token to something wrong, the bot will go offline. So It is connecting, just not gathering data.

LordBoos commented 4 years ago

I was able to reproduce the issue. The was a change in Discord bot privileges and you now have to explicitly allow bot to gather server members and presence data. Enable following options in your bot configuration, restart your HA and it should fix the issue. It helped in my case. image

rvst1104 commented 4 years ago

Thats it! Enaled both options, restarted HA and my sensors are back working again. Thank you so much for your help!

bendiger commented 4 years ago

Hazzah! thanks!