Skip to content

Commit

Permalink
Migrate to Native HA HomeKit over Homebridge
Browse files Browse the repository at this point in the history
  • Loading branch information
geekofweek committed May 30, 2018
1 parent a9cffe2 commit 0282639
Show file tree
Hide file tree
Showing 9 changed files with 155 additions and 74 deletions.
89 changes: 51 additions & 38 deletions automation/climate.yaml
Expand Up @@ -39,6 +39,10 @@
entity_id: group.household
from: 'home'
to: 'not_home'
for:
hours: 0
minutes: 30
seconds: 0

condition:
- condition: state
Expand Down Expand Up @@ -222,36 +226,6 @@
entity_id: climate.main_floor
away_mode: true

##########################################################
## Set Thermostat Upstairs Mode when Hot
##########################################################

- alias: Climate - Set Thermostat Upstairs Mode when Hot

trigger:
- platform: numeric_state
entity_id: sensor.dark_sky_temperature
above: 91

condition:
- condition: state
entity_id: group.household
state: 'home'
- condition: state
entity_id: group.summer_mode
state: 'on'
- condition: time
after: '10:00'
before: '19:59'


action:
- service: climate.set_hold_mode
data:
entity_id: climate.main_floor
#Upstairs = smart2
hold_mode: "smart2"

##########################################################
## Adjust Thermostat for Overnight Guests before Midnight
##########################################################
Expand Down Expand Up @@ -322,7 +296,7 @@
- service: climate.set_temperature
data:
entity_id: climate.window_unit
temperature: '70'
temperature: '75'

##########################################################
## Adjust Thermostat for Overnight Guests after Midnight
Expand Down Expand Up @@ -387,7 +361,7 @@
- service: climate.set_temperature
data:
entity_id: climate.window_unit
temperature: '70'
temperature: '75'

##########################################################
## If USER1 is not Home Override Upstairs Mode
Expand Down Expand Up @@ -540,7 +514,7 @@
- service: climate.set_temperature
data:
entity_id: climate.window_unit
temperature: '70'
temperature: '75'

##########################################################
## Turn off Window Unit at 9p
Expand Down Expand Up @@ -572,7 +546,7 @@
trigger:
- platform: numeric_state
entity_id: sensor.office_temperature
above: REDACTED
above: 90

condition:
condition: or
Expand All @@ -596,7 +570,7 @@
- service: climate.set_temperature
data:
entity_id: climate.window_unit
temperature: '70'
temperature: '75'
- service: notify.ios_USER1s_iphone
data:
message: Office is Hot Turning on Window Unit
Expand Down Expand Up @@ -639,7 +613,7 @@
- service: climate.set_temperature
data:
entity_id: climate.window_unit
temperature: '70'
temperature: '75'

##########################################################
## Turn on Window Unit when Hot Outside
Expand Down Expand Up @@ -675,7 +649,7 @@
- service: climate.set_temperature
data:
entity_id: climate.window_unit
temperature: '70'
temperature: '75'

##########################################################
## Turn off Winodw Unit When below 80 Outside and Away
Expand Down Expand Up @@ -743,7 +717,15 @@
data:
device: 54737244
command: PowerToggle
- delay: '00:00:10'
- delay: '00:00:04'
- service: remote.send_command
entity_id: remote.office_tv
data:
device: 54737244
command: Mode
num_repeats: 3
delay_secs: 1
- delay: '00:00:04'
- service: remote.send_command
entity_id: remote.office_tv
data:
Expand Down Expand Up @@ -878,6 +860,37 @@

action:
- service: homeassistant.turn_on
entity_id: input_boolean.portable_ac

##########################################################
## Turn off Portable AC when Office is Unoccupied
##########################################################

- alias: Occupancy - Turn off Office Fans when Unoccupied

trigger:
- platform: state
entity_id: binary_sensor.office_occupancy
from: 'on'
to: 'off'
for:
hours: 0
minutes: 60
seconds: 0

condition:
- condition: state
entity_id: input_boolean.disable_occupancy
state: 'off'
- condition: state
entity_id: input_boolean.disable_portable_ac
state: 'off'
- condition: state
entity_id: input_boolean.portable_ac
state: 'on'

action:
- service: homeassistant.turn_off
entity_id: input_boolean.portable_ac

##########################################################
Expand Down
2 changes: 2 additions & 0 deletions configuration.yaml
Expand Up @@ -21,6 +21,7 @@ discovery:
- apple_tv
- sonos
- harmony
- deconz
config:

http:
Expand Down Expand Up @@ -203,3 +204,4 @@ input_select: !include input_select.yaml
script: !include scripts.yaml
weblink: !include weblinks.yaml
light: !include light_group.yaml
homekit: !include homekit.yaml
36 changes: 5 additions & 31 deletions customize.yaml
Expand Up @@ -132,8 +132,6 @@

cover.garage_door:
device_class: garage
homebridge_cover_type: garage_door
homebridge_visible: true
cover.wink_garage_door:
device_class: garage
friendly_name: Wink Garage Door
Expand Down Expand Up @@ -200,7 +198,6 @@
icon: mdi:stairs
group.backyard_lighting:
icon: mdi:gate
homebridge_visible: true
group.interior:
friendly_name: Interior Lights

Expand All @@ -210,19 +207,10 @@

lock.front_door:
friendly_name: Front Door Lock
homebridge_mfg: Schlage
homebridge_model: BE469
homebridge_visible: true
lock.back_door:
friendly_name: Back Door Lock
homebridge_mfg: Schlage
homebridge_model: BE469
homebridge_visible: true
lock.basement_door:
friendly_name: Basement Door Lock
homebridge_mfg: Schlage
homebridge_model: BE469
homebridge_visible: true
group.all_locks:
friendly_name: Door Locks

