Skip to content

A Chinese holidays integration for Home-Assistant, helps you set up automation for workdays and non-workdays.

License

Notifications You must be signed in to change notification settings

touero/HaVacation

Repository files navigation

HaVacation

English 中文

A Chinese workday/vacation integration for Home-Assistant, support customize date of workday and vacation.

Installation

Hacs Install

If you have installed hacs, please click:

ByHacs

After restart Home-Assistant, you can find it in the integration menu or click:

add_integration

Manual Install

Go to Releases download the ha_vacation.tar.gz and move it to HomeAssistant/custom_components and execute:

tar -zxvf ha_vacation.tar.gz

And then restart your home-assistant.

In add integration search HaVacation configure it.

Important

Reloading is required after configuring a custom date

Details

After you will get 1-3 sensor:

preview

And then have attribute:

preview

You can customize the date of workday and vacation in the integration configuration.

preview

Tip

The following are the types and descriptions of each attribute.

attribute type description
Updated at str The sensor update datetime, it will update at every day 00:00.
Is workday str Indicates whether it is a working day.
Is vacation str Indicates whether it is a holiday.
Is customize date str This day a custom date entered manually.

The value of Is workday, Is vacation and Is customize date there will be only two changes: true and false.

Important

Reloading is required after configuring a custom date

Start your automation!

Base on

chinese-calendar

LICENSE

MIT @touero

About

A Chinese holidays integration for Home-Assistant, helps you set up automation for workdays and non-workdays.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages