mirror of
https://github.com/skalavala/mysmarthome.git
synced 2025-08-21 04:33:22 +00:00
organized control panel settings
This commit is contained in:
@@ -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:
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
###############################################################################
|
||||
# _ _ _
|
||||
# /\ | | | | (_)
|
||||
|
Reference in New Issue
Block a user