mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-02-09 00:55:08 +00:00
Switching to github issue updater via @kylegordon
This commit is contained in:
parent
0a85405f5b
commit
a06253446b
@ -72,7 +72,23 @@ automation:
|
|||||||
- service: media_player.media_stop
|
- service: media_player.media_stop
|
||||||
entity_id: media_player.ha_speaker
|
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:
|
script:
|
||||||
|
|
||||||
rex_manning_audio:
|
rex_manning_audio:
|
||||||
@ -93,4 +109,12 @@ script:
|
|||||||
entity_id: media_player.ha_speaker
|
entity_id: media_player.ha_speaker
|
||||||
data:
|
data:
|
||||||
media_content_id: http://192.168.7.40/audio/Rex_Manning_-_Say_No_More_Mon_Amour.mp3
|
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"}'
|
Loading…
x
Reference in New Issue
Block a user