From ddf2db533dd8486a6958f9efdd0b3a24ce4522d1 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Thu, 3 Dec 2020 00:11:24 -0500 Subject: [PATCH] Trying out a youtube sensor I stold from someone... --- config/packages/youtube.yaml | 59 ++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100755 config/packages/youtube.yaml diff --git a/config/packages/youtube.yaml b/config/packages/youtube.yaml new file mode 100755 index 0000000..2516be4 --- /dev/null +++ b/config/packages/youtube.yaml @@ -0,0 +1,59 @@ +#------------------------------------------- +# I totally stole this from @CCOSTAN +# +# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig +# YouTube Related Packages from @Pinkywafer +# https://github.com/pinkywafer/Home-Assistant_Config/blob/master/packages/youtube/vcloudinfo.yaml +# More information found here in these issues +# https://github.com/CCOSTAN/Home-AssistantConfig/issues/720 +#------------------------------------------- + + sensor: + - platform: youtube + channel_id: UCipZJ6748kd8TbelSxcvcVg + + - platform: socialblade + name: slackerlabs_info + channel_id: UCipZJ6748kd8TbelSxcvcVg + + - platform: twitter_sensor + consumer_key: !secret twitter2_consumer_key + consumer_secret: !secret twitter2_consumer_secret + access_token_key: !secret twitter2_access_token + access_token_secret: !secret twitter2_access_secret + + # automation: + # - alias: YouTube Notification - SlackerLabs + # id: 5e751352-067e-4706-978a-2479b6f5fd96 + # trigger: + # - platform: state + # entity_id: sensor.slackerlabs + + # condition: + # - condition: template + # value_template: "{{ trigger.from_state.state != trigger.to_state.state }}" + + # action: + # - repeat: + # count: 1 + # sequence: + # - delay: '00:03:00' + # - service: script.twitter_notify + # data: + # tweet: > + # {{ [ + # "New Video! {{ states('sensor.slackerlabs') }} - {{ state_attr('sensor.slackerlabs','url') }} " + # ] | random }} + # who: 'thejeffreystone' + + # - delay: '00:10:00' + + # - service: script.twitter_notify + # data: + # tweet: > + # {{ [ + # "New Video! {{ states('sensor.slackerlabs') }} - {{ state_attr('sensor.slackerlabs','url') }} " + # ] | random }} + # who: 'AnchorageHouse2' + + # - delay: '12:30:00' \ No newline at end of file