This blueprint for Home Assistant checks if tomorrow is a workday or school day and updates input boolean(s) accordingly.
Two versions available:
- Standard Version (
rubicon-ha-tomorrow-workday-blueprint.yaml): Simple, single output boolean - Enhanced Version (
rubicon-ha-tomorrow-workday-blueprint-enhanced.yaml): Separate outputs + real-time state triggers
- Supports multiple workday and school day binary sensors
- Combines all sensors into a single output boolean
- Time-based trigger only
- Simple and straightforward setup
- Separate outputs for work night and school night status
- Real-time state triggers - updates immediately when sensor states change
- Single workday and single school day sensor
- Based on proven automation patterns
- More responsive to configuration changes
- You want to combine multiple work/school sensors into one output
- You only need daily checks at a specific time
- You prefer simpler configuration
- You want separate outputs for work night and school night
- You need real-time updates when sensor states change during the day
- You want behavior matching the proven "Update School/Work Night" automation pattern
- Copy your chosen blueprint file into your Home Assistant
blueprints/automation/directory:- Standard:
rubicon-ha-tomorrow-workday-blueprint.yaml - Enhanced:
rubicon-ha-tomorrow-workday-blueprint-enhanced.yaml
- Standard:
- Reload automations in Home Assistant.
When setting up an automation with this blueprint, you will configure:
- Workday Binary Sensors: One or more binary sensors for workday status
- School Day Binary Sensors: One or more binary sensors for school day status
- Output Input Boolean: A single input boolean to indicate tomorrow's status (on = workday/schoolday, off = neither)
- Trigger Time: Time for the automation to run (default:
00:01:00)
Example:
blueprint:
path: rubicon-ha-tomorrow-workday-blueprint/rubicon-ha-tomorrow-workday-blueprint.yaml
input:
workday_sensors:
- binary_sensor.work_day
schoolday_sensors:
- binary_sensor.school_day
output_boolean: input_boolean.tomorrow_is_a_workday
trigger_time: "00:01:00"When setting up an automation with this blueprint, you will configure:
- Workday Binary Sensor: The binary sensor for workday status
- School Day Binary Sensor: The binary sensor for school day status
- Work Night Input Boolean: Input boolean for work night status
- School Night Input Boolean: Input boolean for school night status
- Trigger Time: Time for the automation to run (default:
00:00:00) - Enable Real-Time State Triggers: Toggle for real-time updates (default: enabled)
Example:
blueprint:
path: rubicon-ha-tomorrow-workday-blueprint/rubicon-ha-tomorrow-workday-blueprint-enhanced.yaml
input:
workday_sensor: binary_sensor.work_day
schoolday_sensor: binary_sensor.school_day
work_night_boolean: input_boolean.work_night
school_night_boolean: input_boolean.school_night
trigger_time: "00:00:00"
enable_state_triggers: trueBoth blueprints require the following:
- Home Assistant version 2023.7.0 or higher (for
response_variablesupport) - Home Assistant Workday Integration: Provides binary sensors for workday status. See Workday Integration for setup details.
- Home Assistant Binary Sensors: For workday and school day status.
- Input Boolean(s): Configurable entities for toggling tomorrow's workday status.
✅ Fixed critical service call bug - Now correctly calls workday.check_date for each sensor individually
✅ Fixed response data handling - Proper template logic for aggregating results
✅ Added min_version - Ensures compatibility (requires HA 2023.7.0+)
✅ Updated source_url - Correct repository reference
✅ Improved documentation - Better input descriptions and examples
✨ Created based on proven automation pattern
✨ Separate outputs - Individual booleans for work night and school night
✨ Real-time updates - State triggers ensure immediate updates when sensors change
✨ Correct service call implementation - Properly uses workday.check_date response data
✨ Follows HA best practices - Modern blueprint schema with proper metadata
Please create an issue in this repository for questions, feature requests, or issues.
This project is licensed under the MIT License.
MIT License
Copyright (c) 2024 Rubicon
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.