This configuration creates a comprehensive control system for a towel heater with multiple scheduling options and safety features.
-
Manual Control
- Direct on/off toggle switch
- Safety timer that automatically turns off the heater after 4 hours
-
Scheduled Operation
- One-time schedule: Run the heater once at a specific time
- Workday schedule: Automatically run the heater on workdays at a set time
- Timer: A 4-hour safety timer that turns off the heater automatically
- Input Fields:
- Time selectors for one-time and workday schedules
- Adjustable run time setting (3-5 hours)
- Toggle switches for manual control and schedule activation
- Calculated Start Times: The system automatically calculates when to start the heater (1 hour before the set time)
- Status Indicators:
- Current heater status
- Time until next scheduled use
- Calculated start and stop times
- Automatic shutoff when the timer expires
- Timer restart when Home Assistant restarts if the heater is already on (to make sure the timer ends and thereby shuts of the heater)
- Automatic disabling of one-time schedule after completion
The system includes multiple automations to handle:
- Turning the heater on/off based on manual control
- Starting/stopping based on schedules
- Synchronizing UI state with actual heater state
- Safety timer management
- Recovery after system restart
You physical device that controls power to the towel heater needs to be added to the code. Replace "switch.towel_heater" in the code with our switch. My configuration uses my switch.towel_heater as a manual control and as a visual cue if the heater is on or of, the automation is set up for the switch to be used that way.
