All Projects → pinkywafer → Calendarific

pinkywafer / Calendarific

Licence: MIT license
Calendarific holiday sensor for Home Assistant

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Calendarific

ical-sensor-homeassistant
an iCal Sensor for Home Assistant
Stars: ✭ 42 (+200%)
Mutual labels:  sensor, home-assistant
Mini Graph Card
Minimalistic graph card for Home Assistant Lovelace UI
Stars: ✭ 1,370 (+9685.71%)
Mutual labels:  sensor, home-assistant
Home Assistant Config
🏠 Fully documented Home Assistant configuration for a smart-looking place. 😎 Be sure to ⭐️ my repo and copy ideas!
Stars: ✭ 258 (+1742.86%)
Mutual labels:  sensor, home-assistant
HADailySensor
Sensor for Home Assistant that gets reset at midnight
Stars: ✭ 20 (+42.86%)
Mutual labels:  sensor, home-assistant
Xiaomi miot raw
Universal Xiaomi MIoT integration for Home Assistant
Stars: ✭ 240 (+1614.29%)
Mutual labels:  sensor, home-assistant
read your meter
Home Assistant sensor to read water meter
Stars: ✭ 27 (+92.86%)
Mutual labels:  sensor, home-assistant
Ha Average
Average Sensor for Home Assistant
Stars: ✭ 79 (+464.29%)
Mutual labels:  sensor, home-assistant
VisonicAlarm-for-Hassio
Visonic/Bentel/Tyco Alarm System integrtation for Home Assistant
Stars: ✭ 14 (+0%)
Mutual labels:  sensor, home-assistant
Battery State Card
Battery state card for Home Assistant
Stars: ✭ 184 (+1214.29%)
Mutual labels:  sensor, home-assistant
Home Assistant Config Fr
🏠Configuration de Home Assistant en français. 👨🏻‍💻 N'hésitez pas à ⭐ mon repo et à copier les bonnes idées ! 🇨🇵
Stars: ✭ 175 (+1150%)
Mutual labels:  sensor, home-assistant
Home-Assistant-custom-components-DPC-Alert
Italy Meteo-hydro alert and hydrogeological phenomena Civil Protection (Protezione Civile). In this custom component you can find the vigilance Bulletin and the Bulletin of national hydrogeological and hydraulic criticalities. They allow to check whether in your current location there will be criticalities/warnings related to weather-hydrogeolog…
Stars: ✭ 31 (+121.43%)
Mutual labels:  sensor, home-assistant
uptime-card
Minimalistic uptime card for Home Assistant Lovelace UI
Stars: ✭ 152 (+985.71%)
Mutual labels:  sensor, home-assistant
Pysmartnode
Micropython Smarthome framework
Stars: ✭ 58 (+314.29%)
Mutual labels:  sensor, home-assistant
Nexus433
433MHz temperature and humidity sensor receiver that integrates with home automation systems.
Stars: ✭ 137 (+878.57%)
Mutual labels:  sensor, home-assistant
ha-iaquk
Indoor Air Quality Sensor Component for Home Assistant
Stars: ✭ 57 (+307.14%)
Mutual labels:  sensor, home-assistant
ha-gismeteo
Gismeteo Weather Provider for Home Assistant
Stars: ✭ 84 (+500%)
Mutual labels:  sensor, home-assistant
nyxx
Wrapper around Discord API for Dart
Stars: ✭ 217 (+1450%)
Mutual labels:  api-client
tesla
Tesla custom integration for Home Assistant. This requires a refresh token be generated by third-party apps to login.
Stars: ✭ 145 (+935.71%)
Mutual labels:  home-assistant
zigbee
Database of Zigbee devices compatible with third party gateways: ZHA, deCONZ, Zigbee2MQTT, Tasmota, ZiGate, ioBroker,
Stars: ✭ 117 (+735.71%)
Mutual labels:  home-assistant
buttercms-go
Golang CMS and blog engine https://buttercms.com
Stars: ✭ 37 (+164.29%)
Mutual labels:  api-client

Calendarific

hacs_badge GitHub release (latest by date) GitHub Release Date GitHub

Maintenance GitHub issues

Buy me a coffee

Support Pinkywafer on Patreon

The 'Calendarific' component is a Home Assistant custom sensor which counts down to public holidays and observances, by querying the Calendarific api

State Returned:

  • The number of days remaining to the next occurance.

Attributes (both are provided by the Calendarific api):

  • date: The next date of the holiday (formatted by date_format configuration option if set)
  • description: The description of the holiday.

Table of Contents

Installation

MANUAL INSTALLATION

  1. Download the calendarific.zip file from the latest release.
  2. Unpack the release and copy the custom_components/calendarific directory into the custom_components directory of your Home Assistant installation.
  3. Configure the calendarific platform
  4. Restart Home Assistant.
  5. Configure sensors either in the configuration.yaml or by using the integrations page

INSTALLATION VIA HACS

  1. Ensure that HACS is installed.
  2. Search for and install the "calendarific" integration.
  3. Configure the calendarific platform.
  4. Restart Home Assistant.
  5. Configure sensors either in the configuration.yaml or by using the integrations page

Platform Configuration

You will need an API key from Calendarific.com Go to the sign up page and open a new account. A free tier account is limited to 1000 api calls per month. This integration will make two calls per day (and two on home assistant start)

The Calendarific platform MUST be configured in the configuration.yaml file.

# Example configuration.yaml platform entry
calendarific:
  api_key: YOUR_API_KEY
  country: GB
  state: GB-WLS

Platform configuration parameters

Attribute Optional Description
api_key No your api key from calendarific.com
country No your country code here is a list of supported countries
state Yes your state code (ISO 3166-2 subdivision code) [USA] [UK] note the state code is for the country in the uk (counties not supported) or the state in the us. If omitted, only national holidays will be displayed

Sensor Configuration

Individual sensors can be configured using Config flow or in configuration.yaml:

Config Flow

In Configuration/Integrations click on the + button, select Calendarific and configure the options on the form (The available holidays will automatically appear on the list if the platform was configured correctly in the above step).

configuration.yaml

Add calendarific sensor in your configuration.yaml. The following example adds two sensors - New Year's Day and Christmas Day (Note that these must be entered EXACTLY as they are on the Calendarific server)

# Example configuration.yaml sensor entry
sensor:
  - platform: calendarific
    holiday: New Year's Day
  - platform: calendarific
    holiday: Christmas Day

Sensor Configuration Parameters

Attribute Optional Description
holiday No Name of holiday provided by calendarific api
name Yes Friendly name Default: Holiday name
icon_normal Yes Default icon Default: mdi:calendar-blank
icon_today Yes Icon if the holiday is today Default: mdi:calendar-star
days_as_soon Yes Days in advance to display the icon defined in icon_soon Default: 1
icon_soon Yes Icon if the holiday is 'soon' Default: mdi:calendar
date_format Yes formats the returned date Default: '%Y-%m-%d' for reference, see http://strftime.org/
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].