Integrate back door sensor
This commit is contained in:
parent
6a02d32d9d
commit
021e90fa1c
|
@ -34,6 +34,7 @@
|
|||
trigger:
|
||||
- platform: sun
|
||||
event: sunset
|
||||
offset: -02:00:00
|
||||
condition:
|
||||
- condition: zone
|
||||
entity_id: person.joe
|
||||
|
@ -101,5 +102,18 @@
|
|||
action:
|
||||
- service: switch.turn_off
|
||||
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
|
||||
|
|
|
@ -14,8 +14,14 @@ device_tracker:
|
|||
# Discord
|
||||
notify:
|
||||
- platform: discord
|
||||
name: Lab Discord
|
||||
name: lab_discord
|
||||
token: NzIwMDI0NDc5MTE1NTA5ODMx.Xt_9DQ.FPqUrmvBRX50dzqDI1vRTn5DEBQ
|
||||
- name: lab_server
|
||||
platform: group
|
||||
services:
|
||||
- service: lab_discord
|
||||
data:
|
||||
target: '505468673754923049'
|
||||
|
||||
# Motion Detection
|
||||
binary_sensor:
|
||||
|
@ -38,6 +44,25 @@ binary_sensor:
|
|||
or is_state('person.mark', '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
|
||||
automation: !include automations.yaml
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
# Basement light group
|
||||
basement:
|
||||
name: Basement Lights
|
||||
entities:
|
||||
- switch.shop_lights
|
Loading…
Reference in New Issue