Skip to content

Instantly share code, notes, and snippets.

@huizebruin
Created March 24, 2022 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save huizebruin/d235b0a9095851be9c90bf750bfbc10a to your computer and use it in GitHub Desktop.
Save huizebruin/d235b0a9095851be9c90bf750bfbc10a to your computer and use it in GitHub Desktop.
systeem hacs update
alias: 'Systeem : Home Assistant hacs update'
description: ''
trigger:
- platform: state
entity_id: sensor.hacs
condition:
- condition: template
value_template: '{{ states(trigger.entity_id) != ''unknown''}}'
- condition: template
value_template: '{{ (states(trigger.entity_id) | float) != 0}}'
action:
- service: notify.mobile_app_cph2065
data:
title: 🚧 HACS update 🎉
message: >-
{% for repo in state_attr(trigger.entity_id, 'repositories')
%} - {{ repo.display_name }} ({{ repo["available_version"]
}}) {% endfor %}
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment