Remove all Twitter instances since they went to a pay model.

This commit is contained in:
CCOSTAN
2023-10-21 18:39:19 +00:00
parent 668b8e3c87
commit 7954ee4c7c
27 changed files with 5 additions and 1519 deletions

View File

@@ -22,28 +22,6 @@ command_line:
- open_issues
- stargazers_count
notify:
- name: BearStoneHA
platform: twitter
consumer_key: !secret twitter_consumer_key
consumer_secret: !secret twitter_consumer_secret
access_token: !secret twitter_access_token
access_token_secret: !secret twitter_access_token_secret
- name: ccostan
platform: twitter
consumer_key: !secret twitter_consumer_key2
consumer_secret: !secret twitter_consumer_secret2
access_token: !secret twitter_access_token2
access_token_secret: !secret twitter_access_token_secret2
# - platform: history_stats
# name: Doorbell Presses
# entity_id: binary_sensor.skybell_front_door_button
# state: 'on'
# type: count
# end: '{{ now() }}'
# duration:
# hours: 24
sensor:
- platform: history_stats
name: Speech time
@@ -131,111 +109,3 @@ sensor:
{{ states.camera | list | count }}
#############################################################
automation:
- alias: 'New Twitter follower!'
id: 61cd0bab-4743-4392-8e43-b204d7ebe817
trigger:
platform: event
event_type: ifttt_webhook_received
event_data:
action: new_follower
condition:
- condition: state
entity_id: group.bed
state: 'off'
action:
- service: media_player.play_media
data:
entity_id:
- media_player.livingroomCC
- media_player.bedroom_alarm_panel
media_content_id: "https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/config/sounds/twitter-chirp.mp3"
media_content_type: audio/mp4
- alias: 'Random House stats'
id: b274a40d-cb67-4d6a-94d1-5fa685ae5ea4
mode: single
trigger:
- platform: time_pattern
hours: '/2'
minutes: 45
condition:
- condition: template
value_template: >
{%- if states.automation.random_house_stats.attributes.last_triggered -%}
{{ (as_timestamp(now()) - as_timestamp(states.automation.random_house_stats.attributes.last_triggered)) > 10000 }}
{%- else -%}
true
{%- endif -%}
action:
- delay: '0{{ range(0,2) | random | int }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}'
- service: script.tweet_engine_random
data:
pick: >-
{% set pick = [
"solar",
"robot",
"door",
"weather",
"cloud",
"speedtest",
"internet",
"stocks",
"night",
"tv",
"promo",
"joke"
] %}
{{ pick|random }}
- alias: 'Random YouTube Videos BearStone'
id: b6554d97-a3d1-48e4-9035-632ac622504b
trigger:
- platform: time_pattern
hours: '/7'
minutes: 18
condition:
- condition: template
value_template: >
{%- if states.automation.random_youtube_videos_bearstone.attributes.last_triggered -%}
{{ (as_timestamp(now()) - as_timestamp(states.automation.random_youtube_videos_bearstone.attributes.last_triggered)) > 10000 }}
{%- else -%}
true
{%- endif -%}
action:
- delay: '0{{ range(0,2) | random | int }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}'
- service: script.tweet_youtube_engine_setup
data:
pick: !include ../templates/speech/youtube_picker.yaml
- alias: 'Random YouTube Videos CCostan'
id: 3e8a4db0-165b-4e1b-acb0-ac4503525660
mode: single
trigger:
- platform: time_pattern
hours: '/22'
minutes: 45
condition:
- condition: template
value_template: >
{%- if states.automation.random_youtube_videos_ccostan.attributes.last_triggered -%}
{{ (as_timestamp(now()) - as_timestamp(states.automation.random_youtube_videos_ccostan.attributes.last_triggered)) > 10000 }}
{%- else -%}
true
{%- endif -%}
action:
- service: script.tweet_youtube_engine_setup
data:
who: 'ccostan'
pick: !include ../templates/speech/youtube_picker.yaml