Releases: LordBoos/discord_game
Reactions
This is experimental alpha version, use at you own risk.
- Added possibility to watch for reactions on messages in a channel, sensor will show the name of the user that last added a reaction
- To add watched channel, use channels configuration like following (with real IDs of your channels):
- channels:
- 816364303425912345
- 816364464759712345
Activity updates hotfix
Fix for activities not updating
Compatibility with Home Assistant 2022.3.0
This release replaces discord.py library with nextcord library to make it compatible with Home Assistant 2022.3.0.
entity_id and deprecations
4.2.2
This is a small bug-fix release.
- fixed entity_id
- BREAKING CHANGE
- previously entity_id was based on username (sensor.username_####), now it will be based on Discord unique user id to prevent changes when user changes his name and to easily filter entities in lovelace (new format sensor.discord_user_#################)
- moved from deprecated device_state_attributes to extra_state_attributes
Game images from Steam and fixes
4.2.1
- Fixed requirements in manifest
4.2.0
- Fixed game images sometimes not loading from Discord
- Added game images loading from Steam, new attributes are following:
- game_image_capsule_231x87
game_image_capsule_467x181
game_image_capsule_616x353
game_image_header
game_image_hero_capsule
game_image_library_600x900
game_image_library_hero
game_image_logo
game_image_page_bg_raw - Not all games have all the images, only those existing for the game will show up
- This will mostly only work for games available on Steam, but there are exceptions. Eg. I've tested League of Legends and surprisingly Steam have some of the images available for it (even though those images are extremely outdated)
- Games are loaded from Steam by name, generally this should work reliably, but in some cases where there are 2 or more games with the same name, wrong images may be shown. This is a limitation I'm not able to fix.
- game_image_capsule_231x87
Images for non-rich presence games
Added images for non-rich presence games.
Sadly not all games are supported. Basically if the game has an icon on the Discord itself it should also have an icon in the sensor entity.
New entity_id, new attributes, new voice related attributes and code cleanup
WARNING breaking changes:
- Changed entity_id to sensor.discord_user_{discord_user_id}
- This ID cannot be changed by user so it will not change even if user changes his username
- This will break your lovelace configuration and custom template sensors using this integration
- You can now only add users using their unique Discord User ID
- Due to internal changes, support for adding user's using their username has been removed
- See README.md or info.md to find out how to get user's Discord User ID (it's easy)
New additions:
- Added unique_id to entities
- This will enable HA UI for discord_game entities
New attributes:
- User ID
- Discord user's static unique ID
- User name
- Discord user's global user name
- Display name
- Discord user's name on the same server as the bot is
- This name is the same as user name unless the user changed his nickname on the server with the bot
- Roles
- Discord user's roles on the same server as the bot is
- By default, every user has role
@everyone
as a first role
New voice related attributes:
- Voice channel
- Name of the voice channel the user is currently connected to
- Voice server deafened
- True/False value indicating if user is server deafened
- Voice server muted
- True/False value indicating if user is server muted
- Voice self deafened
- True/False value indicating if user is self deafened
- Voice self muted
- True/False value indicating if user is self muted
- Voice streaming
- True/False value indicating if user is currently streaming in a voice channel using Go Live
- Voice broadcasting video
- True/False value indicating if user is currently broadcasting video (webcam)
- Voice afk
- True/False value indicating if user is currently in the servers AFK voice channel
Minor version changes:
- 4.0.3
- Fix attributes not clearing up properly causing some of them to being stuck until HA was restarted
- 4.0.2
- Fixed add entities error when loading component
- 4.0.1
- Added unique_id to enable HA entity UI
Just a manifest update
Nothing new, just updated manifest to match new custom component guidelines.
Added "version" tag to manifest to resolve HA log warning about future incompatibility caused by missing tag.
No more deprecated API use
Thanks to @xiidoz for upgrading the component to new discord.py version, this upgrade will make this component more future proof as we no longer need to use now deprecated API.
User IDs
Thanks to @C0ntroller you can now use user id's to add users. So lets finally catch all those friends that constantly change their usernames!