Browse Source

Re-organized configurations

master
Teknikode 2 years ago
parent
commit
f9996c1b93
  1. 0
      components/amcrest.yaml
  2. 3
      components/august.yaml
  3. 0
      components/binary_sensors/wyze.yaml
  4. 0
      components/cameras/mail.yaml
  5. 20
      components/google_assistant.yaml
  6. 61
      components/groups/lights.yaml
  7. 26
      components/groups/motion.yaml
  8. 5
      components/groups/weather.yaml
  9. 0
      components/input_booleans/presence.yaml
  10. 3
      components/media_players/bravia.yaml
  11. 3
      components/media_players/emby.yaml
  12. 4
      components/media_players/kodi.yaml
  13. 23
      components/scenes/bedroom.yaml
  14. 8
      components/scenes/front_porch.yaml
  15. 8
      components/scenes/hallway.yaml
  16. 8
      components/scenes/kitchen.yaml
  17. 34
      components/scenes/living_room.yaml
  18. 0
      components/scripts/bedtime.yaml
  19. 0
      components/scripts/lock.yaml
  20. 0
      components/scripts/manage_automation.yaml
  21. 14
      components/sensors/mail.yaml
  22. 5
      components/sensors/openhardwaremonitor.yaml
  23. 7
      components/sensors/weather.yaml
  24. 0
      components/switches/wol.yaml
  25. 0
      components/tplink.yaml
  26. 118
      configuration.yaml
  27. 132
      groups.yaml
  28. 5
      input_sliders.yaml
  29. 85
      scenes/scenes.yaml

0
amcrest.yaml → components/amcrest.yaml

3
components/august.yaml

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
login_method: email
username: !secret august_username
password: !secret august_password

0
binary_sensors.yaml → components/binary_sensors/wyze.yaml

0
cameras.yaml → components/cameras/mail.yaml

20
components/google_assistant.yaml

@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
project_id: !secret google_project_id
service_account:
private_key: !secret google_private_key
client_email: !secret google_client_email
report_state: true
exposed_domains:
- camera
- group
- input_boolean
- scene
- switch
- script
- fan
- light
- cover
- lock
- media_player
- climate
- vacuum
- sensor

61
components/groups/lights.yaml

@ -0,0 +1,61 @@ @@ -0,0 +1,61 @@
living_room_lights:
name: Living Room Lights
entities:
- light.living_room_lamp_large
- light.living_room_lamp_small
- light.living_room_ceiling_lights
front_porch_lights:
name: Front Porch Lights
entities:
- switch.front_porch_light
back_porch_lights:
name: Back Porch Lights
entities:
- switch.back_porch_light
back_patio_lights:
name: Back Patio Lights
entities:
- switch.back_patio_lights
backyard_lights:
name: Backyard Lights
entities:
- group.back_porch_lights
- group.back_patio_lights
bedroom_lights:
name: Bedroom Lights
entities:
- switch.bedroom_ceiling_light
kitchen_lights:
name: Kitchen Lights
entities:
- light.kitchen_lights
entry_way_lights:
name: Entry Way Lights
entities:
- light.entry_light
hallway_lights:
name: Hallway Lights
entities:
- switch.hallway_light
all_lights:
name: All Lights
entities:
- light.living_room_lamp_large
- light.living_room_lamp_small
- light.living_room_ceiling_lights
- switch.hallway_light
- switch.bedroom_ceiling_light
- switch.back_porch_light
- switch.back_patio_lights
- light.entry_light
- switch.front_porch_lights
- light.kitchen_lights

26
components/groups/motion.yaml

@ -0,0 +1,26 @@ @@ -0,0 +1,26 @@
hallway_motion:
name: Hallway Motion
entities:
- binary_sensor.wyzesense_7793335c
- binary_sensor.wyzesense_779b0869
front_porch_motion:
name: Front Porch Motion
entities:
- binary_sensor.wyzesense_777aac03
- binary_sensor.front_doorbell_motion_detected
kitchen_motion:
name: Kitchen Motion
entities:
- binary_sensor.wyzesense_777aa90c
bedroom_motion:
name: Bedroom Motion
entities:
- binary_sensor.wyzesense_779b1b48
office_motion:
name: Office Motion
entities:
- binary_sensor.wyzesense_777ab5aa

