home-automation-home-assistant/config/sensors/social.yaml

242 sor
7.0 KiB
YAML

2019-01-16 12:47:15 +00:00
# Youtube
# beauty
- platform: rest
scan_interval: 300
name: youtube_beauty
resource: !secret youtube_beauty
value_template: '{{ value_json["items"][0].statistics.subscriberCount }}'
unit_of_measurement: Subscribers
force_update: true
- platform: rest
scan_interval: 900
name: youtube_beauty_videos
resource: !secret youtube_beauty
value_template: '{{ value_json["items"][0].statistics.videoCount }}'
force_update: true
- platform: rest
scan_interval: 600
name: youtube_beauty_views
resource: !secret youtube_beauty
value_template: '{{ value_json["items"][0].statistics.viewCount }}'
force_update: true
# mtb
- platform: rest
scan_interval: 300
name: youtube_mtb
resource: !secret youtube_mtb
value_template: '{{ value_json["items"][0].statistics.subscriberCount }}'
unit_of_measurement: Subscribers
force_update: true
- platform: rest
scan_interval: 900
name: youtube_mtb_videos
resource: !secret youtube_mtb
value_template: '{{ value_json["items"][0].statistics.videoCount }}'
force_update: true
- platform: rest
scan_interval: 600
name: youtube_mtb_views
resource: !secret youtube_mtb
value_template: '{{ value_json["items"][0].statistics.viewCount }}'
force_update: true
2019-01-16 23:11:55 +00:00
# Bit.ly
2019-02-02 23:16:33 +00:00
# http://bit.ly/blog-jbb
- platform: rest
scan_interval: 300
name: bitly_blog_bb
resource: !secret bitly_blog_bb
value_template: '{{ value_json.data.link_clicks }}'
force_update: true
# http://bit.ly/insta-jbb
- platform: rest
scan_interval: 300
name: bitly_instagram_bb
resource: !secret bitly_instagram_bb
value_template: '{{ value_json.data.link_clicks }}'
force_update: true
#http://bit.ly/impressum-jbb
- platform: rest
scan_interval: 300
name: bitly_impressum_bb
resource: !secret bitly_impressum_bb
value_template: '{{ value_json.data.link_clicks }}'
force_update: true
2019-01-16 23:11:55 +00:00
# http://bit.ly/youtube-bb
- platform: rest
scan_interval: 300
2019-02-02 23:16:33 +00:00
name: bitly_youtube_bb
resource: !secret bitly_youtube_bb
2019-01-16 23:11:55 +00:00
value_template: '{{ value_json.data.link_clicks }}'
force_update: true
2019-01-16 12:47:15 +00:00
# Instagram
#beauty
- platform: rest
scan_interval: 300
name: instagram_beauty
resource: !secret instagram_beauty
2020-07-12 00:06:15 +00:00
value_template: '{{ value_json.followers_count }}'
2019-01-16 12:47:15 +00:00
unit_of_measurement: Followers
force_update: true
- platform: rest
scan_interval: 900
name: instagram_beauty_follows
resource: !secret instagram_beauty
2020-07-12 00:06:15 +00:00
value_template: '{{ value_json.follows_count }}'
2019-01-16 12:47:15 +00:00
force_update: true
- platform: rest
scan_interval: 600
name: instagram_beauty_media
resource: !secret instagram_beauty
2020-07-12 00:06:15 +00:00
value_template: '{{ value_json.media_count }}'
2019-01-16 12:47:15 +00:00
force_update: true
# franky
- platform: rest
scan_interval: 300
name: instagram_franky
resource: !secret instagram_franky
2020-07-12 00:06:15 +00:00
value_template: '{{ value_json.followers_count }}'
2019-01-16 12:47:15 +00:00
unit_of_measurement: Followers
force_update: true
- platform: rest
scan_interval: 900
name: instagram_franky_follows
resource: !secret instagram_franky
2020-07-12 00:06:15 +00:00
value_template: '{{ value_json.follows_count }}'
2019-01-16 12:47:15 +00:00
force_update: true
- platform: rest
scan_interval: 600
name: instagram_franky_media
resource: !secret instagram_franky
2020-07-12 00:06:15 +00:00
value_template: '{{ value_json.media_count }}'
2019-01-16 12:47:15 +00:00
force_update: true
# fb
- platform: rest
scan_interval: 300
name: instagram_fb
resource: !secret instagram_fb
2020-07-12 00:06:15 +00:00
value_template: '{{ value_json.followers_count }}'
2019-01-16 12:47:15 +00:00
unit_of_measurement: Followers
force_update: true
- platform: rest
scan_interval: 900
name: instagram_fb_follows
resource: !secret instagram_fb
2020-07-12 00:06:15 +00:00
value_template: '{{ value_json.follows_count }}'
2019-01-16 12:47:15 +00:00
force_update: true
- platform: rest
scan_interval: 600
name: instagram_fb_media
resource: !secret instagram_fb
2020-07-12 00:06:15 +00:00
value_template: '{{ value_json.media_count }}'
2019-01-16 12:47:15 +00:00
force_update: true
# mtb
- platform: rest
scan_interval: 300
name: instagram_mtb
resource: !secret instagram_mtb
2020-07-12 00:06:15 +00:00
value_template: '{{ value_json.followers_count }}'
2019-01-16 12:47:15 +00:00
unit_of_measurement: Followers
force_update: true
- platform: rest
scan_interval: 900
name: instagram_mtb_follows
resource: !secret instagram_mtb
2020-07-12 00:06:15 +00:00
value_template: '{{ value_json.follows_count }}'
2019-01-16 12:47:15 +00:00
force_update: true
- platform: rest
scan_interval: 600
name: instagram_mtb_media
resource: !secret instagram_mtb
2020-07-12 00:06:15 +00:00
value_template: '{{ value_json.media_count }}'
2019-01-16 12:47:15 +00:00
force_update: true
2019-12-14 21:50:45 +00:00
# medieval
- platform: rest
scan_interval: 300
name: instagram_medieval
resource: !secret instagram_medieval
2020-07-12 00:06:15 +00:00
value_template: '{{ value_json.followers_count }}'
2019-12-14 21:50:45 +00:00
unit_of_measurement: Followers
force_update: true
- platform: rest
scan_interval: 900
name: instagram_medieval_follows
resource: !secret instagram_medieval
2020-07-12 00:06:15 +00:00
value_template: '{{ value_json.follows_count }}'
2019-12-14 21:50:45 +00:00
force_update: true
- platform: rest
scan_interval: 600
name: instagram_medieval_media
resource: !secret instagram_medieval
2020-07-12 00:06:15 +00:00
value_template: '{{ value_json.media_count }}'
2019-12-14 21:50:45 +00:00
force_update: true
# lotte
- platform: rest
scan_interval: 300
name: instagram_lotte
resource: !secret instagram_lotte
2020-07-12 00:06:15 +00:00
value_template: '{{ value_json.followers_count }}'
2019-12-14 21:50:45 +00:00
unit_of_measurement: Followers
force_update: true
- platform: rest
scan_interval: 900
name: instagram_lotte_follows
resource: !secret instagram_lotte
2020-07-12 00:06:15 +00:00
value_template: '{{ value_json.follows_count }}'
2019-12-14 21:50:45 +00:00
force_update: true
- platform: rest
scan_interval: 600
name: instagram_lotte_media
resource: !secret instagram_lotte
2020-07-12 00:06:15 +00:00
value_template: '{{ value_json.media_count }}'
2019-12-14 21:50:45 +00:00
force_update: true
# codedwithlove
- platform: rest
scan_interval: 300
name: instagram_codedwithlove
resource: !secret instagram_codedwithlove
2020-07-12 00:06:15 +00:00
value_template: '{{ value_json.followers_count }}'
2019-12-14 21:50:45 +00:00
unit_of_measurement: Followers
force_update: true
- platform: rest
scan_interval: 900
name: instagram_codedwithlove_follows
resource: !secret instagram_codedwithlove
2020-07-12 00:06:15 +00:00
value_template: '{{ value_json.follows_count }}'
2019-12-14 21:50:45 +00:00
force_update: true
- platform: rest
scan_interval: 600
name: instagram_codedwithlove_media
resource: !secret instagram_codedwithlove
2020-07-12 00:06:15 +00:00
value_template: '{{ value_json.media_count }}'
2019-12-14 21:50:45 +00:00
force_update: true
# TikTok
# beauty
- platform: rest
scan_interval: 300
name: tiktok_beauty
resource: !secret tiktok_beauty
value_template: '{{ value_json.data.userInfo.stats.followerCount }}'
unit_of_measurement: Followers
force_update: true
- platform: rest
scan_interval: 300
name: tiktok_beauty_hearts
resource: !secret tiktok_beauty
value_template: '{{ value_json.data.userInfo.stats.heartCount }}'
force_update: true
- platform: rest
scan_interval: 300
name: tiktok_beauty_videos
resource: !secret tiktok_beauty
value_template: '{{ value_json.data.userInfo.stats.videoCount }}'
force_update: true