2020-09-26 16:07:00 +00:00
#-------------------------------------------
# @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# Read more about the house at https://vCloudInfo.com
# https://github.com/CCOSTAN/Home-AssistantConfig/issues/813
#-------------------------------------------
#-------------------------------------------
2021-07-23 15:53:26 +00:00
# sensor:
# - platform: travisci
# api_key: !secret travisci_api
# scan_interval: 2400
# monitored_conditions:
# - state
2020-09-26 16:07:00 +00:00
#-------------------------------------------
2020-09-26 18:20:26 +00:00
#-------------------------------------------
rest_command :
new_version_github_issue :
2020-09-26 19:45:56 +00:00
url : https://api.github.com/repos/ccostan/Home-AssistantConfig/issues
2020-09-26 18:20:26 +00:00
method : POST
headers :
Authorization : !secret github_token
2020-10-09 17:31:09 +00:00
payload : '{"title":"Home-Assistant {{ version }} available","body":"Home-Assistant {{ version }} is now available /n https://www.home-assistant.io/latest-release-notes/ "}'
2020-09-26 18:20:26 +00:00
#-------------------------------------------
2020-09-26 16:07:00 +00:00
automation :
2020-09-26 18:20:26 +00:00
- alias : "Update Available Notification"
mode : restart
id : 2f89ba6d-0db5-4a4a-a4df-56b8e15bb74f
trigger :
- platform : state
entity_id : binary_sensor.updater
to : 'on'
action :
- service : script.notify_engine
data :
title : 'Home Assistant {{ states.binary_sensor.updater.attributes.newest_version }} '
value1 : "Home Assistant {{ states.binary_sensor.updater.attributes.newest_version }} is now available."
who : 'carlo'
2023-11-17 22:16:41 +00:00
group : 'information'
2020-09-26 18:20:26 +00:00
- service : rest_command.new_version_github_issue
data_template :
version : "{{ states.binary_sensor.updater.attributes.newest_version }} "
2023-10-21 18:39:19 +00:00