Created
March 24, 2022 20:33
-
-
Save huizebruin/d235b0a9095851be9c90bf750bfbc10a to your computer and use it in GitHub Desktop.
systeem hacs update
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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