5
components/groups/weather.yaml

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
climate:
name: Climate
entities:
- sensor.yr_symbol
- sun.sun

0
input_booleans.yaml → components/input_booleans/presence.yaml

3
components/media_players/bravia.yaml

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
- platform: braviatv
host: !secret bravia_host
name: Living Room TV

3
components/media_players/emby.yaml

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
- platform: emby
host: !secret emby_host
api_key: !secret emby_api_key

4
components/media_players/kodi.yaml

@ -0,0 +1,4 @@ @@ -0,0 +1,4 @@
- platform: kodi
host: !secret kodi_host
username: !secret kodi_username
password: !secret kodi_password

23
components/scenes/bedroom.yaml

@ -0,0 +1,23 @@ @@ -0,0 +1,23 @@
- name: Bedroom on
entities:
light.hue_white_lamp_2:
state: on
brightness_pct: 100
light.hue_white_lamp_5:
state: on
brightness_pct: 100
light.hue_white_lamp_8:
state: on
brightness_pct: 100
switch.bedroom_ceiling_light:
state: on
- name: Bedroom off
entities:
light.hue_white_lamp_2:
state: off
light.hue_white_lamp_5:
state: off
light.hue_white_lamp_8:
state: off
switch.bedroom_ceiling_light:
state: off

8
components/scenes/front_porch.yaml

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
- name: Front Porch on
entities:
switch.front_porch_light:
state: on
- name: Front Porch off
entities:
switch.front_porch_light:
state: off

8
components/scenes/hallway.yaml

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
- name: Hallway on
entities:
switch.hallway_light:
state: on
- name: Hallway off
entities:
switch.hallway_light:
state: off

8
components/scenes/kitchen.yaml

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
- name: Kitchen on
entities:
light.kitchen_lights:
state: on
- name: Kitchen off
entities:
light.kitchen_lights:
state: off

34
components/scenes/living_room.yaml

@ -0,0 +1,34 @@ @@ -0,0 +1,34 @@
- name: Living Room normal
entities:
light.living_room_lamp_large:
state: on
transition: 3
brightness_pct: 100
light.living_room_lamp_small:
state: on
transition: 3
brightness_pct: 100
light.living_room_ceiling_lights:
state: on
- name: Living Room dim
entities:
light.living_room_lamp_large:
state: on
transition: 3
brightness_pct: 30
light.living_room_lamp_small:
state: on
transition: 3
brightness_pct: 30
light.living_room_ceiling_lights:
state: off
- name: Living Room off
entities:
light.living_room_lamp_large:
state: off
transition: 3
light.living_room_lamp_small:
state: off
transition: 3
light.living_room_ceiling_lights:
state: off

0
scripts/bedtime.yaml → components/scripts/bedtime.yaml

0
scripts/lock.yaml → components/scripts/lock.yaml

0
scripts/manage_automation.yaml → components/scripts/manage_automation.yaml

14
sensors.yaml → components/sensors/mail.yaml

@ -1,17 +1,3 @@ @@ -1,17 +1,3 @@
- platform: yr
- platform: openhardwaremonitor
host: !secret storage_host
- platform: openhardwaremonitor
host: !secret app_runner_host
- platform: template
sensors:
is_dark:
friendly_name: 'Is Dark'
value_template: '{{ state_attr("sun.sun", "elevation") < 6 }}'
- platform: template
sensors:
mail_deliveries_message:

5
components/sensors/openhardwaremonitor.yaml

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
- platform: openhardwaremonitor
host: !secret storage_host
- platform: openhardwaremonitor
host: !secret app_runner_host

7
components/sensors/weather.yaml

@ -0,0 +1,7 @@ @@ -0,0 +1,7 @@
- platform: yr
- platform: template
sensors:
is_dark:
friendly_name: 'Is Dark'
value_template: '{{ state_attr("sun.sun", "elevation") < 6 }}'

0
switches.yaml → components/switches/wol.yaml

0
tplink.yaml → components/tplink.yaml

118
configuration.yaml

