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:

View File

@@ -169,6 +169,8 @@ automation:
value_template: "{% if trigger.from_state %} True {% else %} False {% endif %}"
- condition: template
value_template: "{{ trigger.to_state.state != 'unknown' }}"
- condition: template
value_template: "{{ states('input_boolean.garage_door_notifications') == 'on' }}"
action:
- service: switch.turn_on
entity_id: switch.garage

View File

@@ -134,6 +134,14 @@ input_number:
min: 1
max: 15
step: 1
mode: box
battery_alert_threshold:
name: Notify Low Battery if goes below
initial: 4
min: 1
max: 100
step: 1
mode: box
sensor:
- platform: template
@@ -299,6 +307,11 @@ input_boolean:
initial: on
icon: mdi:map-marker
garage_door_notifications:
name: Garage Door Notifications
initial: on
icon: mdi:garage
###############################################################################
# _ _ _
# /\ | | | | (_)