As some of you already noticed, i have been building a binding for using ical-calendars as source for presence switches. Now is the time i’m sure i’ll get it done in a way it is maintainable and will be stable for daily use.
- The good: It already works as i expect, it follows at bit KISS, it contains unit-tests for the algorithm, the iCal-implementation is encapsulated enough so a replacement is easy
- The bad: There are some known issues (e.g. the calendar pulls first time after the configurable refreshtime, another parameter is currently ignored but planned to be implemented)
- The ugly: It uses a 3-rd party dependency for parsing iCals as i did not want to reinvent this
So it is currently not mainline-ready. But i’m working on it. Here is the source: https://github.com/daMihe/openhab2-addons (direct: https://github.com/daMihe/openhab2-addons/tree/create-icalpresence/bundles/org.openhab.binding.icalpresence)
@so many users from this forum helping me understanding my issues: a big thank you!