holiday device for pimatic home automation
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
device-config-schema.coffee
holidays-config-schema.coffee
holidays.coffee
package.json

README.md

pimatic-holidays

This Pimatic plugin provides a device and also a variable that shows if the current day is a holiday or not.

I was missing this information as i do not want to get woken up on a public holiday. :) So i thought why not trying to write a plugin for it.

It's using "date-holiday" to get the information. https://www.npmjs.com/package/date-holidays

Set country and state variables according to the list on date-holiday's site...

As its my first step into coffescript and writing pimatic-plugins it still has lots of errors. But anyway, so far it seems to work and i'm trying to fix the issues...

Installation:

  • clone from github
  • run npm install in plugin dir to install dependencies (need fix this...)
  • add and enable plugin in config.json: { "plugin": "holidays", "active": true }
  • create a "HolidaySensor" device to get the needed variable