Switching to github issue updater via @kylegordon

This commit is contained in:
Jeffrey Stone 2020-04-29 21:37:39 -04:00
parent 0a85405f5b
commit a06253446b
1 changed files with 26 additions and 2 deletions

View File

@ -72,7 +72,23 @@ automation:
- service: media_player.media_stop
entity_id: media_player.ha_speaker
- id: new_ha_notification
alias: New HA Notification
initial_state: true
trigger:
- platform: state
entity_id: binary_sensor.updater
from: 'off'
to: 'on'
action:
- service: script.twitter_new_ha
# - service: ifttt.trigger
# data_template: {"event":"GitPost", "value1":"Home Assistant {{ states.binary_sensor.updater.attributes.newest_version }} is now available.", "value2":"{{ states.binary_sensor.updater.attributes.newest_version }}"}
- service: rest_command.new_version_github_issue
data_template:
version: "{{ states.binary_sensor.updater.attributes.newest_version }}"
script:
rex_manning_audio:
@ -93,4 +109,12 @@ script:
entity_id: media_player.ha_speaker
data:
media_content_id: http://192.168.7.40/audio/Rex_Manning_-_Say_No_More_Mon_Amour.mp3
media_content_type: "music"
media_content_type: "music"
rest_command:
new_version_github_issue:
url: https://api.github.com/repos/thejeffreystone/home-assistant-configuration/issues
method: POST
headers:
Authorization: !secret github_token
payload: '{"title":"Home-Assistant {{ version }} available","body":"Home-Assistant {{ version }} is now available"}'