Overview
Many smart home devices can send alerts for various events, but these notifications can disturb sleep. This capability helps by muting noncritical alerts during designated sleep hours, ensuring a peaceful environment while still keeping critical alerts active.
Benefits
- Improved sleep quality for residents by reducing unnecessary disturbances.
- Increased control over home capability notifications, allowing for a personalized experience.
- Enhanced safety as critical alerts remain active, ensuring timely responses to urgent situations.
Intent
The purpose of this capability is to provide a customizable alert system that respects the user’s sleep schedule. It achieves a balance between necessary home notifications and personal rest, promoting well-being in the home environment.
Preconditions
- Home Assistant configured and running.
- Presence detection system active to determine sleep hours.
- Defined sleep schedule set within Home Assistant.
- Home Assistant installed and configured.
- Integration available and authenticated: Zigbee2MQTT.
- Device installed and reachable: Motion Detection.
Actors
- Homeowner managing alert settings
- Family members affected by sleep disturbances
- Guests staying overnight
Trigger
The capability is triggered by the time of day, specifically when the defined sleep hours begin.
Workflow Diagram
flowchart TD
A[Time Reached: Sleep Hours] -->|check| B{{Are Alerts Critical?}}
B -->|Yes| C[Send Alert]
C --> D[Alert Received]
B -->|No| E[Mute Alert]
E --> F[No Disturbance]
Workflow Description
1. Define Sleep Schedule
The homeowner sets specific sleep hours in the Home Assistant interface.
2. Activate Presence Detection
Home Assistant uses presence detection to confirm if someone is home during the defined sleep hours.
3. Check Alert Type
When an alert is triggered, the system checks if it is classified as critical or noncritical.
4. Mute or Send Alert
If the alert is noncritical and during sleep hours, it is muted; otherwise, it is sent to the homeowner.
5. Log Alert Activity
All alerts, whether sent or muted, are logged for review in the Home Assistant dashboard.
Postconditions
After the capability completes, noncritical alerts are muted during sleep hours, allowing residents to sleep undisturbed while critical alerts remain active.
Optional Enhancements
- Integrate with smart lighting to create a visual alert system for critical notifications.
- Allow customization of alert types that can bypass the mute setting.
- Implement a snooze feature for alerts that can be temporarily delayed during sleep hours.
Recommended Components
| Recommended Applications | Recommended Integrations | Recommended Devices |
|---|---|---|
| Home Assistant | Zigbee2MQTT, Z-Wave JS | Motion Detection, Temperature Sensors |
Source Examples
- Home Assistant (platform)