@ -2,14 +2,14 @@ homeassistant: @@ -2,14 +2,14 @@ homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: 38.239375
longitude: -122.630942
latitude: !secret home_latitude
longitude: !secret home_longitude
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 22.15
elevation: !secret home_elevation
# metric for Metric, imperial for Imperial
unit_system: imperial
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: America/Los_Angeles
time_zone: !secret home_time_zone
# Customization file
customize: !include customize.yaml
# URL settings
@ -21,14 +21,12 @@ homeassistant: @@ -21,14 +21,12 @@ homeassistant:
- type: legacy_api_password
api_password: !secret http_password
# Log Level Information
logger:
default: info
logs:
custom_components.wyzesense: info
wyzesense.gateway: info
# Show links to resources in log and frontend
#introduction:
# Enables the frontend
frontend:
@ -37,18 +35,11 @@ frontend: @@ -37,18 +35,11 @@ frontend:
# Enables configuration UI
config:
# HTTP Web Access
http:
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# base_url: hass.teknik.io
# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
# Optional, allows Home Assistant developers to focus on popular components.
# include_used_components: true
# Discover some devices automatically
discovery:
@ -71,6 +62,12 @@ map: @@ -71,6 +62,12 @@ map:
# Track the sun
sun:
# Wake On LAN
wake_on_lan:
# System Health
system_health:
# Text to speech
tts:
- platform: google_translate
@ -86,69 +83,62 @@ stream: @@ -86,69 +83,62 @@ stream:
ifttt:
key: !secret ifttt_api_key
# FFMpeg
ffmpeg:
ffmpeg_bin: !secret ffmpeg_path
google_assistant:
project_id: !secret google_project_id
service_account: !include google_service_account.json
report_state: true
exposed_domains:
- group
- input_boolean
- scene
- switch
- script
- fan
- light
- cover
- lock
- media_player
- climate
- vacuum
- sensor
# Kodi
media_player:
- platform: kodi
host: !secret kodi_host
username: !secret kodi_username
password: !secret kodi_password
- platform: braviatv
host: !secret bravia_host
name: Living Room TV
- platform: emby
host: !secret emby_host
api_key: !secret emby_api_key
august:
login_method: email
username: !secret august_username
password: !secret august_password
# Google Assistant
google_assistant: !include components/google_assistant.yaml
# Media Players
media_player: !include_dir_merge_list components/media_players
# August Lock
august: !include components/august.yaml
# Spotify
spotify:
client_id: !secret spotify_client_id
client_secret: !secret spotify_client_secret
# Phillups Hue
hue:
bridges:
- host: !secret hue_bridge_host
allow_unreachable: true
tplink: !include tplink.yaml
# TP-Link
tplink: !include components/tplink.yaml
amcrest: !include amcrest.yaml
# Amcrest Cameras
amcrest: !include components/amcrest.yaml
wake_on_lan:
# Binary Sensors
binary_sensor: !include_dir_merge_list components/binary_sensors
system_health:
# Input Booleans
input_boolean: !include_dir_merge_named components/input_booleans
# Input Selects
input_select: !include_dir_merge_named components/input_selects
# Switches
switch: !include_dir_merge_list components/switches
# Sensors
sensor: !include_dir_merge_list components/sensors
# Cameras
camera: !include_dir_merge_list components/cameras
# Group Definitions
group: !include_dir_merge_named components/groups
# Automations (Not in Node-RED)
automation: !include_dir_merge_list components/automations
# Scripts
script: !include_dir_merge_named components/scripts
switch: !include switches.yaml
sensor: !include sensors.yaml
camera: !include cameras.yaml
binary_sensor: !include binary_sensors.yaml
group: !include groups.yaml
automation: !include_dir_merge_list automations
script: !include_dir_merge_named scripts
scene: !include_dir_merge_list scenes
input_boolean: !include input_booleans.yaml
# Scenes
scene: !include_dir_merge_list components/scenes

132
groups.yaml

