If you are into Shomer Shabbat home automation, I built a free Homebridge Plugin to know when it Shabbat, Yom Tov, Sukkot, etc. It’s highly configurable, supports Israel/Diaspora settings, and uses your Longitude and Latitude for timing. You configure your Candlelighting and Havdalah offset.
If you use Apple’s HomeKit, and have a Homebridge or HOOBS setup, you simply install it. It has support for the graphical UI configuration.
It creates a “Tile” with 14 “Contact Sensors” that you can build your Automation Logic around. Things that I use it for:
Motion Sensor Rules – Trigger on the motion, but only when Kodesh (Shabbat OR Yom Tov) is off, so those rules turn off.
Dining Room/Patio Settings – Turn on before lunch, and Off after lunch, things related to Shabbat/Yom Tov entertaining. My rule fires when it is Shabbat/Yom Tov but NOT Sukkot. When it is Sukkot AND Shabbat/Yom Tov, the Sukkah turns on/off at that time.
I even included some obscure things… if you want your music to turn on, but only when it’s not the Three Weeks or the Omer, you can use those sensors. If you wanted an outlet for a Menorah to turn on/off during Chanukah only, you can do that as well (I thought that might be helpful for a dorm/business that is automating Christamas lights). My family eats in the Sukkah on Shemini Atzeret, to I turn on sheminiatzeret_in_sukkot, but it defaults to off.
All holidays are listed in Modern Hebrew Transliterations, but are settable in the config file, so you can switch them to Ashkenazi, or proper Hebrew just by entering it in the config file.
I’d love feedback. It uses He-Date and Sun-Calc, is 100% open source, and posted in Github.
I wrote it for myself, I spend an extra couple of hours making it configurable, and I hope it is useful to others.