Expand Down Expand Up @@ -276,7 +264,6 @@
friendly_name: Fireplace
emulated_hue_hidden: false
emulated_hue_name: "Remote FRPLC"
homebridge_visible: true
switch.air_purifier:
icon: mdi:fan
friendly_name: Air Purifier
Expand All @@ -293,7 +280,6 @@
friendly_name: Living Room Ceiling Fan
switch.front_yard_lighting:
icon: mdi:nature
homebridge_visible: true
switch.myq_garage_outlet:
icon: mdi:power-socket-us

Expand All @@ -306,12 +292,10 @@
icon: mdi:ceiling-light
emulated_hue_hidden: false
emulated_hue_name: "Remote HLLWY"
homebridge_visible: true
light.bathroom_vanity:
icon: mdi:ceiling-light
emulated_hue_hidden: false
emulated_hue_name: "Remote BTH"
homebridge_visible: true
light.USER1s_nightstand:
icon: mdi:lamp
light.bedroom_lamp:
Expand All @@ -322,6 +306,8 @@
icon: mdi:floor-lamp
light.guest_bedroom_nightstand:
icon: mdi:lamp
light.bedroom_closet_ceiling:
icon: mdi:ceiling-light
light.office_lamp:
icon: mdi:floor-lamp
light.office_ceiling:
Expand All @@ -330,7 +316,6 @@
icon: mdi:lamp
light.garage_light:
icon: mdi:track-light
homebridge_visible: true
light.media_center_lighting:
icon: mdi:television
light.basement_stairs:
Expand All @@ -350,55 +335,45 @@
friendly_name: Living Room
emulated_hue_hidden: false
emulated_hue_name: "Remote LVNGRM"
homebridge_visible: true
light.dining_room_lights:
icon: mdi:silverware-variant
friendly_name: Dining Room
emulated_hue_hidden: false
emulated_hue_name: "Remote DNGRM"
homebridge_visible: true
light.bedroom_lights:
icon: mdi:hotel
friendly_name: Bedroom
emulated_hue_hidden: false
emulated_hue_name: "Remote BDRM"
homebridge_visible: true
light.kitchen_lights:
icon: mdi:fridge
friendly_name: Kitchen
emulated_hue_hidden: false
emulated_hue_name: "Remote KTCHN"
homebridge_visible: true
light.stairs:
icon: mdi:stairs
emulated_hue_hidden: false
emulated_hue_name: "Remote STRS"
homebridge_visible: true
light.USER1_office_lights:
icon: mdi:desktop-mac
friendly_name: USER1 Office
homebridge_visible: true
light.USER2_office_lights:
icon: mdi:desktop-mac
friendly_name: USER2 Office
homebridge_visible: true
light.guest_bedroom_lights:
icon: mdi:hotel
friendly_name: Guest Bedroom
homebridge_visible: true
light.basement_lighting:
icon: mdi:stairs
friendly_name: Basement
homebridge_visible: true
light.front_porch:
icon: mdi:wall-sconce
homebridge_visible: true
light.back_door:
icon: mdi:ceiling-light
homebridge_visible: true
light.back_porch:
icon: mdi:track-light
homebridge_visible: true
icon: mdi:wall-sconce
light.backyard_patio:
icon: mdi:wall-sconce
light.living_room_lamps:
icon: mdi:floor-lamp
light.USER2_office_ceiling:
Expand Down Expand Up @@ -490,7 +465,6 @@

vacuum.roomba:
icon: mdi:robot-vacuum
homebridge_visible: true

##########################################################
## Amazon Echo Integration
Expand Down
9 changes: 6 additions & 3 deletions groups.yaml
Expand Up @@ -78,7 +78,7 @@
- group.basement
- group.water_sensors
- media_player.sonos_basement
- media_player.roku_hd__REDACTED
- media_player.roku_basement_tv

outdoors:
name: Outdoors
Expand Down Expand Up @@ -132,8 +132,8 @@
icon: mdi:robot
entities:
- group.automation_on_demand
- group.holiday_modes
- group.party_modes
- group.holiday_modes
- group.alarm
- group.door_locks
- group.location_controls
Expand Down Expand Up @@ -329,6 +329,7 @@
- light.USER2s_nightstand
- light.bedroom_lamp
- light.closet_lamp
- light.bedroom_closet_ceiling
- binary_sensor.bedroom_occupancy
- sensor.bedroom_temperature

Expand Down Expand Up @@ -356,6 +357,7 @@
- light.office_ceiling
- light.office_lamp
- switch.air_purifier
- input_boolean.portable_ac
# - switch.office_fan
- binary_sensor.office_occupancy
- sensor.office_temperature
Expand Down Expand Up @@ -432,9 +434,10 @@
- light.front_porch
- light.back_door
- light.back_porch
- light.backyard_patio
- light.garage_light
- switch.front_yard_lighting
- group.backyard_lighting
- light.garage_light

Alarm:
control: hidden
Expand Down
2 changes: 2 additions & 0 deletions history.yaml
Expand Up @@ -30,6 +30,8 @@
- light.stairs_3
- light.upper_patio_left
- light.upper_patio_right
- light.bedroom_closet_ceiling_1
- light.bedroom_closet_ceiling_2
- group.winter_mode
- group.summer_mode
- input_select.holiday
Expand Down

0 comments on commit 0282639

Please sign in to comment.