92 lines
2.0 KiB
YAML
Executable File
92 lines
2.0 KiB
YAML
Executable File
|
|
# Configure a default setup of Home Assistant (frontend, api, etc)
|
|
default_config:
|
|
|
|
# Text to speech
|
|
tts:
|
|
- platform: google_translate
|
|
|
|
# Wake on lan
|
|
wake_on_lan:
|
|
|
|
# Google maps
|
|
device_tracker:
|
|
- platform: google_maps
|
|
username: "kenwood364@gmail.com"
|
|
|
|
# Discord
|
|
notify:
|
|
- platform: discord
|
|
name: lab_discord
|
|
token: !secret discord_token
|
|
- name: lab_server
|
|
platform: group
|
|
services:
|
|
- service: lab_discord
|
|
data:
|
|
target: '505468673754923049'
|
|
|
|
# Motion Detection
|
|
binary_sensor:
|
|
- platform: ffmpeg_motion
|
|
name: Foyer Motion Detection
|
|
input: !secret foyer_camera_url
|
|
- platform: ffmpeg_motion
|
|
name: Front Porch
|
|
input: !secret front_porch_camera_url
|
|
- platform: ffmpeg_motion
|
|
name: Lab Camera
|
|
input: !secret lab_camera_url
|
|
|
|
# Device tracker
|
|
- platform: template
|
|
sensors:
|
|
people_home:
|
|
value_template: >-
|
|
{{ is_state('person.joe', 'home')
|
|
or is_state('person.mark', 'home')
|
|
or is_state('person.dawn', 'home') }}
|
|
|
|
# Alerts
|
|
alert:
|
|
shop_door: # Alert if the shop door is left open
|
|
name: Shop Door is open
|
|
message: Alert! The downstairs door is propped open <@377660880323608576>!
|
|
done_message: The shop door is closed again.
|
|
entity_id: binary_sensor.shop_door_sensor
|
|
state: "on"
|
|
repeat: 15
|
|
can_acknowledge: true
|
|
skip_first: true
|
|
notifiers:
|
|
- lab_server
|
|
|
|
# Octoprint
|
|
octoprint:
|
|
host: 10.85.5.31
|
|
api_key: !secret octoprint_api_key
|
|
|
|
# Projectors and media players
|
|
media_player:
|
|
- platform: pjlink
|
|
name: Lab Projector
|
|
host: 10.85.5.33
|
|
|
|
# Poe switch!
|
|
switch:
|
|
- platform: telnet
|
|
switches:
|
|
lab_camera_power:
|
|
resource: 10.85.3.96
|
|
port: 22
|
|
command_on: "\n5\nconfig\ninterface 2 power"
|
|
command_off: "no interface 2 power"
|
|
timeout: 2
|
|
|
|
|
|
group: !include groups.yaml
|
|
automation: !include automations.yaml
|
|
script: !include scripts.yaml
|
|
scene: !include scenes.yaml
|
|
camera: !include cameras.yaml
|