Ok … going deeper into the rabbit hole it seems like the current Twitch integration is outdated:
"It looks like the original Twitch sensor integration uses the Twitch V5 API which is deprecated. New Twitch apps doesn’t seem to work with this deprecated API.
This component does mostly the same as the original integration found here (Twitch - Home Assistant), but with some extra features and the underlying implementation is using the Twitch Helix API."
… so this custom_component seems to be the solution now:
Ah ok … that worked! So I renamed all of them in the UI … but if I would like to have a different default naming that needs to be solved by the developer of the custom integration?
I’ve been using the built-in integration for at least a year now and I just updated HA today to 2022.2.6 and it stopped working. Seems the built-in integration still hasn’t been updated and Twitch is currently in the process of shutting down their old API.
Installing the custom integration now and hope it works.
It seems as if the Twitch Integration broke because of the new API
I got an email last week:
We are reaching out as we have identified that your application(s) below have made requests to the deprecated “helix/users/follows” Twitch API endpoint in the past month and may be affected by the scheduled shutdown if further action is not taken.
{MY API KEYS}
This “Get Users Follows” Twitch API endpoint was deprecated in February 2023 and replaced by “Get Channel Followers” and “Get Followed Channels.” To continue receiving follow count, receiving follower information, or checking for a follow, please make sure your application is updated to use the new API URLs and that your authentication flow includes the new scopes if required.
Has anyone been able to add the twitch integration in 2023.10.0?
When I try to add it it tells me it needs to open an external site, which takes me to https://twitchapps.com/ to get an oauth token.
After creating an application on twitch I am getting an oauth token, and this is where I am stuck.
The integration in the HA tab is still showing the need to go to an external website, which just opens twitchapps again, but I also already got the oauth token.
turn off polling on the integration, and then make an automation that uses homeassistant.update_entity. Use a time pattern trigger and adjust it to whatever frequency you want.
Hi all,
I have managed to get past the twitchapps.com issue by adding the redirect URL, but am having an issue once it redirects me back into home assistant.
Has anyone else had this issue? How did you overcome?
Okay, nevermind I managed to fix it.
For anyone else who has my issue, you have to go to the integration page, hit the 3 dot button in the top right hand corner, open Application Credentials and remove Twitch. (This was imported from my old configuration.yaml and doesnt have the Client Secret)
Once I removed this and added the Twitch Integration again it worked perfectly as it actually prompted me for the ID and Secret.