# \#templates

**URL:** https://community.openhab.org/tag/templates/5214.md

[Latest](https://community.openhab.org/latest.md) · [Categories](https://community.openhab.org/categories.md) · [Tags](https://community.openhab.org/tags.md)

---

## [How and Why to Write a Rule Template (revisited)](https://community.openhab.org/t/how-and-why-to-write-a-rule-template-revisited/167422)

<div class="topic-metadata">

**Author:** [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Replies:** 2\
**Last updated:** [December 29, 2025, 7:35pm UTC](https://community.openhab.org/t/how-and-why-to-write-a-rule-template-revisited/167422 "2025-12-29T19:35:07Z")

</div>

The contents of this tutorial are no longer accurate post OH 5.2 M1. I will be updating this once all the relevant PRs get merged. The overall approach remains sound but the file format for the tempaltes has changed. For…
