Fixing a lot of stuff related to Spook! #1350
parent
9105e5fc12
commit
cbea31a807
@ -1,43 +0,0 @@
|
|||||||
#-------------------------------------------
|
|
||||||
# HACS Related Information
|
|
||||||
# @CCOSTAN
|
|
||||||
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
|
||||||
# https://github.com/CCOSTAN/Home-AssistantConfig/issues/797
|
|
||||||
#-------------------------------------------
|
|
||||||
|
|
||||||
#-------------------------------------------
|
|
||||||
rest_command:
|
|
||||||
github_new_version_hacs:
|
|
||||||
url: https://api.github.com/repos/ccostan/Home-AssistantConfig/issues
|
|
||||||
method: POST
|
|
||||||
headers:
|
|
||||||
Authorization: !secret github_token
|
|
||||||
payload: '{"title":"HACS {{ repo }}","body":"{{ message }}"}'
|
|
||||||
#-------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
automation:
|
|
||||||
- alias: HACS Component Update Notification
|
|
||||||
id: e5266b0b-017f-4c69-83a3-357aaa03dbe2
|
|
||||||
mode: single
|
|
||||||
trigger:
|
|
||||||
- platform: state
|
|
||||||
entity_id: sensor.hacs
|
|
||||||
|
|
||||||
condition:
|
|
||||||
- condition: numeric_state
|
|
||||||
entity_id: sensor.hacs
|
|
||||||
above: 0
|
|
||||||
|
|
||||||
action:
|
|
||||||
|
|
||||||
- service: rest_command.github_new_version_hacs
|
|
||||||
data:
|
|
||||||
repo: 'There are {{ states.sensor.hacs.state }} updates to HACS components at {{ states("sensor.time") }}:'
|
|
||||||
message: >-
|
|
||||||
{%- for repo in state_attr("sensor.hacs","repositories") -%}
|
|
||||||
{{repo['display_name'] }} {{ repo['installed_version'] }} to {{ repo['available_version'] }}
|
|
||||||
{%- endfor %}
|
|
||||||
|
|
||||||
- delay:
|
|
||||||
days: 1
|
|
||||||
Loading…
Reference in new issue