@ -1,132 +0,0 @@ @@ -1,132 +0,0 @@
default_view:
icon: mdi:home
entities:
- group.climate
kodi_living_room_lights:
name: Kodi Light Dimmer
entities:
- input_boolean.kodi_lights_living_room
t_rooms:
name: Rooms
entities:
- group.living_room
- group.kitchen
- group.hallway
- group.bedroom
- group.front_porch
- group.backyard
- group.entry_way
t_living_room:
name: Living Room
entities:
- group.living_room
- group.kodi_living_room_lights
climate:
name: Climate
entities:
- sensor.yr_symbol
- sun.sun
living_room_lights:
entities:
- light.living_room_lamp_large
- light.living_room_lamp_small
- light.living_room_ceiling_lights
living_room:
name: Living Room
entities:
- light.living_room_lamp_large
- light.living_room_lamp_small
- light.living_room_ceiling_lights
- media_player.un40c7000_samsung_dtv_rcr
- media_player.kodi
front_porch:
name: Front Porch
entities:
- switch.front_porch_light
back_porch:
name: Back Porch
entities:
- switch.back_porch_light
back_patio:
name: Back Patio
entities:
- switch.back_patio_lights
backyard:
name: Backyard
entities:
- group.back_porch
- group.back_patio
bedroom:
name: Bedroom
entities:
- light.hue_white_lamp_2
- light.hue_white_lamp_5
- light.hue_white_lamp_8
- switch.bedroom_ceiling_light
- binary_sensor.motion_bedroom
- sensor.bedroom_temp
- sensor.bedroom_light_level
kitchen:
name: Kitchen
entities:
- light.kitchen_lights
- binary_sensor.motion_kitchen
- sensor.kitchen_temp
- sensor.kitchen_light_level
entry_way:
name: Entry Way
entities:
- light.entry_light
- lock.front_door
hallway:
name: Hallway
entities:
- switch.hallway_light
- binary_sensor.motion_hallway
- sensor.hallway_temp
- sensor.hallway_light_level
- binary_sensor.upper_motion_hallway
- sensor.upper_hallway_temp
- sensor.upper_hallway_light_level
lights:
name: All Lights
entities:
- light.hue_white_lamp_2
- light.living_room_lamp_large
- light.living_room_lamp_small
- light.hue_white_lamp_5
- light.hue_white_lamp_8
- light.living_room_ceiling_lights
- switch.hallway_light
- switch.bedroom_ceiling_light
- switch.back_porch_light
- switch.back_patio_lights
- light.entry_light
- switch.front_porch_lights
- light.kitchen_lights
hallway_motion:
name: Hallway Motion
entities:
- binary_sensor.wyzesense_7793335c
- binary_sensor.wyzesense_779b0869
front_porch_motion:
name: Front Porch Motion
entities:
- binary_sensor.wyzesense_777aac03
kitchen_motion:
name: Kitchen Motion
entities:
- binary_sensor.wyzesense_777aa90c
bedroom_motion:
name: Bedroom Motion
entities:
- binary_sensor.wyzesense_779b1b48

5
input_sliders.yaml

@ -1,5 +0,0 @@ @@ -1,5 +0,0 @@
kodi_dimmer:
name: '% Level'
min: 0
max: 100
step: 5

85
scenes/scenes.yaml

@ -1,85 +0,0 @@ @@ -1,85 +0,0 @@
- name: Living Room normal
entities:
light.living_room_lamp_large:
state: on
transition: 3
brightness_pct: 100
light.living_room_lamp_small:
state: on
transition: 3
brightness_pct: 100
light.living_room_ceiling_lights:
state: on
- name: Living Room dim
entities:
light.living_room_lamp_large:
state: on
transition: 3
brightness_pct: 30
light.living_room_lamp_small:
state: on
transition: 3
brightness_pct: 30
light.living_room_ceiling_lights:
state: off
- name: Living Room off
entities:
light.living_room_lamp_large:
state: off
transition: 3
light.living_room_lamp_small:
state: off
transition: 3
light.living_room_ceiling_lights:
state: off
- name: Kitchen on
entities:
light.kitchen_lights:
state: on
- name: Kitchen off
entities:
light.kitchen_lights:
state: off
- name: Hallway on
entities:
switch.hallway_light:
state: on
- name: Hallway off
entities:
switch.hallway_light:
state: off
- name: Bedroom on
entities:
light.hue_white_lamp_2:
state: on
brightness_pct: 100
light.hue_white_lamp_5:
state: on
brightness_pct: 100
light.hue_white_lamp_8:
state: on
brightness_pct: 100
switch.bedroom_ceiling_light:
state: on
- name: Bedroom off
entities:
light.hue_white_lamp_2:
state: off
light.hue_white_lamp_5:
state: off
light.hue_white_lamp_8:
state: off
switch.bedroom_ceiling_light:
state: off
- name: Front Porch on
entities:
switch.front_porch_light:
state: on
- name: Front Porch off
entities:
switch.front_porch_light:
state: off
Loading…
Cancel
Save