-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Scott Gusler edited this page Feb 13, 2026
·
16 revisions
![]()
Welcome to the Clockwork integration for Home Assistant! This comprehensive guide will walk you through all the features and calculations available.
- Timespan Calculation
- Offset Calculation
- Datetime Offset
- Date Range Duration
- Season Detection
- Month Detection
- Holiday Countdown
- Between Dates Check
- Outside Dates Check
- Custom Holidays
- Install Clockwork via HACS
- Go to Settings > Devices & Services > Create Automation
- Choose "Clockwork" from the list
- Follow the UI to add your first calculation
Each calculation type has its own configuration options available through the UI. No YAML editing is required!
Clockwork provides an intuitive interface for managing all your calculations:
The main configuration menu shows all available options:

Select existing calculations to edit their settings:

Remove calculations you no longer need:

Clockwork creates different types of sensors depending on the calculation:
- Numeric Sensors: Timespan, Date Range Duration, Holiday Countdown
- Binary Sensors: Offset, Season, Month, Between Dates, Outside Dates
- Timestamp Sensors: Datetime Offset

- No YAML Required: All configuration through user-friendly UI
- Dynamic Updates: Real-time updates for time-based calculations
- Flexible Triggering: Control which state changes trigger offset calculations
- Custom Holidays: Define your own holidays for countdown calculations
- Timezone Aware: Automatic timezone handling for datetime comparisons
- Automation Delays: Use offset calculations to trigger automations after a delay
- Time-Based Automation: Use timespan to measure how long something has been in a state
- Business Hours: Use between dates to check if current time is within business hours
- Seasonal Logic: Use season detection for seasonal automations
- Countdown: Use holiday countdown to create countdown automations