The schedule integration provides a way to create a weekly schedule in Home Assistant that can be used to trigger or make decisions in your automations and scripts.
The preferred way to configure a schedule is via the user interface at Settings -> Devices & Services -> Helpers. Click the add button and then choose the Schedule option, or click the My button below.
Adding Schedule to your Home Assistant instance can be done via the user interface, by using this My button:
If the above My button doesn’t work, you can also perform the following steps manually:
Browse to your Home Assistant instance.
In the sidebar click on Settings.
From the configuration menu select: Devices & Services.
In top of the screen click the tab: Helpers.
In the bottom right, click on the Create helper button.
From the list, search and select “Schedule”.
Follow the instruction on screen to complete the set up.
To be able to add Helpers via the user interface you should
default_config: in your
configuration.yaml, it should already
be there by default unless you removed it.
If you removed
default_config: from your configuration,
you must add it back or, alternatively,
schedule: to your
configuration.yaml first, before you can create them via the UI.
Alternatively, a schedule can also be created and configured via YAML configuration. For example:
# Example configuration.yaml entry schedule: thermostat_schedule: name: "Thermostat schedule" monday: - from: "17:00:00" to: "21:00:00" tuesday: - from: "17:00:00" to: "21:00:00" wednesday: - from: "17:00:00" to: "21:00:00" thursday: - from: "17:00:00" to: "21:00:00" friday: - from: "17:00:00" to: "23:00:00" saturday: - from: "07:00:00" to: "10:00:00" - from: "16:00:00" to: "23:00:00" sunday: - from: "07:00:00" to: "21:00:00"
Alias for the schedule. Multiple entries are allowed.
Icon to display in the frontend for this schedule.
A schedule entity’s state exports attributes that can be useful in automations and templates.
||A datetime object containing the next time the schedule is going to change state.|
schedule.reload service allows one to reload the schedule’s configuration without restarting Home Assistant itself.