Skip to content

Latest commit

 

History

107 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

img

Chinese Almanac for Home Assistant

Infuse your smart home with the wisdom and charm of traditional Chinese calendar culture




Version

Home Assistant

Maintenance

License

Python

Code Scan


✨ Key Features

  • 📅 Real-time display of lunar calendar date and its Gregorian counterpart
  • 🌱 Accurate 24-solar-term forecasts linked to weather changes
  • 🍀 Daily auspicious/inauspicious guidance, taboos, and lunar-phase astronomy
  • ⏰ Live updating of traditional two-hour periods to guide daily scheduling
  • 🐲 Show personal attributes like Chinese zodiac and Western horoscope, paired with daily fortune insights
  • 🎯 Custom event management to log birthdays, anniversaries, etc., with luck warnings
  • 🎂 Generate a BaZi chart from birth data and merge zodiac & horoscope forecasts
  • 🎉 Smart alerts for traditional Chinese festivals and key dates
  • 📡 Adjustable refresh frequency for flexible update intervals

🛠 Installation

Quick Install

  1. Add the HACS repository https://github.com/knoop7/ha_laohuangli and install
  2. Or click → Quick Link
  3. Restart your Home Assistant instance
  4. In the Integrations page search for Chinese Almanac or chinese and add the integration

Manual Install

  1. Download the release ZIP, extract, and copy the folder into custom_components in your Home Assistant config directory
  2. Restart your Home Assistant instance
  3. In the Integrations page search for Chinese Almanac or chinese and add the integration

📊 Available Sensors

  • Basic Info: date, lunar date, weekday, today’s festivals, week number
  • Traditional Calendar: BaZi, solar terms, seasons, two-hour periods, period luck
  • Personal Attributes: zodiac clashes, constellation, lunar mansion, Rokuyō, daily fortune direction
  • Cultural Lore: Pengzu taboos, twelve deities, 28 lunar mansions, today’s trines & hexes, three-life physiognomy
  • Feng Shui & Elements: Nayin element, 64 hexagrams, flying stars, auspicious directions, daily fetal spirit
  • Luck Guidance: today’s auspicious spirits, ominous spirits, luck level, suitable & unsuitable activities
  • Health & Wellness: meridian flow by hour, hour scale
  • Event Reminders: custom events such as birthdays and anniversaries
  • Birthday Manager: family birthdays, BaZi records & reminders, AI predictions
  • Guanyin Oracle Lots: removed; roll back to v10.31 to restore

🖥 Usage Examples

After installation and configuration, you can freely use these sensors in your Home Assistant dashboards.
The Chinese Almanac card presents rich traditional calendar data in a clear, intuitive layout:
img

Large digits show the current date

Tap the left/right arrows to move to the previous/next day; tap the date itself to open a date-picker for quick jumps.
Displays the current lunar date and BaZi info. Enable/disable individual modules, drag to reorder, lock/unlock layout, and reset to default with one click.

Info Module Area

Six-grid layout; each module groups related data:
  • Rhythm & Lunar: week number, season, solar term, constellation, moon phase
  • Divination: Nayin, lunar mansion, flying star, 28 mansions, twelve deities
  • Hour & Fortune: daily fortune direction, two-hour period, meridian, 64 hexagrams, luck
  • Kongming Bird Signs: Rokuyō, trines, hexes, bird signs, zodiac clashes
  • Taboos & Directions: fetal spirit, Pengzu taboos, auspicious directions
  • Spirits & Luck: auspicious spirits, ominous spirits, luck level

Sample card configuration

type: custom:almanac-card
title: Chinese Almanac
prefix: chinese_almanac_

About

One-stop | Traditional Chinese calendar information Home Assistant custom components allow you to feel the charm of traditional culture in a modern smart home system.

Topics

Resources

Stars

69 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages