Compare commits

...

32 Commits

Author SHA1 Message Date
47ec4b4fde 🚚 moving some things around 2025-06-09 16:51:29 -04:00
22b3234674 add battery_notes 2025-03-02 19:21:23 -05:00
325559fe3d add wakeup script 2025-02-09 12:58:14 -05:00
4f8a471834 adding spook 2025-02-09 12:57:35 -05:00
4667f9e691 🚚 rename dyson purifier (new component) 2025-01-06 22:28:38 -05:00
862945c9af 🚚 rename bedroom tv 2024-10-06 17:49:40 -04:00
885caf6e4c 🔧 config tweak 2024-07-19 16:14:43 -04:00
602c89e565 🔧 tweak brightness 2024-07-19 16:05:03 -04:00
c6c418c9ad automation: close office blinds 2024-07-19 15:56:48 -04:00
cf2d6a8c87 🐛wemo + homekit was being buggy 2023-09-19 21:23:38 -04:00
6cc9989236 🔥 remove flaky garage door sensor 2023-09-08 20:08:11 -04:00
9d8861a93d 🔧 tweak office AC settings 2023-07-13 17:17:32 -04:00
120911f57a add office blinds group 2023-07-12 19:59:11 -04:00
5361732fc0 add goodnight script 2023-03-27 22:00:33 -04:00
00364bf4c7 first scripts 2023-03-19 18:23:50 -04:00
e1cf2b1117 🚚 switch to uuids and services for automations 2023-02-10 23:00:48 -05:00
2d17695583 purifier automation 2023-02-10 22:10:08 -05:00
acf0c9d1ca 🔧 add matrix notifier 2023-01-24 22:07:14 -05:00
1f913b8cd9 🙈 add hacs 2023-01-23 22:13:36 -05:00
fddd7ffbbe 🔧 use update entity for release notifications 2023-01-06 23:48:46 -05:00
4d09fdc93a 🔧 add country for 2022.12 2022-12-07 16:40:31 -05:00
84bd5440ef add homekit config 2022-10-18 23:52:02 -04:00
1d8c23d6c9 🔥 remove groups (handled in UI) 2022-10-18 22:34:49 -04:00
4ae1de0eb4 🔧 add external url 2022-10-17 22:30:43 -04:00
39ba6300c0 🔧 proxy config 2022-10-16 22:10:04 -04:00
b9901256f8 🔥 remove recorder 2022-10-16 19:55:59 -04:00
79857599b9 🔧 update to latest 2022-10-16 19:55:45 -04:00
bf3a0e4774 🔥 remove darksky 2022-09-15 22:54:59 -04:00
b0fad8f397 🔥 remove nest yaml 2022-08-04 18:01:28 -04:00
ba56a2170e 🗑 switch updater to version integration 2022-03-31 22:45:15 -04:00
b182d43a24 porch light automations 2021-12-13 22:49:14 -05:00
9013e4addd update notifications 2021-12-12 22:28:21 -05:00
26 changed files with 270 additions and 77 deletions

View File

@@ -1 +1 @@
2021.9.7
2025.5.3

10
.gitignore vendored
View File

@@ -15,4 +15,12 @@ image
*.db-wal
.vscode
.DS_Store
.DS_Store
*.pem
/custom_components/hacs
/custom_components/battery_notes
/custom_components/dyson_local
/custom_components/spook
/custom_components/spook_inverse

View File

@@ -1,11 +1,4 @@
home_latititude: 1
home_longitude: 1
home_elevation: 1
hass_db_url: sqlite:///config/test.db
darksky_api_key: 00aa00aa00aa00aa00aa00aa00aa00aa
nest_client_id: client_id
nest_client_secret: client_secret
nest_project_id: project_id
nest_subscriber_id: subscriber_id
matrix_password: hunter2

View File

@@ -1 +1,14 @@
[]
- id: '1724553196564'
alias: Goodnight Action
description: ''
trigger:
- platform: event
event_data:
actionID: B4B3EB14-2508-40F7-883A-204C100B1F2A
event_type: ios.action_fired
condition: []
action:
- action: script.goodnight
metadata: {}
data: {}
mode: single

View File

@@ -0,0 +1,31 @@
- alias: Bedroom TV Time
description: "Put the purifier in night mode when the TV starts playing"
id: "331f421c-c0b6-41cf-98ce-2ab0126a335a"
mode: single
trigger:
- platform: state
entity_id:
- media_player.bedroom_tv
to: playing
condition: []
action:
- service: switch.turn_on
data: {}
target:
entity_id: switch.purifier_night_mode
- alias: Bedroom TV Time Over
description: ""
id: "826af719-2a40-431f-8f02-4fa935369c3e"
mode: single
trigger:
- platform: state
entity_id:
- media_player.bedroom_tv
to: standby
condition: []
action:
- service: switch.turn_off
data: {}
target:
entity_id: switch.purifier_night_mode

View File

@@ -1,26 +1,27 @@
- id: '1631582483969'
alias: Turn on light rack
description: ''
- alias: Turn on light rack
description: ""
id: "24dcac6e-5577-44a8-b3ea-9249a299c3f6"
mode: single
trigger:
- platform: time
at: 08:00:00
- platform: time
at: 08:00:00
condition: []
action:
- type: turn_on
device_id: bb22c5ed5d647c0713ace2e742f92bd1
entity_id: switch.light_rack
domain: switch
- service: switch.turn_on
data: {}
target:
entity_id: switch.light_rack
- alias: Turn off light rack
description: ""
id: "3939a056-c910-4b46-8437-06335b355350"
mode: single
- id: '1631583563463'
alias: Turn off light rack
description: ''
trigger:
- platform: time
at: '22:00:00'
- platform: time
at: "22:00:00"
condition: []
action:
- type: turn_off
device_id: bb22c5ed5d647c0713ace2e742f92bd1
entity_id: switch.light_rack
domain: switch
mode: single
- service: switch.turn_off
data: {}
target:
entity_id: switch.light_rack

View File

@@ -0,0 +1,27 @@
- alias: Turn on front porch light
description: ""
id: "9f78242d-f30f-4c30-bd37-65b4b62b95fe"
mode: single
trigger:
- platform: sun
event: sunset
condition: []
action:
- service: switch.turn_on
data: {}
target:
entity_id: switch.front_porch
- alias: Turn off front porch light
description: ""
id: "6b9e714f-0e71-481d-8506-c1bf4a0c7c00"
mode: single
trigger:
- platform: time
at: "23:30:00"
condition: []
action:
- service: switch.turn_off
data: {}
target:
entity_id: switch.front_porch

View File

@@ -1,28 +1,29 @@
- id: '1625281735631'
alias: Keep office cool
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.home_office_temperature
above: '24'
condition: []
action:
- type: turn_on
device_id: 0739a7e7036ad9758825b93a524e1f00
entity_id: switch.air_conditioner
domain: switch
- alias: Keep office cool
description: ""
id: "7b7450b6-0811-4c44-9581-0461adcf912e"
mode: single
- id: '1625503795025'
alias: Turn off office AC
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.home_office_temperature
below: '22'
- platform: numeric_state
entity_id: sensor.awair_temperature
above: "26"
condition: []
action:
- type: turn_off
device_id: 0739a7e7036ad9758825b93a524e1f00
entity_id: switch.air_conditioner
domain: switch
mode: single
- service: switch.turn_on
data: {}
target:
entity_id: switch.air_conditioner
- alias: Turn off office AC
description: ""
id: "380dc2cc-c43b-4c69-bc36-6923b956f8be"
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.awair_temperature
below: "23"
condition: []
action:
- service: switch.turn_off
data: {}
target:
entity_id: switch.air_conditioner

View File

@@ -0,0 +1,15 @@
- id: "1710275740260"
alias: Close lab blinds
description: ""
trigger:
- platform: sun
event: sunset
offset: 0
condition: []
action:
- service: cover.close_cover
metadata: {}
data: {}
target:
area_id: lab
mode: single

View File

@@ -0,0 +1,12 @@
# Get notifications when new updates are available
- alias: "Update Available Notification"
id: "ae8b75ea-0914-4816-a772-4d0224b262fa"
trigger:
- platform: state
entity_id: update.home_assistant_core_update
to: "on"
action:
- service: notify.notify
data:
title: "New update available"
message: "Home Assistant Core update is available."

View File

@@ -34,7 +34,9 @@ variables:
condition:
condition: template
value_template: "{{ trigger.from_state.state == zone_state and trigger.to_state.state != zone_state }}"
# The first case handles leaving the Home zone which has a special state when zoning called 'home'.
# The second case handles leaving all other zones.
value_template: "{{ zone_entity == 'zone.home' and trigger.from_state.state == 'home' and trigger.to_state.state != 'home' or trigger.from_state.state == zone_state and trigger.to_state.state != zone_state }}"
action:
- alias: "Notify that a person has left the zone"

View File

@@ -1,4 +1,5 @@
---
# Base configuration.
homeassistant:
name: nerdhaus
latitude: !secret home_latititude
@@ -6,10 +7,13 @@ homeassistant:
elevation: !secret home_elevation
unit_system: metric
time_zone: America/Toronto
country: CA
external_url: "https://hass.nerdhaus.ca"
packages: !include_dir_named packages
group: !include groups.yaml
automation: !include automations.yaml
automation manual: !include_dir_merge_list automations/
script: !include scripts.yaml
script: !include_dir_merge_named scripts/
scene: !include scenes.yaml
battery_notes:

View File

View File

@@ -1,10 +0,0 @@
---
# The darksky platform uses the Dark Sky web service as a source for
# meteorological data for your location.
#
# https://www.home-assistant.io/integrations/weather.darksky/
#
weather:
- platform: darksky
api_key: !secret darksky_api_key
mode: hourly

7
packages/group.yaml Normal file
View File

@@ -0,0 +1,7 @@
cover:
- platform: group
unique_id: "lab_blinds"
name: "Lab Blinds"
entities:
- cover.lab_blinds_left_cover
- cover.lab_blinds_right_cover

18
packages/homekit.yaml Normal file
View File

@@ -0,0 +1,18 @@
homekit:
filter:
include_domains:
- camera
include_entities:
- climate.nest
- cover.office_blinds
- sensor.awair_humidity
- sensor.awair_temperature
- sensor.home_office_humidity
- sensor.home_office_temperature
- sensor.nest_humidity
- sensor.nest_temperature
- switch.front_porch
- switch.air_conditioner
- switch.light_rack
- switch.space_heater
- switch.string_lights

View File

@@ -6,4 +6,6 @@
#
http:
use_x_forwarded_for: true
trusted_proxies: 100.103.57.96
trusted_proxies:
- 100.103.57.96
- 127.0.0.1

11
packages/matrix.yaml Normal file
View File

@@ -0,0 +1,11 @@
matrix:
homeserver: https://matrix.walkah.chat
username: "@hass:walkah.chat"
password: !secret matrix_password
rooms:
- "#nerdhaus:walkah.chat"
notify:
- name: matrix
platform: matrix
default_room: "#nerdhaus:walkah.chat"

View File

@@ -1,7 +0,0 @@
nest:
client_id: !secret nest_client_id
client_secret: !secret nest_client_secret
# "Project ID" in the Device Access Console
project_id: !secret nest_project_id
# Provide the full path exactly as shown under "Subscription name" in Google Cloud Console
subscriber_id: !secret nest_subscriber_id

View File

@@ -1,2 +0,0 @@
recorder:
db_url: !secret hass_db_url

View File

@@ -0,0 +1 @@
[]

View File

28
scripts/bedtime.yaml Normal file
View File

@@ -0,0 +1,28 @@
bedtime:
alias: Bedtime
mode: single
icon: mdi:bed
sequence:
- service: media_player.turn_off
data: {}
target:
entity_id:
- media_player.main_floor
- media_player.lg_tv
- service: light.turn_off
data: {}
target:
entity_id: light.main_floor_tv_area
- service: light.turn_on
data: {}
target:
entity_id:
- light.hallway_main_lights
- service: scene.turn_on
data: {}
target:
entity_id: scene.bedroom_relax
- service: switch.turn_on
data: {}
target:
entity_id: switch.purifier_night_mode

13
scripts/goodnight.yaml Normal file
View File

@@ -0,0 +1,13 @@
goodnight:
alias: Goodnight
mode: single
icon: mdi:sleep
sequence:
- service: light.turn_off
data: {}
target:
area_id:
- bathroom
- bedroom
- closet
- hallway

16
scripts/showtime.yaml Normal file
View File

@@ -0,0 +1,16 @@
---
showtime:
alias: Showtime
sequence:
- service: media_player.turn_on
data: {}
target:
entity_id:
- media_player.main_floor
- service: light.turn_on
data:
brightness_pct: 20
target:
entity_id: light.main_floor_tv_area
mode: single
icon: mdi:television

9
scripts/wakeup.yaml Normal file
View File

@@ -0,0 +1,9 @@
wakeup:
alias: Wake up
mode: single
icon: mdi:weather-sunset-up
sequence:
- service: switch.turn_off
data: {}
target:
entity_id: switch.purifier_night_mode