-
Notifications
You must be signed in to change notification settings - Fork 0
Outside Dates Check
Scott Gusler edited this page Feb 13, 2026
·
2 revisions
Checks if the current time is OUTSIDE a date/time range.
Complement to "Between Dates Check" - the sensor is ON when current time is OUTSIDE the specified range, OFF when within it.
- Select "Outside Dates Check"
- Configure:
- Calculation Name: A friendly name
- Start Datetime Entity: Entity with start datetime/time
- End Datetime Entity: Entity with end datetime/time
- Icon: Optional custom icon

{
"type": "outside_dates",
"name": "Outside Business Hours",
"start_datetime_entity": "input_datetime.business_start",
"end_datetime_entity": "input_datetime.business_end"
}Result: ON during evenings/weekends, OFF during 9 AM - 5 PM
{
"type": "outside_dates",
"name": "After Quiet Hours",
"start_datetime_entity": "input_datetime.quiet_start",
"end_datetime_entity": "input_datetime.quiet_end"
}Set:
- Start: 22:00:00 (10 PM)
- End: 06:00:00 (6 AM)
Result: ON from 6 AM - 10 PM (can use sounds), OFF during quiet hours
automation:
- alias: "Play notification sounds only outside quiet hours"
trigger:
platform: state
entity_id: binary_sensor.doorbell
to: "on"
condition:
- condition: state
entity_id: binary_sensor.after_quiet_hours
state: "on"
action:
service: media_player.play_media
data:
media_content_type: music
media_content_id: doorbell_chimePrevious: Back to Between Dates →