From b5d373470ff9f5cc639fce286ee37c1b9f6875e9 Mon Sep 17 00:00:00 2001 From: Andrew Neisch Date: Mon, 18 Sep 2023 18:49:49 -0500 Subject: [PATCH] Updates --- README.md | 8 ++++---- packages/leak_detection.yaml | 16 ++++++++++++++-- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 839fcd9b..f63f57f9 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ Also using Grafana/Influx for graphing, both running in Docker containers on NUC Description | value -- | -- Lines of ESPHome YAML | 2467 -Lines of Home Assistant YAML | 7878 +Lines of Home Assistant YAML | 7889 [Integrations](https://www.home-assistant.io/integrations/) in use | 51 Zigbee devices in [`zha`](https://www.home-assistant.io/integrations/zha/) | 26 Z-Wave devices in [`zwave_js`](https://www.home-assistant.io/integrations/zwave_js/) | 37 @@ -65,7 +65,7 @@ Description | value -- | -- Entities in the [`alarm_control_panel`](https://www.home-assistant.io/components/alarm_control_panel) domain | 1 Entities in the [`automation`](https://www.home-assistant.io/components/automation) domain | 99 -Entities in the [`binary_sensor`](https://www.home-assistant.io/components/binary_sensor) domain | 132 +Entities in the [`binary_sensor`](https://www.home-assistant.io/components/binary_sensor) domain | 128 Entities in the [`button`](https://www.home-assistant.io/components/button) domain | 12 Entities in the [`calendar`](https://www.home-assistant.io/components/calendar) domain | 1 Entities in the [`camera`](https://www.home-assistant.io/components/camera) domain | 18 @@ -90,7 +90,7 @@ Entities in the [`remote`](https://www.home-assistant.io/components/remote) doma Entities in the [`scene`](https://www.home-assistant.io/components/scene) domain | 2 Entities in the [`script`](https://www.home-assistant.io/components/script) domain | 39 Entities in the [`select`](https://www.home-assistant.io/components/select) domain | 2 -Entities in the [`sensor`](https://www.home-assistant.io/components/sensor) domain | 378 +Entities in the [`sensor`](https://www.home-assistant.io/components/sensor) domain | 375 Entities in the [`siren`](https://www.home-assistant.io/components/siren) domain | 1 Entities in the [`sun`](https://www.home-assistant.io/components/sun) domain | 1 Entities in the [`switch`](https://www.home-assistant.io/components/switch) domain | 152 @@ -100,7 +100,7 @@ Entities in the [`update`](https://www.home-assistant.io/components/update) doma Entities in the [`vacuum`](https://www.home-assistant.io/components/vacuum) domain | 1 Entities in the [`weather`](https://www.home-assistant.io/components/weather) domain | 2 Entities in the [`zone`](https://www.home-assistant.io/components/zone) domain | 6 -**Total state objects** | **1032** +**Total state objects** | **1025** ## The HACS integrations/plugins that I use: **Appdaemon**:
[aneisch/follow_me_appdaemon](https://github.com/aneisch/follow_me_appdaemon)
diff --git a/packages/leak_detection.yaml b/packages/leak_detection.yaml index f271bbe5..cc857901 100644 --- a/packages/leak_detection.yaml +++ b/packages/leak_detection.yaml @@ -5,6 +5,18 @@ template: {{ states('sensor.flume_sensor_home_current') != "0" }} automation: + - alias: "Flume Disconnected" + id: "flume_disconnected" + trigger: + - platform: state + entity_id: binary_sensor.flume_sensor_home_connectivity + from: "on" + to: "off" + action: + - service: script.notify_wrapper + data: + message: Flume sensor disconnected + - alias: "Water Flow Alert" id: "water_flow_alert" trigger: @@ -13,8 +25,8 @@ automation: from: "off" to: "on" for: "00:02:00" - # irrigation master off AND trackers away AND guest mode off - condition: "{{ is_state('switch.irrigation_master_valve', 'off') and is_state('switch.garden_zone', 'off') and is_state('switch.bougainvillea_zone', 'off') and is_state('switch.maples_zone', 'off') and is_state('group.trackers', 'not_home' ) and is_state('input_boolean.guest_mode', 'off') }}" + # irrigation off AND trackers away AND guest mode off AND not 12:00-12:05 + condition: "{{ is_state('switch.irrigation_master_valve', 'off') and is_state('switch.garden_zone', 'off') and is_state('switch.bougainvillea_zone', 'off') and is_state('switch.maples_zone', 'off') and is_state('group.trackers', 'not_home' ) and is_state('input_boolean.guest_mode', 'off') and not (now().hour == 12 and now.minute in [0,1,2,3,4,5]) }}" action: - service: script.notify_wrapper data: