Add private zone entry code reminders (#801)

master
Carlo Costanzo 4 weeks ago
parent d58f81963f
commit e171465e6a

@ -29,6 +29,7 @@ Event-driven automations that sit outside the self-contained packages. These tie
| --- | --- |
| [![YAML source: garage_entry_light](https://img.shields.io/static/v1?label=YAML&message=garage_entry_light&color=lightgrey&logo=github&logoColor=181717)](garage_entry_light.yaml) | Z-Wave door sensor + motion-controlled garage entry lighting from the garage automation walkthrough. [![Watch on YouTube](https://img.shields.io/badge/Watch-YouTube-FF0000?logo=youtube&logoColor=white)](https://youtu.be/wFO0H5zgnzk) |
| [![YAML source: driveway_parked_car](https://img.shields.io/static/v1?label=YAML&message=driveway_parked_car&color=lightgrey&logo=github&logoColor=181717)](driveway_parked_car.yaml) | Frigate driveway-zone alert that notifies both parents with a camera preview, sends its household announcement through the LLM speech engine, and starts a full-screen Driveway takeover on both kiosks after the zone's 30-second loitering threshold. The camera clears with occupancy or after ten minutes. [![Watch on YouTube](https://img.shields.io/badge/Watch-YouTube-FF0000?logo=youtube&logoColor=white)](https://youtu.be/X9qrywP3XS0) [![vCloudInfo Blog Post](https://img.shields.io/static/v1?label=vCloudInfo&message=Blog%20Post&color=21759B&logo=wordpress&logoColor=white)](https://www.vcloudinfo.com/2026/09/home-assistant-frigate-driveway-car-alert.html) | Blue car sender icon: [![Notification icon tip](https://img.shields.io/badge/Icons-YouTube-FF0000?logo=youtube&logoColor=white)](https://youtu.be/TMfdxv-WprM) [![Notification icon guide](https://img.shields.io/static/v1?label=Icons&message=Blog%20Post&color=21759B&logo=wordpress&logoColor=white)](https://www.vcloudinfo.com/2026/10/home-assistant-ios-notification-icons.html)
| [![YAML source: zone_access_code_reminders](https://img.shields.io/static/v1?label=YAML&message=zone_access_code_reminders&color=lightgrey&logo=github&logoColor=181717)](zone_access_code_reminders.yaml) | Private per-person notifications for Adriano Gym and DeSantis Home, with stable tags that replace the previous push and codes loaded from `secrets.yaml`. |
| [![YAML source: kitchen_sink_circadian](https://img.shields.io/static/v1?label=YAML&message=kitchen_sink_circadian&color=lightgrey&logo=github&logoColor=181717)](kitchen_sink_circadian.yaml) | Sink light follows a soft morning, warm daytime, and sunset color-temperature schedule, stays off while TV is playing, and uses Kitchen Show illuminance to avoid new automatic turn-ons in an already-bright room. |
| [![YAML source: dark_rainy_day](https://img.shields.io/static/v1?label=YAML&message=dark_rainy_day&color=lightgrey&logo=github&logoColor=181717)](dark_rainy_day.yaml) | Weather-aware lighting helper that also confirms the occupied first floor is actually dim through Kitchen Show illuminance. |
| [![YAML source: dash_buttons](https://img.shields.io/static/v1?label=YAML&message=dash_buttons&color=lightgrey&logo=github&logoColor=181717)](dash_buttons.yaml) | Amazon Dash buttons repurposed as quick triggers. |

@ -0,0 +1,87 @@
######################################################################
# @CCOSTAN - Follow Me on X
# For more info visit https://www.vcloudinfo.com/click-here
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# -------------------------------------------------------------------
# Zone Access Code Entry Reminders - private mobile notifications.
# Related Issue: 801
# Notify the entering person's phone with the relevant access code.
# -------------------------------------------------------------------
# Notes: Stable per-zone notification tags replace the prior push on that phone.
# Notes: Codes stay in password-mode input_text helpers sourced from secrets.yaml.
######################################################################
- alias: 'Zone Access Code Entry Reminders'
id: 0d78ce70-4d18-41c9-9a94-b9ce136e3e88
description: >-
Send Carlo or Stacey a private Home Assistant notification when they enter
Adriano Gym or DeSantis Home, replacing the previous notification for that zone.
mode: parallel
max: 10
triggers:
- trigger: zone.entered
target:
entity_id: person.carlo
options:
zone: zone.gym
id: adriano_gym_carlo
- trigger: zone.entered
target:
entity_id: person.stacey
options:
zone: zone.gym
id: adriano_gym_stacey
- trigger: zone.entered
target:
entity_id: person.carlo
options:
zone: zone.desantis_home
id: desantis_home_carlo
- trigger: zone.entered
target:
entity_id: person.stacey
options:
zone: zone.desantis_home
id: desantis_home_stacey
actions:
- choose:
- conditions:
- condition: trigger
id:
- adriano_gym_carlo
- adriano_gym_stacey
- condition: template
value_template: >-
{{ states('input_text.adriano_gym_access_code') | trim | length > 0 }}
sequence:
- action: script.notify_engine
continue_on_error: true
data:
who: "{{ 'stacey' if trigger.id == 'adriano_gym_stacey' else 'carlo' }}"
title: Adriano Gym Access Code
value1: >-
Adriano Gym access code:
{{ states('input_text.adriano_gym_access_code') }}.
group: '360_alerts'
tag: adriano_gym_access_code
- conditions:
- condition: trigger
id:
- desantis_home_carlo
- desantis_home_stacey
- condition: template
value_template: >-
{{ states('input_text.desantis_home_access_code') | trim | length > 0 }}
sequence:
- action: script.notify_engine
continue_on_error: true
data:
who: "{{ 'stacey' if trigger.id == 'desantis_home_stacey' else 'carlo' }}"
title: DeSantis Home Access Code
value1: >-
DeSantis Home access code:
{{ states('input_text.desantis_home_access_code') }}.
group: '360_alerts'
tag: desantis_home_access_code

@ -0,0 +1,29 @@
######################################################################
# @CCOSTAN - Follow Me on X
# For more info visit https://www.vcloudinfo.com/click-here
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# -------------------------------------------------------------------
# Private access-code helpers for gym and DeSantis Home reminders.
# Related Issue: 801
# Secret values are loaded from the ignored config/secrets.yaml file.
# -------------------------------------------------------------------
# Notes: Password mode obscures helper values in the frontend; initial values
# come from secrets.yaml at startup and are excluded from recorder history.
######################################################################
input_text:
adriano_gym_access_code:
name: Adriano Gym Access Code
min: 0
max: 64
initial: !secret adriano_gym_access_code
mode: password
icon: mdi:key-variant
desantis_home_access_code:
name: DeSantis Home Access Code
min: 0
max: 64
initial: !secret desantis_home_access_code
mode: password
icon: mdi:key-variant
Loading…
Cancel
Save

Powered by TurnKey Linux.