Move zones to package

This commit is contained in:
2022-05-04 16:29:55 -07:00
parent f5338c3c83
commit b38998be8d
5 changed files with 31 additions and 7 deletions

3
.gitignore vendored
View File

@@ -11,9 +11,10 @@ adb/
deps/ deps/
tts/ tts/
__pycache__/ __pycache__/
automations.yaml
custom_components/ custom_components/
!custom_components/hacs !custom_components/hacs
include/
!include/zones.yaml
secrets.yaml secrets.yaml
home-assistant*.log* home-assistant*.log*
home-assistant*.db* home-assistant*.db*

View File

@@ -63,9 +63,6 @@ logger:
# - mobile_app # - mobile_app
############################################################################### ###############################################################################
# Automation File for Configuration UI
automation: !include automations.yaml
# Enable the Configuration UI # Enable the Configuration UI
config: config:
@@ -110,7 +107,10 @@ zeroconf:
# Discover some devices automatically # Discover some devices automatically
discovery: discovery:
# Setup Zones # Setup Includes for UI
automation: !include include/automations.yaml
scene: !include include/scenes.yaml
script: !include include/scripts.yaml
zone: !include include/zones.yaml zone: !include include/zones.yaml
# Setup InfluxDB Logging # Setup InfluxDB Logging

View File

@@ -4,7 +4,6 @@
# Automations for Bedroom Nighstand Lamps # Automations for Bedroom Nighstand Lamps
automation: automation:
- alias: Jen Nighstand Lamp (Package) - alias: Jen Nighstand Lamp (Package)
description: ''
mode: single mode: single
trigger: trigger:
- device_id: 98d9a86c7838fdbfcbdaeceef9a98f36 - device_id: 98d9a86c7838fdbfcbdaeceef9a98f36
@@ -20,7 +19,6 @@ automation:
domain: light domain: light
- alias: J.P. Nighstand Lamp (Package) - alias: J.P. Nighstand Lamp (Package)
description: ''
mode: single mode: single
trigger: trigger:
- device_id: f223ed24fe135bfd6bb7006dddb6b9f8 - device_id: f223ed24fe135bfd6bb7006dddb6b9f8

3
packages/zones/README.md Normal file
View File

@@ -0,0 +1,3 @@
# Zones Package
This package contains pre-defined zone definitions.

22
packages/zones/main.yaml Normal file
View File

@@ -0,0 +1,22 @@
# Zones Package
# -----------------------------------------------------------------------------
# Zone Overrides
zone:
- name: Home
latitude: !secret home_latitude
longitude: !secret home_longitude
radius: 25
icon: mdi:home
- name: !secret jp_work_name
latitude: !secret jp_work_latitude
longitude: !secret jp_work_longitude
radius: 250
icon: mdi:briefcase
- name: !secret jen_work_name
latitude: !secret jen_work_latitude
longitude: !secret jen_work_longitude
radius: 250
icon: mdi:briefcase