diff --git a/lovelace/09_settings_view.yaml b/lovelace/09_settings_view.yaml
index 555b60b..7f57581 100644
--- a/lovelace/09_settings_view.yaml
+++ b/lovelace/09_settings_view.yaml
@@ -1,27 +1,10 @@
title: Settings
icon: mdi:settings
cards:
-
- type: vertical-stack
cards:
- type: horizontal-stack
cards:
- - type: "custom:button-card"
- name: Home Alarm Clock
- entity: input_boolean.alarm_clock
- icon: mdi:alarm
- color_type: card
- style:
- - font-weight: bold
- - color: rgb(0, 0, 5)
- state:
- - value: 'on'
- color: var(--primary-color)
- action: toggle
- toggle:
- domain: input_boolean
- action: alarm_clock
-
- type: "custom:button-card"
name: Light Automations
entity: input_boolean.light_automations
@@ -70,40 +53,6 @@ cards:
domain: input_boolean
action: voice_notifications
- - type: horizontal-stack
- cards:
- - type: "custom:button-card"
- name: Trash Notifications
- entity: input_boolean.trash_reminders
- icon: mdi:recycle
- color_type: card
- style:
- - font-weight: bold
- - color: rgb(0, 0, 5)
- state:
- - value: 'on'
- color: var(--primary-color)
- action: toggle
- toggle:
- domain: input_boolean
- action: trash_reminders
-
- - type: "custom:button-card"
- name: Camera Alerts
- entity: input_boolean.notify_camera_alerts
- icon: mdi:cctv
- color_type: card
- style:
- - font-weight: bold
- - color: rgb(0, 0, 5)
- state:
- - value: 'on'
- color: var(--primary-color)
- action: toggle
- toggle:
- domain: input_boolean
- action: notify_camera_alerts
-
- type: "custom:button-card"
name: Location Alerts
entity: input_boolean.zone_alerts
@@ -120,6 +69,9 @@ cards:
domain: input_boolean
action: zone_alerts
+ - type: horizontal-stack
+ cards:
+
- type: "custom:button-card"
name: Movie Time Popcorn
entity: input_boolean.movie_time
@@ -136,24 +88,6 @@ cards:
domain: input_boolean
action: movie_time
- - type: horizontal-stack
- cards:
- - type: "custom:button-card"
- name: Security System
- entity: input_boolean.security_system_alerts
- icon: mdi:shield-outline
- color_type: card
- style:
- - font-weight: bold
- - color: rgb(0, 0, 5)
- state:
- - value: 'on'
- color: var(--primary-color)
- action: toggle
- toggle:
- domain: input_boolean
- action: security_system_alerts
-
- type: "custom:button-card"
name: Hourly Report
entity: input_boolean.hourly_report
@@ -187,9 +121,9 @@ cards:
action: nightly_report
- type: "custom:button-card"
- name: Working in Garage
- entity: input_boolean.working_in_garage
- icon: mdi:garage-alert
+ name: Good Weather
+ entity: input_boolean.enjoyable_weather_reminders
+ icon: mdi:weather-windy-variant
color_type: card
style:
- font-weight: bold
@@ -200,7 +134,7 @@ cards:
action: toggle
toggle:
domain: input_boolean
- action: working_in_garage
+ action: enjoyable_weather_reminders
- type: horizontal-stack
cards:
@@ -219,11 +153,11 @@ cards:
toggle:
domain: input_boolean
action: working_in_office_room
-
+
- type: "custom:button-card"
- name: Battery Notifications
- entity: input_boolean.battery_notifications
- icon: mdi:battery-charging-wireless-60
+ name: Working in Garage
+ entity: input_boolean.working_in_garage
+ icon: mdi:garage-alert
color_type: card
style:
- font-weight: bold
@@ -234,45 +168,27 @@ cards:
action: toggle
toggle:
domain: input_boolean
- action: battery_notifications
+ action: working_in_garage
- - type: "custom:button-card"
- name: Good Weather
- entity: input_boolean.enjoyable_weather_reminders
- icon: mdi:weather-windy-variant
- color_type: card
- style:
- - font-weight: bold
- - color: rgb(0, 0, 5)
- state:
- - value: 'on'
- color: var(--primary-color)
- action: toggle
- toggle:
- domain: input_boolean
- action: enjoyable_weather_reminders
-
- - type: "custom:button-card"
- name: Text/IFTTT Alerts
- entity: input_boolean.text_alerts
- icon: mdi:message-text
- color_type: card
- style:
- - font-weight: bold
- - color: rgb(0, 0, 5)
- state:
- - value: 'on'
- color: var(--primary-color)
- action: toggle
- toggle:
- domain: input_boolean
- action: text_alerts
- type: entities
title: Control Panel
show_header_toggle: false
entities:
- input_number.calendar_remind_before_days
+ - input_number.battery_alert_threshold
+
+ - type: entities
+ title: Alerts & Notifications
+ show_header_toggle: false
+ entities:
+ - input_boolean.garage_door_notifications
+ - input_boolean.battery_notifications
+ - input_boolean.text_alerts
+ - input_boolean.security_system_alerts
+ - input_boolean.notify_camera_alerts
+ - input_boolean.alarm_clock
+ - input_boolean.trash_reminders
- type: entities
title: Bed & Wakeup Times
diff --git a/packages/batteries.yaml b/packages/batteries.yaml
index 3a5e801..99362a2 100644
--- a/packages/batteries.yaml
+++ b/packages/batteries.yaml
@@ -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:
diff --git a/packages/door_sensors.yaml b/packages/door_sensors.yaml
index f9e8f4c..285ea4e 100644
--- a/packages/door_sensors.yaml
+++ b/packages/door_sensors.yaml
@@ -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
diff --git a/packages/settings.yaml b/packages/settings.yaml
index fe5b18f..3ce6cf2 100644
--- a/packages/settings.yaml
+++ b/packages/settings.yaml
@@ -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
+
###############################################################################
# _ _ _
# /\ | | | | (_)
diff --git a/zwcfg_0xd89c4f0c.xml b/zwcfg_0xd89c4f0c.xml
index 1791024..f2192b8 100644
--- a/zwcfg_0xd89c4f0c.xml
+++ b/zwcfg_0xd89c4f0c.xml
@@ -34,8 +34,8 @@
-
-
+
+
@@ -728,9 +728,9 @@
-
+
-
+
@@ -984,7 +984,7 @@
-
+
@@ -1006,12 +1006,12 @@
-
-
-
-
-
-
+
+
+
+
+
+
@@ -1190,8 +1190,8 @@
-
-
+
+
@@ -1809,7 +1809,7 @@
-
+
@@ -2132,7 +2132,7 @@
-
+
@@ -2238,7 +2238,7 @@
-
+
@@ -2381,7 +2381,7 @@
-
+
@@ -2405,7 +2405,7 @@
-
+
@@ -2579,7 +2579,7 @@
-
+