home-automation-home-assistant/sensors/social.yaml
Florian Brinker cd860031fb Add config
2019-01-16 13:47:15 +01:00

128 lines
3.7 KiB
YAML

# 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
# Instagram
#beauty
- platform: rest
scan_interval: 300
name: instagram_beauty
resource: !secret instagram_beauty
value_template: '{{ value_json.data.counts.followed_by }}'
unit_of_measurement: Followers
force_update: true
- platform: rest
scan_interval: 900
name: instagram_beauty_follows
resource: !secret instagram_beauty
value_template: '{{ value_json.data.counts.follows }}'
force_update: true
- platform: rest
scan_interval: 600
name: instagram_beauty_media
resource: !secret instagram_beauty
value_template: '{{ value_json.data.counts.media }}'
force_update: true
# franky
- platform: rest
scan_interval: 300
name: instagram_franky
resource: !secret instagram_franky
value_template: '{{ value_json.data.counts.followed_by }}'
unit_of_measurement: Followers
force_update: true
- platform: rest
scan_interval: 900
name: instagram_franky_follows
resource: !secret instagram_franky
value_template: '{{ value_json.data.counts.follows }}'
force_update: true
- platform: rest
scan_interval: 600
name: instagram_franky_media
resource: !secret instagram_franky
value_template: '{{ value_json.data.counts.media }}'
force_update: true
# fb
- platform: rest
scan_interval: 300
name: instagram_fb
resource: !secret instagram_fb
value_template: '{{ value_json.data.counts.followed_by }}'
unit_of_measurement: Followers
force_update: true
- platform: rest
scan_interval: 900
name: instagram_fb_follows
resource: !secret instagram_fb
value_template: '{{ value_json.data.counts.follows }}'
force_update: true
- platform: rest
scan_interval: 600
name: instagram_fb_media
resource: !secret instagram_fb
value_template: '{{ value_json.data.counts.media }}'
force_update: true
# mtb
- platform: rest
scan_interval: 300
name: instagram_mtb
resource: !secret instagram_mtb
value_template: '{{ value_json.data.counts.followed_by }}'
unit_of_measurement: Followers
force_update: true
- platform: rest
scan_interval: 900
name: instagram_mtb_follows
resource: !secret instagram_mtb
value_template: '{{ value_json.data.counts.follows }}'
force_update: true
- platform: rest
scan_interval: 600
name: instagram_mtb_media
resource: !secret instagram_mtb
value_template: '{{ value_json.data.counts.media }}'
force_update: true