Skip to content

Latest commit

 

History

History
executable file
·
32 lines (26 loc) · 2.23 KB

File metadata and controls

executable file
·
32 lines (26 loc) · 2.23 KB

Guest PIN Codes

Node application that dynamically creates a PIN code for guest house access for events on a dedicated guest Google Calendar. PIN codes are added to the description of calendar events and enabled only for the duration of the event. To grant a guest access, simply create an event on the dedicated guest Google calendar and invite your guests to the event. PIN codes will be added to the description of the event once the event starts and will email all invitees for the addition of the PIN.

Prerequesite Setup

  1. Home Assistant and MQTT are setup and connected.
  2. A dedicated Google calendar; all events on this calendar will be updated with PIN codes.
  3. Create Vault secrets
    • yarn initialize-secrets --scope @ha/guest-pin-codes
  4. Set Vault secrets

User Flow

Calendar events are updated on a 5 minute interval and events are scheduled with PIN codes every minute.

  1. Create an event on the dedicated Google calendar.
    • Typically events will start in the future.
    • Events staring in the past that are currently active are also supported.
  2. Once the event starts, a PIN is dynamically assigned to the event and enabled for the event.
    • PINs are added to the description of the calendar event.
  3. Once the event ends, the PIN is removed from the description and disabled.