Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
aneisch committed Mar 4, 2024
1 parent 2433c0b commit 3a9f381
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 29 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ Also using Grafana/Influx for graphing, both running in Docker containers on NUC
Description | value
-- | --
Lines of ESPHome YAML | 2801
Lines of Home Assistant YAML | 9139
Lines of Home Assistant YAML | 9182
[Integrations](https://www.home-assistant.io/integrations/) in use | 57
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

Description | value
-- | --
Entities in the [`automation`](https://www.home-assistant.io/components/automation) domain | 118
Entities in the [`automation`](https://www.home-assistant.io/components/automation) domain | 120
Entities in the [`binary_sensor`](https://www.home-assistant.io/components/binary_sensor) domain | 145
Entities in the [`button`](https://www.home-assistant.io/components/button) domain | 17
Entities in the [`camera`](https://www.home-assistant.io/components/camera) domain | 13
Expand Down Expand Up @@ -101,7 +101,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** | **1286**
**Total state objects** | **1288**
## The HACS integrations/plugins that I use:
**Appdaemon**:<br>
[aneisch/follow_me_appdaemon](https://github.com/aneisch/follow_me_appdaemon)<br>
Expand Down
51 changes: 50 additions & 1 deletion automations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,20 @@
data:
priority: 1

- alias: "Terraform Cloud Webhook"
id: "terraform_cloud_webhook"
initial_state: on
trigger:
platform: webhook
webhook_id: !secret terraform_cloud_webhook
local_only: false
allowed_methods:
- POST
action:
- service: notify.signal_self
data:
message: "{{ trigger.json.notifications[0].message }}: {{ trigger.json.run_url }}"

# Blink a light when the panic pushover alert is acknowledged
- alias: "Panic Script Webhook Trigger"
id: "panic_script_webhook"
Expand Down Expand Up @@ -1140,4 +1154,39 @@
"The garage door is still open and some doors are unlocked. You can say 'Alexa, close the garage door' and then 'Alexa, lock the doors.'"
{% elif is_state('cover.garage_door','closed') and not doors_locked %}
"Some doors are unlocked. You can say 'Alexa, lock the doors.'"
{% endif %}
{% endif %}
- alias: "Doors still unlocked when no one home"
id: "doors_unlocked_noone_home"
trigger:
- platform: state
id: alert
entity_id: group.trackers
to: not_home
- platform: event
id: respond
event_type: mobile_app_notification_action
event_data:
action: confirm_lock_doors
condition:
- condition: state
entity_id: lock.all_doors
state: "open"
action:
- if: "{{ trigger.id == 'alert' }}"
then:
- service: notify.mobile_app_andrew_phone
data:
message: "No one home, lock doors?"
data:
persistent: true # Set to true to create a persistent notification
tag: persistent # Tag is required for the persistent notification
actions:
- action: "confirm_lock_doors"
title: "Confirm"
- action: "ignore_lock_doors"
title: "Ignore"
- if: "{{ trigger.id == 'respond' }}"
then:
- service: lock.lock
entity_id: lock.all_doors
1 change: 1 addition & 0 deletions github_action_secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ signal_bvst_intake_webhook_id: secret_webhook
signal_bvst_insurance_webhook_id: secret_webhook
cellular_modem_power_toggle_webhook: secret_webook
cellular_message_test_webook: secret_webhook
terraform_cloud_webhook: secret_webhook

#packages
cf_otp_webhook_gate: SECRETURL
Expand Down
42 changes: 18 additions & 24 deletions packages/garage_door.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,37 +64,31 @@ automation:
id: "garage_open_noone_home"
trigger:
- platform: state
id: alert
entity_id: group.trackers
to: not_home
condition:
- condition: state
entity_id: cover.garage_door
state: "open"
action:
- service: notify.mobile_app_andrew_phone
data:
message: "No one home, close garage door?"
data:
persistent: true # Set to true to create a persistent notification
tag: persistent # Tag is required for the persistent notification
actions:
- action: "confirm_close_garage"
title: "Confirm"
- action: "ignore_close_garage"
title: "Ignore"

- alias: "Close garage after confirmation"
id:
"garage_confirmation"
# Android
trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: confirm_close_garage
action:
service: cover.close_cover
entity_id: cover.garage_door
- if: "{{ trigger.id == 'alert' }}"
then:
- service: notify.mobile_app_andrew_phone
data:
message: "No one home, close garage door?"
data:
persistent: true # Set to true to create a persistent notification
tag: persistent # Tag is required for the persistent notification
actions:
- action: "confirm_close_garage"
title: "Confirm"
- action: "ignore_close_garage"
title: "Ignore"
- if: "{{ trigger.id == 'respond' }}"
then:
- service: cover.close_cover
entity_id: cover.garage_door

- alias: "Garage changed to open when no one home"
id: "garage_opened_noone_home"
Expand Down
2 changes: 1 addition & 1 deletion packages/leak_detection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ automation:
priority: 1
# high flow when not home and irrigation off AND not during a scheduled timer AND bhyve off
- if: "{{ trigger.id == 'minutes'
and states('sensor.flume_sensor_home_current') | float > 2
and states('sensor.flume_sensor_home_current') | float > 2.5
and is_state('switch.irrigation_master_valve', 'off')
and not (now().hour == 12 and now().minute in [0,1,2,3,4,5])
and not (now().hour == 9 and now().minute in [16,17,18,19,20,21])
Expand Down

0 comments on commit 3a9f381

Please sign in to comment.