Skip to content

Instantly share code, notes, and snippets.

@tioan
Created December 15, 2019 20:37
Show Gist options
  • Save tioan/d31f3dd735605b0567867d8c2724a0c8 to your computer and use it in GitHub Desktop.
Save tioan/d31f3dd735605b0567867d8c2724a0c8 to your computer and use it in GitHub Desktop.
# - 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