Created
December 15, 2019 20:37
-
-
Save tioan/d31f3dd735605b0567867d8c2724a0c8 to your computer and use it in GitHub Desktop.
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: Nuki low battery - Wohnungstür | |
# trigger: | |
# platform: template | |
# value_template: "{{ is_state_attr('lock.wohnungstur','battery_critical',true) }}" | |
# action: | |
# - service: notify.mobile_app_mattheus_iphone | |
# data: | |
# title: "Nuki Wohnungstür battery critical" | |
# message: "Change battery" | |
# - alias: Nuki low battery - Haustür | |
# trigger: | |
# platform: template | |
# value_template: "{{ is_state_attr('lock.haustur','battery_critical',true) }}" | |
# action: | |
# - service: notify.mobile_app_mattheus_iphone | |
# data: | |
# title: "Nuki Haustür battery critical" | |
# message: "Change battery" | |
- alias: Nuki low battery | |
trigger: | |
- platform: template | |
value_template: "{{ is_state_attr('lock.wohnungstur','battery_critical',true) }}" | |
- platform: template | |
value_template: "{{ is_state_attr('lock.haustur','battery_critical',true) }}" | |
action: | |
- service: notify.mobile_app_mattheus_iphone | |
data_template: | |
title: "{{ trigger.to_state.name }} battery critical" | |
message: "Change battery" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment