Skip to content

Commit

Permalink
Google Home, ESPHome
Browse files Browse the repository at this point in the history
  • Loading branch information
aneisch committed Dec 26, 2023
1 parent 18d02c1 commit 132502d
Show file tree
Hide file tree
Showing 19 changed files with 154 additions and 85 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,22 @@ Also using Grafana/Influx for graphing, both running in Docker containers on NUC
## Some statistics about my installation:
Description | value
-- | --
Lines of ESPHome YAML | 2863
Lines of Home Assistant YAML | 8463
Lines of ESPHome YAML | 2891
Lines of Home Assistant YAML | 8483
[Integrations](https://www.home-assistant.io/integrations/) in use | 53
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 [`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 | 113
Entities in the [`binary_sensor`](https://www.home-assistant.io/components/binary_sensor) domain | 138
Entities in the [`button`](https://www.home-assistant.io/components/button) domain | 27
Entities in the [`automation`](https://www.home-assistant.io/components/automation) domain | 110
Entities in the [`binary_sensor`](https://www.home-assistant.io/components/binary_sensor) domain | 137
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 | 18
Entities in the [`climate`](https://www.home-assistant.io/components/climate) domain | 1
Entities in the [`counter`](https://www.home-assistant.io/components/counter) domain | 1
Entities in the [`cover`](https://www.home-assistant.io/components/cover) domain | 14
Entities in the [`cover`](https://www.home-assistant.io/components/cover) domain | 13
Entities in the [`device_tracker`](https://www.home-assistant.io/components/device_tracker) domain | 4
Entities in the [`event`](https://www.home-assistant.io/components/event) domain | 50
Entities in the [`fan`](https://www.home-assistant.io/components/fan) domain | 3
Expand All @@ -83,24 +83,24 @@ Entities in the [`input_text`](https://www.home-assistant.io/components/input_te
Entities in the [`light`](https://www.home-assistant.io/components/light) domain | 41
Entities in the [`lock`](https://www.home-assistant.io/components/lock) domain | 3
Entities in the [`media_player`](https://www.home-assistant.io/components/media_player) domain | 14
Entities in the [`number`](https://www.home-assistant.io/components/number) domain | 7
Entities in the [`number`](https://www.home-assistant.io/components/number) domain | 5
Entities in the [`person`](https://www.home-assistant.io/components/person) domain | 2
Entities in the [`plant`](https://www.home-assistant.io/components/plant) domain | 1
Entities in the [`remote`](https://www.home-assistant.io/components/remote) domain | 1
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 | 42
Entities in the [`select`](https://www.home-assistant.io/components/select) domain | 3
Entities in the [`sensor`](https://www.home-assistant.io/components/sensor) domain | 398
Entities in the [`sensor`](https://www.home-assistant.io/components/sensor) domain | 384
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 | 163
Entities in the [`switch`](https://www.home-assistant.io/components/switch) domain | 152
Entities in the [`timer`](https://www.home-assistant.io/components/timer) domain | 2
Entities in the [`tts`](https://www.home-assistant.io/components/tts) domain | 1
Entities in the [`update`](https://www.home-assistant.io/components/update) domain | 3
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** | **1178**
**Total state objects** | **1136**
## The HACS integrations/plugins that I use:
**Appdaemon**:<br>
[aneisch/follow_me_appdaemon](https://github.com/aneisch/follow_me_appdaemon)<br>
Expand Down
44 changes: 18 additions & 26 deletions customize.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,44 +53,36 @@ sensor.sonoff_pow_yesterday_cost:
icon: mdi:square-inc-cash

### THERMOSTAT ###
climate.thermostat:
friendly_name: Adjust
# climate.thermostat:
# friendly_name: Adjust

sensor.thermostat_fan_status:
friendly_name: Fan Status
icon: mdi:fan
# sensor.thermostat_fan_status:
# friendly_name: Fan Status
# icon: mdi:fan

sensor.thermostat_state:
friendly_name: State
icon: mdi:fan
# sensor.thermostat_state:
# friendly_name: State
# icon: mdi:fan

sensor.thermostat_temperature:
icon: mdi:thermometer-lines
friendly_name: Temperature Readout
# sensor.thermostat_temperature:
# icon: mdi:thermometer-lines
# friendly_name: Temperature Readout

sensor.thermostat_setpoint:
friendly_name: Setpoint
icon: mdi:thermometer
# sensor.thermostat_setpoint:
# friendly_name: Setpoint
# icon: mdi:thermometer

sensor.ac_runtime_today:
friendly_name: Runtime Today
# sensor.ac_runtime_today:
# friendly_name: Runtime Today

sensor.ac_runtime_yesterday:
friendly_name: Runtime Yesterday
# sensor.ac_runtime_yesterday:
# friendly_name: Runtime Yesterday

### SCRIPTS ###
script.copy:
friendly_name: Plex Copy
icon: mdi:content-copy

### PEOPLE ###
# person.andrew:
# entity_picture: /local/icons/tracker_icons/andrew.jpg
# user_id: dd85e42ea84e4f4c87a6fa93ab87a870

# person.bethany:
# entity_picture: /local/icons/tracker_icons/bethany.jpg

### OTHER ###
zone.home:
beacon:
Expand Down
12 changes: 12 additions & 0 deletions extras/docker-compose/other/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,18 @@ services:
- "southwest.py"
- "--verbose"

ha-fusion:
container_name: ha-fusion
image: ghcr.io/matt8707/ha-fusion
volumes:
- /opt/ha-fusion/data:/app/data
ports:
- 5050:5050
environment:
TZ: America/Chicago
HASS_URL: http://10.0.1.22:8123
restart: always

networks:
macos_network:
driver: bridge
12 changes: 12 additions & 0 deletions extras/docker-compose/unified/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,18 @@ services:
- "southwest.py"
- "--verbose"

ha-fusion:
container_name: ha-fusion
image: ghcr.io/matt8707/ha-fusion
volumes:
- /opt/ha-fusion/data:/app/data
ports:
- 5050:5050
environment:
TZ: America/Chicago
HASS_URL: http://10.0.1.22:8123
restart: always

networks:
macos_network:
driver: bridge
2 changes: 1 addition & 1 deletion extras/esphome/midnight_reboot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ time:
id: sntp_time
timezone: America/Chicago
on_time:
- cron: '00 05 * * * *'
- cron: '00 00 00 * * *'
then:
- switch.toggle: reboot
21 changes: 18 additions & 3 deletions extras/esphome/mom_and_dad_garage.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
esphome:
name: mom_and_dad_garage
platform: ESP8266
board: d1_mini_pro
board: d1_mini
# platformio_options:
# platform: [email protected]
# platform_packages:
# - platformio/[email protected]
# - platformio/[email protected]

<<: !include midnight_reboot.yaml
external_components:
- source: github://pr#5586
components: [ ota_http ]

ota_http:

<<: !include midnight_reboot.yaml

web_server:
port: 80
Expand Down Expand Up @@ -41,6 +46,16 @@ binary_sensor:
- delayed_on: 1s
- delayed_off: 1s

button:
- platform: template
name: "Mom and Dad Garage Firmware update"
on_press:
then:
- ota_http.flash:
verify_ssl: false
url: !secret mom_and_dad_garage_ota
- logger.log: "This message should be not displayed(reboot)"

cover:
- platform: template
id: cover_entity
Expand Down Expand Up @@ -102,5 +117,5 @@ text_sensor:
sensor:
- platform: uptime
id: uptime_sensor
#name: "Mom and Dad Garage Uptime"
name: "Mom and Dad Garage Uptime"
update_interval: 600s
20 changes: 18 additions & 2 deletions extras/esphome/mom_and_dad_gate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ esphome:

<<: !include midnight_reboot.yaml

external_components:
- source: github://pr#5586
components: [ ota_http ]

ota_http:

web_server:
port: 80

logger:
level: NONE
level: DEBUG

wifi:
networks:
Expand Down Expand Up @@ -122,7 +128,7 @@ sensor:

- platform: uptime
id: uptime_sensor
#name: "Mom and Dad Gate Uptime"
name: "Mom and Dad Gate Uptime"
update_interval: 600s

binary_sensor:
Expand Down Expand Up @@ -159,6 +165,16 @@ binary_sensor:
# - delayed_on: 1s
# - delayed_off: 1s

button:
- platform: template
name: "Mom and Dad Gate Firmware update"
on_press:
then:
- ota_http.flash:
verify_ssl: false
url: !secret mom_and_dad_gate_ota
- logger.log: "This message should be not displayed(reboot)"

switch:
- platform: restart
id: reboot
Expand Down
1 change: 1 addition & 0 deletions github_action_secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ amazon_email: [email protected]
amazon_pass: PASSWORD
spotify_client_id: id
spotify_client_secret: secret
secure_devices_pin: 1234
signal_phone: "+10000000000"
signal_phone_andrew: "+10000000000"
signal_group_bvst: "group.id"
Expand Down
3 changes: 3 additions & 0 deletions google_home.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ project_id: home-assistant-76522
service_account: !include SERVICE_ACCOUNT.JSON
report_state: true
expose_by_default: false
secure_devices_pin: !secret secure_devices_pin
entity_config:
cover.garage_door:
expose: true
Expand All @@ -10,4 +11,6 @@ entity_config:
lock.back_door:
expose: true
lock.garage_exterior_door:
expose: true
light.andrew_desk_lamp:
expose: true
25 changes: 25 additions & 0 deletions packages/frigate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,31 @@ automation:
data:
camera: ptz

- alias: Frigate Daily Restart
id: "frigate_restart"
trigger:
platform: time
at: "09:00:00"
action:
- service: mqtt.publish
data:
qos: 0
retain: false
topic: frigate/restart

- alias: Frigate Healthcheck
id: "frigate_healthcheck"
mode: single
trigger:
- platform: state
entity_id: sensor.frigate_status
from: running
for: 00:05:00
action:
- service: script.notify_wrapper
data:
message: "Frigate has been unavailable for more than five minutes"

# camera:
# - platform: local_file
# file_path: /config/timelapse/front_door.mp4
Expand Down
2 changes: 1 addition & 1 deletion packages/grill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ input_number:
meater_tip_set_high:
min: -100
max: 600
name: Probe 2 High
name: Meater High
mode: box
unit_of_measurement: '°F'

Expand Down
8 changes: 4 additions & 4 deletions packages/mom_and_dad_gate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ automation:
data:
entity_id: >
{% if trigger.id == 'gate' %}
cover.mom_and_dad_gate
cover.mom_and_dad_gate_mom_and_dad_gate
{% elif trigger.id == 'garage' %}
cover.mom_and_dad_garage
cover.mom_and_dad_garage_mom_and_dad_garage
{% endif %}
- delay: "00:00:10"

Expand All @@ -107,9 +107,9 @@ automation:
data:
entity_id: >
{% if trigger.id == 'gate' %}
cover.mom_and_dad_gate
cover.mom_and_dad_gate_mom_and_dad_gate
{% elif trigger.id == 'garage' %}
cover.mom_and_dad_garage
cover.mom_and_dad_garage_mom_and_dad_garage
{% endif %}
- service: notify.signal_self
data:
Expand Down
18 changes: 8 additions & 10 deletions ui-lovelace/80-mom-and-dad.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,23 @@ cards:
# - binary_sensor.gate_automation_safety
# - binary_sensor.gate_heading_comparison
# - sensor.gate_battery_voltage
- cover.mom_and_dad_gate
- entity: sensor.mom_and_dad_gate_ip_address
name: Microcontroller IP Address
# - entity: sensor.mom_and_dad_gate_uptime
# name: Microcontroller Uptime
- cover.mom_and_dad_gate_mom_and_dad_gate
- sensor.mom_and_dad_gate_mom_and_dad_gate_ip_address
- sensor.mom_and_dad_gate_mom_and_dad_gate_uptime
- button.mom_and_dad_gate_mom_and_dad_gate_firmware_update
# - automation.gate_heading_comparison_action_notify
# - input_boolean.gate_alert
# - entity: script.mom_and_dad_gate_toggle
# name: Gate Toggle


- type: entities
show_header_toggle: false
title: Garage
entities:
- cover.mom_and_dad_garage
- sensor.mom_and_dad_garage_ip_address
# - entity: sensor.mom_and_dad_garage_ip_address
# name: Microcontroller IP Address
- cover.mom_and_dad_garage_mom_and_dad_garage
- sensor.mom_and_dad_garage_mom_and_dad_garage_ip_address
- sensor.mom_and_dad_garage_mom_and_dad_garage_uptime
- button.mom_and_dad_garage_mom_and_dad_garage_firmware_update
# - entity: sensor.mom_and_dad_garage_uptime
# name: Microcontroller Uptime

6 changes: 1 addition & 5 deletions www/community/lovelace-card-mod/card-mod.js

Large diffs are not rendered by default.

Binary file modified www/community/lovelace-card-mod/card-mod.js.gz
Binary file not shown.
Loading

0 comments on commit 132502d

Please sign in to comment.