Holiday
The Holiday integration allows you to create a calendar of holidays in Home Assistant for powering automations.
It uses the Python module holidays
A calendar entity has a state and attributes that represent the next upcoming event (only). A calendar trigger is a much more flexible way to power automations with fewer limitations than using the entity state.
Some countries provides additional categories to be configured besides the public holidays. See the details for each country in the holidays
配置
要将 Holiday integration 添加到您的 Home Assistant 实例中,请使用此 My 按钮:
手动配置步骤
如果上述 My 按钮不起作用,您也可以手动执行以下步骤:
-
浏览到您的 Home Assistant 实例。
-
转到
设置 > 设备与服务。 -
在右下角,选择
Add Integration 按钮。 -
从列表中选择 Holiday。
-
按照屏幕上的说明完成设置。
Holiday calendar automations
Individual holiday Events are what powers automations such as:
- Turn on the Christmas lights at the start of Christmas Day.
- Prevent your covers from being opened on public holidays.
For an overview, refer to calendar automations. You can use calendar trigger variables in a condition or action such as the event summary
, description
, location
and in other places.