From 021e90fa1c0f988b456c56404a325ddd6fe0299c Mon Sep 17 00:00:00 2001 From: KenwoodFox Date: Mon, 9 Aug 2021 17:26:26 -0400 Subject: [PATCH] Integrate back door sensor --- automations.yaml | 16 +++++++++++++++- configuration.yaml | 27 ++++++++++++++++++++++++++- groups.yaml | 5 +++++ 3 files changed, 46 insertions(+), 2 deletions(-) diff --git a/automations.yaml b/automations.yaml index 1bb7a55..592325a 100755 --- a/automations.yaml +++ b/automations.yaml @@ -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 diff --git a/configuration.yaml b/configuration.yaml index b3e8c37..684dd73 100755 --- a/configuration.yaml +++ b/configuration.yaml @@ -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 diff --git a/groups.yaml b/groups.yaml index e69de29..5f3a436 100755 --- a/groups.yaml +++ b/groups.yaml @@ -0,0 +1,5 @@ +# Basement light group +basement: + name: Basement Lights + entities: + - switch.shop_lights