Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
aneisch committed Mar 29, 2023
1 parent c5ac133 commit 2b6e261
Show file tree
Hide file tree
Showing 9 changed files with 114 additions and 65 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ Also using Grafana/Influx for graphing, both running in Docker containers on NUC
## Some statistics about my installation:
Description | value
-- | --
Lines of ESPHome YAML | 2364
Lines of Home Assistant YAML | 7036
Lines of ESPHome YAML | 2378
Lines of Home Assistant YAML | 7070
[Integrations](https://www.home-assistant.io/integrations/) in use | 45
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
Expand All @@ -67,7 +67,7 @@ Description | value
-- | --
Entities in the [`alarm_control_panel`](https://www.home-assistant.io/components/alarm_control_panel) domain | 3
Entities in the [`automation`](https://www.home-assistant.io/components/automation) domain | 104
Entities in the [`binary_sensor`](https://www.home-assistant.io/components/binary_sensor) domain | 101
Entities in the [`binary_sensor`](https://www.home-assistant.io/components/binary_sensor) domain | 100
Entities in the [`button`](https://www.home-assistant.io/components/button) domain | 64
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 | 15
Expand All @@ -92,17 +92,17 @@ 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 | 46
Entities in the [`select`](https://www.home-assistant.io/components/select) domain | 22
Entities in the [`sensor`](https://www.home-assistant.io/components/sensor) domain | 379
Entities in the [`sensor`](https://www.home-assistant.io/components/sensor) domain | 381
Entities in the [`setter`](https://www.home-assistant.io/components/setter) domain | 1
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 | 155
Entities in the [`switch`](https://www.home-assistant.io/components/switch) domain | 157
Entities in the [`timer`](https://www.home-assistant.io/components/timer) domain | 1
Entities in the [`update`](https://www.home-assistant.io/components/update) domain | 25
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** | **1181**
**Total state objects** | **1184**
## The HACS integrations/plugins that I use:
**Appdaemon**:<br>
[aneisch/follow_me_appdaemon](https://github.com/aneisch/follow_me_appdaemon)<br>
Expand Down
113 changes: 71 additions & 42 deletions automations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
action:
service: frontend.set_theme
data:
name: default
name: default

- alias: "Security Arm/Disarm"
id: "arm_disarm"
Expand Down Expand Up @@ -80,7 +80,7 @@
state: "off"
action:
- service: script.turn_on
data:
data:
entity_id: >
{% if trigger.to_state.state == 'home' %}
script.home_occupied
Expand All @@ -96,12 +96,12 @@
trigger:
platform: state
to: "on"
entity_id:
entity_id:
- binary_sensor.andrew_desk_button_single
- binary_sensor.andrew_desk_button_double
action:
service: homeassistant.toggle
data:
data:
entity_id: >
{% if 'single' in trigger.entity_id %}
switch.office_heater
Expand Down Expand Up @@ -146,17 +146,17 @@
data:
message: "The thermostat appears to be offline..."

- alias: "Notify when Verizon Extender Offline"
id: "notify_verizon_extender_offline"
initial_state: on
trigger:
- platform: state
entity_id: sensor.verizon_network_extender_status
from: "In Service"
action:
- service: notify.signal_self
data:
message: "The Verizon extender appears to be out of service..."
# - alias: "Notify when Verizon Extender Offline"
# id: "notify_verizon_extender_offline"
# initial_state: on
# trigger:
# - platform: state
# entity_id: sensor.verizon_network_extender_status
# from: "In Service"
# action:
# - service: notify.signal_self
# data:
# message: "The Verizon extender appears to be out of service..."

- alias: "Notify AC Equipment Event Occurs"
id: "notify_ac_equipment_event"
Expand Down Expand Up @@ -217,7 +217,7 @@
id: "update_door_last_opened"
trigger:
- platform: state
entity_id:
entity_id:
- binary_sensor.front_door
- binary_sensor.back_porch_door
- binary_sensor.garage_exterior_door
Expand All @@ -241,7 +241,7 @@
# initial_state: on
# trigger:
# platform: state
# entity_id:
# entity_id:
# - sensor.433_mailbox_last_opened
# condition: "{{ states('sensor.mail_usps_packages') > 0 }}"
# action:
Expand All @@ -255,14 +255,14 @@
# Mailbox Opened!
# - delay: 10
# - service: switch.turn_off
# entity_id: switch.garage_stream
# entity_id: switch.garage_stream

- alias: "Door Lock Alerts"
id: "door_lock_alerts"
initial_state: on
trigger:
platform: state
entity_id:
entity_id:
- lock.front_door
- lock.garage_exterior_door
to: "unlocked"
Expand Down Expand Up @@ -330,7 +330,7 @@
- wed
action:
service: homeassistant.turn_off
entity_id:
entity_id:
- switch.nas
- binary_sensor.backups_complete

Expand Down Expand Up @@ -364,10 +364,10 @@
condition: "{{ states('input_boolean.goodnight') == 'off' and states('group.trackers') == 'home' }}"
action:
service: homeassistant.turn_on
entity_id:
entity_id:
- switch.living_room_speakers
- switch.tv

- alias: "Turn off speakers when tv OR xbox powers off"
id: "tv_off_with_xbox_off"
initial_state: on
Expand All @@ -381,7 +381,7 @@
condition: "{{ states('input_boolean.goodnight') == 'off' and states('group.trackers') == 'home' }}"
action:
service: homeassistant.turn_off
entity_id:
entity_id:
- switch.living_room_speakers
- switch.tv

Expand Down Expand Up @@ -410,7 +410,7 @@
platform: state
entity_id: binary_sensor.weasel_active
to: "off"
for: '00:30:00'
for: "00:30:00"
# condition: "{{ states('sensor.weasel_ssid') == 'Penny'}}"
action:
- service: homeassistant.turn_off
Expand All @@ -425,7 +425,7 @@
platform: state
entity_id: switch.andrew_monitor
to: "off"
for: '00:00:30'
for: "00:00:30"
action:
- service: homeassistant.turn_off
entity_id: switch.nexus_7_screen
Expand All @@ -434,10 +434,10 @@
id: "water_sensor_alert"
trigger:
- platform: state
entity_id:
- binary_sensor.washing_machine_water_detector
- binary_sensor.water_heater_water_detector
- binary_sensor.guest_bathroom_toilet_water_detector
entity_id:
- binary_sensor.washing_machine_water_detector
- binary_sensor.water_heater_water_detector
- binary_sensor.guest_bathroom_toilet_water_detector
- binary_sensor.back_bathroom_toilet_water_detector
- binary_sensor.kitchen_sink_water_detector
to: "on"
Expand Down Expand Up @@ -466,7 +466,7 @@
id: "sensor_battery_alert"
trigger:
- platform: numeric_state
entity_id:
entity_id:
- sensor.1_battery_level
- sensor.2_battery_level
- sensor.3_battery_level
Expand Down Expand Up @@ -543,8 +543,7 @@
{% endif %}
data:
# Override DND if Daytime, otherwise silent
priority: '{% if now().hour > 9 and now().hour < 22 %}1{% else %}0{% endif %}'

priority: "{% if now().hour > 9 and now().hour < 22 %}1{% else %}0{% endif %}"

# - id: webhook_debugger
# alias: "Webhook Debugger"
Expand Down Expand Up @@ -580,7 +579,7 @@
- sun
- "{{ states('person.andrew') == 'home'}}"
action:
# Watchtower runs once at container start then turns back off
# Watchtower runs once at container start then turns back off
- service: homeassistant.turn_on
entity_id: switch.docker_watchtower

Expand All @@ -589,7 +588,7 @@
mode: parallel
trigger:
- platform: state
entity_id:
entity_id:
- sensor.electric_utilities_summary
- sensor.electric_utilities_daily
- sensor.electric_utilities_realtime
Expand Down Expand Up @@ -668,9 +667,9 @@
id: "315mhz_remote"
trigger:
- platform: mqtt
topic: 'sensor/rtl_433_test'
topic: "sensor/rtl_433_test"
value_template: "{{ value_json.model }}"
payload: 'Smoke-GS558'
payload: "Smoke-GS558"
action:
service: >
{% if trigger.payload_json.code == "87f7b0" %}
Expand All @@ -694,8 +693,8 @@

- alias: "Signal Webhook Message BVST"
id: "signal_webhook_message_bvst"
mode: 'queued'
initial_state: 'on'
mode: "queued"
initial_state: on
trigger:
- platform: webhook
webhook_id: !secret signal_bvst_contact_webhook_id
Expand Down Expand Up @@ -729,7 +728,7 @@
platform: time
at: "01:30:00"
action:
- service: switch.turn_off
- service: switch.turn_off
entity_id: switch.docker_appdaemon
- delay: "00:00:30"
- service: switch.turn_on
Expand Down Expand Up @@ -819,7 +818,7 @@
- service: notify.signal_self
data:
message: >
Home Assistant v{{ states('sensor.ha_version')}} has started!
Home Assistant v{{ states('sensor.ha_version')}} has started!
- alias: "Coffee Maker on With Alarm Clock"
id: "coffee_maker_alarm_clock"
Expand Down Expand Up @@ -863,7 +862,7 @@
trigger:
- platform: time
at: "10:00:00"
# also auto turns off after 30 minutes via ESPhome
# also auto turns off after 30 minutes via ESPhome
# switch config of power_plug_1
condition: "{{ states('switch.coffee_maker') == 'on' }}"
action:
Expand All @@ -872,4 +871,34 @@
- service: notify.signal_self
data:
message: >
Turned coffee maker off!
Turned coffee maker off!
- alias: "Front Door NFC"
id: "front_door_nfc"
initial_state: on
trigger:
- platform: state
entity_id: sensor.rfid_tag
condition: '{{ "08" in trigger.to_state.state[:-2] }}'
action:
- service: script.notify_wrapper
data:
message: "Front door unlocked by NFC"
data:
priority: 1
- service: lock.unlock
entity_id: lock.front_door

- alias: "Attic Pi Health"
id: "attic_pi_health"
trigger:
- platform: state
entity_id: binary_sensor.attic_pi
from: on
to: off
for:
minutes: 5
action:
service: script.notify_wrapper
data:
message: "Attic Pi Offline"
5 changes: 5 additions & 0 deletions binary_sensor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
host: 10.0.1.27
count: 2

- platform: ping
name: Attic Pi
host: 10.0.1.3
count: 2

# - platform: ping
# name: Kurt Tunnel
# host: 192.168.88.1
Expand Down
2 changes: 1 addition & 1 deletion extras/Node-RED/flows.json

Large diffs are not rendered by default.

32 changes: 21 additions & 11 deletions extras/esphome/door_nfc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,37 @@ substitutions:

esphome:
name: ${name}

esp32:
board: lolin_s2_mini
framework:
type: ESP-IDF
platform: ESP8266
board: d1_mini_pro

<<: !include common.yaml

pn532_i2c:
update_interval: 1s
on_tag:
then:
- text_sensor.template.publish:
id: rfid_tag
state: !lambda 'return x;'

text_sensor:
- platform: template
name: "RFID Tag"
id: rfid_tag
update_interval: 10s
lambda: |-
return {""};
i2c:
sda: 39
scl: 40
sda: D2
scl: D1
scan: true
id: bus_a

binary_sensor:
- platform: pn532
uid: !secret andrew_fitbit_id
name: "${friendly_name} Andrew's Fitbit"
# binary_sensor:
# - platform: pn532
# uid: !secret andrew_fitbit_id
# name: "${friendly_name} Andrew's Fitbit"

switch:
- platform: restart
Expand Down
Loading

0 comments on commit 2b6e261

Please sign in to comment.