Add Slack User to github config

This commit is contained in:
2021-06-12 15:54:24 +03:00
parent 1f5be9c170
commit f2286051bf
2 changed files with 13 additions and 0 deletions
@@ -85,6 +85,9 @@ cards:
name: Folder Card · Downloads name: Folder Card · Downloads
- entity: sensor.folder_card_stars - entity: sensor.folder_card_stars
icon: mdi:star icon: mdi:star
name: Slack User · Stars
- entity: sensor.slack_user_stars
icon: mdi:slack
name: Folder Card · Stars name: Folder Card · Stars
- type: "custom:weather-card" - type: "custom:weather-card"
+10
View File
@@ -38,3 +38,13 @@ sensor:
hours: 1 hours: 1
headers: headers:
Authorization: !secret github_access_token Authorization: !secret github_access_token
- platform: rest
resource: "https://api.github.com/repos/GeorgeSG/ha-slack-user"
name: Slack User stars
value_template: '{{ value_json.stargazers_count }}'
unit_of_measurement: 'stars'
scan_interval:
hours: 1
headers:
Authorization: !secret github_access_token