organized control panel settings

This commit is contained in:
Mahasri Kalavala
2019-04-17 22:09:00 -04:00
parent fc560dfde0
commit 3a54be8a2f
5 changed files with 62 additions and 128 deletions

View File

@@ -416,6 +416,9 @@ automation:
{%- for x in states if x.attributes and x.attributes.battery_level and x.attributes.battery_level |int <= 24 %}
{% set ns.lowBattery = true %}{% endfor %}
{{ ns.lowBattery }}
condition:
- condition: template
value_template: "{{ ((trigger.to_state.state | int) < states('sensor.battery_alert_threshold') | int) }}"
action:
- service: script.voice_notify
data_template: