mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-05 00:44:23 +00:00
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
sensor:
|
|
- platform: rest
|
|
resource: "https://api.github.com/repos/GeorgeSG/lovelace-time-picker-card"
|
|
name: Time Picker Card stars
|
|
value_template: '{{ value_json.stargazers_count }}'
|
|
unit_of_measurement: 'stars'
|
|
scan_interval:
|
|
hours: 1
|
|
headers:
|
|
Authorization: !secret github_access_token
|
|
|
|
- platform: rest
|
|
resource: "https://api.github.com/repos/GeorgeSG/lovelace-time-picker-card/releases/latest"
|
|
name: Time Picker Card downloads
|
|
value_template: '{{ value_json.assets[0].download_count }}'
|
|
unit_of_measurement: 'downloads'
|
|
scan_interval:
|
|
hours: 1
|
|
headers:
|
|
Authorization: !secret github_access_token
|
|
|
|
- platform: rest
|
|
resource: "https://api.github.com/repos/GeorgeSG/lovelace-folder-card"
|
|
name: Folder Card stars
|
|
value_template: '{{ value_json.stargazers_count }}'
|
|
unit_of_measurement: 'stars'
|
|
scan_interval:
|
|
hours: 1
|
|
headers:
|
|
Authorization: !secret github_access_token
|
|
|
|
- platform: rest
|
|
resource: "https://api.github.com/repos/GeorgeSG/lovelace-folder-card/releases/latest"
|
|
name: Folder Card downloads
|
|
value_template: '{{ value_json.assets[0].download_count }}'
|
|
unit_of_measurement: 'downloads'
|
|
scan_interval:
|
|
hours: 1
|
|
headers:
|
|
Authorization: !secret github_access_token
|