Home Assistant How To - Use Socialblade for YouTube subscribers count

Опубликовано: 28 Сентябрь 2024
на канале: BeardedTinker
1,637
41

Integration for today is SocialBlade - web tool that tracks statistics for YouTube channel - but in this integration, you can only get current (shortened) subscriber count.
https://www.home-assistant.io/integra...

00:00 Intro

MINIMUM VERSION OF HOME ASSISTANT: 0.106 - earlier versions have bug and don't work.

00:49 - First we need to get Channel ID - that SocialBlade uses. You can get it on SocialBlade web site:
https://socialblade.com/
Just search for the channel you want to track and it will be last part of the URL.

01:57 - Next, in sensors.yaml file, we have to add this sensor integration:

- platform: socialblade
channel_id: YOUTUBE_CHANNEL_ID

After you save and verify your configuration, you need to restart Home Assistant for integration to start working.

Unfortunately since YouTube is now providing shortened subscriber count, you would need to play a bit with template to convert string into number, but some simple automations such as notification of number change are still possible.

And this is it for yet another Home Assistant integration.

Please leave a comment if you would like to see more component configuration videos.

Of course, subscribe if you still haven't and I'll see you next time!

Have fun!
BeardedTinker

Twitter: @BeardedTinker
Discord:   / discord  
#HomeAssistant #SocialBlade #Subscount