Integrate back door sensor

This commit is contained in:
Kenwood 2021-08-09 17:26:26 -04:00
parent 6a02d32d9d
commit 021e90fa1c
3 changed files with 46 additions and 2 deletions

View File

@ -34,6 +34,7 @@
trigger: trigger:
- platform: sun - platform: sun
event: sunset event: sunset
offset: -02:00:00
condition: condition:
- condition: zone - condition: zone
entity_id: person.joe entity_id: person.joe
@ -101,5 +102,18 @@
action: action:
- service: switch.turn_off - service: switch.turn_off
target: target:
entity_id: switch.on_off_relay_switch entity_id: switch.shop_lights
mode: single
- id: '1628534795820'
alias: Activate Basement Lights on Shop Door Entry
description: ''
trigger:
- platform: state
entity_id: binary_sensor.shop_door_sensor
to: 'on'
condition: []
action:
- service: homeassistant.turn_on
target:
entity_id: group.basement
mode: single mode: single

View File

@ -14,8 +14,14 @@ device_tracker:
# Discord # Discord
notify: notify:
- platform: discord - platform: discord
name: Lab Discord name: lab_discord
token: NzIwMDI0NDc5MTE1NTA5ODMx.Xt_9DQ.FPqUrmvBRX50dzqDI1vRTn5DEBQ token: NzIwMDI0NDc5MTE1NTA5ODMx.Xt_9DQ.FPqUrmvBRX50dzqDI1vRTn5DEBQ
- name: lab_server
platform: group
services:
- service: lab_discord
data:
target: '505468673754923049'
# Motion Detection # Motion Detection
binary_sensor: binary_sensor:
@ -38,6 +44,25 @@ binary_sensor:
or is_state('person.mark', 'home') or is_state('person.mark', 'home')
or is_state('person.dawn', 'home') }} or is_state('person.dawn', 'home') }}
# Sensors
sensor:
- platform: temper
name: Batic Air Temp
# Snowsune's first alert
alert:
shop_door:
name: Shop Door is open
message: The downstairs door is propped <@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
group: !include groups.yaml group: !include groups.yaml
automation: !include automations.yaml automation: !include automations.yaml

View File

@ -0,0 +1,5 @@
# Basement light group
basement:
name: Basement Lights
entities:
- switch.shop_lights