# \#rules

**URL:** https://community.openhab.org/tag/rules/249.md

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

---

## [Piper (Text-to-Speech) is speaking too fast](https://community.openhab.org/t/piper-text-to-speech-is-speaking-too-fast/167101)

<div class="topic-metadata">

**Author:** [@Old-techno](https://community.openhab.org/u/Old-techno)\
**Replies:** 7\
**Last updated:** [October 14, 2026, 2:18pm UTC](https://community.openhab.org/t/piper-text-to-speech-is-speaking-too-fast/167101 "2026-10-14T14:18:49Z")

</div>

Good day all, I have installed the Add-on Piper (Text-to-Speech) on the openHAB 5.0.1 running on a windows 10 laptop using java version “21.0.8” because that laptop does not have access to the Internet. I am using a DS…

---

## [Reading a water meter's scanning disc: a battery-free optical reader with MQTT and openHAB](https://community.openhab.org/t/reading-a-water-meters-scanning-disc-a-battery-free-optical-reader-with-mqtt-and-openhab/170573)

<div class="topic-metadata">

**Author:** [@jb4711](https://community.openhab.org/u/jb4711)\
**Replies:** 1\
**Last updated:** [October 3, 2026, 4:27am UTC](https://community.openhab.org/t/reading-a-water-meters-scanning-disc-a-battery-free-optical-reader-with-mqtt-and-openhab/170573 "2026-10-03T04:27:45Z")

</div>

No camera, no OCR, no battery: most mechanical water meters already carry a small disc in their register that turns with the flow, so that the vendor’s pulse module can count it. A reflective sensor can count it just as …

---

## [Timeline picker to setup heating, light and so on](https://community.openhab.org/t/timeline-picker-to-setup-heating-light-and-so-on/55564)

<div class="topic-metadata">

**Author:** [@tose](https://community.openhab.org/u/tose)\
**Replies:** 943\
**Last updated:** [October 2, 2026, 3:08pm UTC](https://community.openhab.org/t/timeline-picker-to-setup-heating-light-and-so-on/55564 "2026-10-02T15:08:44Z")

</div>

openHAB timeline picker v3 This project extends openHABs basicUI by a sitemap component to setup timebased processes. (e.g. heating control, light control, rollershutter) In the component you can set and change interval…

---

## [Kudo for YAMLcomposer: Indicator and zigbee lights creation of items, groups, etc](https://community.openhab.org/t/kudo-for-yamlcomposer-indicator-and-zigbee-lights-creation-of-items-groups-etc/170091)

<div class="topic-metadata">

**Author:** [@Max\_G](https://community.openhab.org/u/Max_G)\
**Replies:** 9\
**Last updated:** [August 23, 2026, 11:15pm UTC](https://community.openhab.org/t/kudo-for-yamlcomposer-indicator-and-zigbee-lights-creation-of-items-groups-etc/170091 "2026-08-23T23:15:42Z")

</div>

This add-on “YAMLcomposer” rocks, at least for my use cases :slight\_smile: I only came across it when reading Reimplement my Sitemap (\>1000 Items) to WebUI using the yamlcomposer and yaml based widget templates . At fi…

---

## [Transforming incoming Channel Values without needing a traditional rule](https://community.openhab.org/t/transforming-incoming-channel-values-without-needing-a-traditional-rule/169820)

<div class="topic-metadata">

**Author:** [@BrettLHolmes](https://community.openhab.org/u/BrettLHolmes)\
**Replies:** 2\
**Last updated:** [July 17, 2026, 4:31pm UTC](https://community.openhab.org/t/transforming-incoming-channel-values-without-needing-a-traditional-rule/169820 "2026-07-17T16:31:04Z")

</div>

Hi All I know everyone has a lot going on with the new releases but thought i would take a quick moment to show a feature that I am sure many people have seen but will create a rule to handle (I almost did) So this is …

---

## [Update to 5.0.1 release from the last 5.0 milestone broke my rules: fixed!](https://community.openhab.org/t/update-to-5-0-1-release-from-the-last-5-0-milestone-broke-my-rules-fixed/166137)

<div class="topic-metadata">

**Author:** [@Mick\_Smothers](https://community.openhab.org/u/Mick_Smothers)\
**Replies:** 12\
**Last updated:** [July 7, 2026, 4:25pm UTC](https://community.openhab.org/t/update-to-5-0-1-release-from-the-last-5-0-milestone-broke-my-rules-fixed/166137 "2026-07-07T16:25:27Z")

</div>

Platform information: Hardware: Raspberry Pi/8GB/8GB OS: Openhabian Java Runtime Environment: Temurin 21 openHAB version: 5.0.1 Release Issue of the topic: How I fixed my rules not triggering on events Note: just po…

---

## [Time-based rules not working on 5.0.1](https://community.openhab.org/t/time-based-rules-not-working-on-5-0-1/166409)

<div class="topic-metadata">

**Author:** [@oakguy](https://community.openhab.org/u/oakguy)\
**Replies:** 26\
**Last updated:** [June 25, 2026, 11:09pm UTC](https://community.openhab.org/t/time-based-rules-not-working-on-5-0-1/166409 "2026-06-25T23:09:57Z")

</div>

Platform information: Hardware: Raspberry 4 - 4 gig OS: openhabian/Bookworm Java Runtime Environment: temurin-21-jre-arm64/bin/java openHAB version: 5.0.1 Issue of the topic: please be detailed explaining your issue P…

---

## [Script to find errors in items, rules and sitemap files](https://community.openhab.org/t/script-to-find-errors-in-items-rules-and-sitemap-files/169312)

<div class="topic-metadata">

**Author:** [@mihadoo](https://community.openhab.org/u/mihadoo)\
**Replies:** 10\
**Last updated:** [May 21, 2026, 6:36pm UTC](https://community.openhab.org/t/script-to-find-errors-in-items-rules-and-sitemap-files/169312 "2026-05-21T18:36:40Z")

</div>

When an openHAB installation grows to many things, items, rules and sitemap files, openHAB lacks the ability to check for errors in those files, especially errors in rules files are reported only during execution of rule…

---

## [Rules and rule templates YAML integration](https://community.openhab.org/t/rules-and-rule-templates-yaml-integration/168568)

<div class="topic-metadata">

**Author:** [@Nadahar](https://community.openhab.org/u/Nadahar)\
**Replies:** 308\
**Last updated:** [May 15, 2026, 3:49pm UTC](https://community.openhab.org/t/rules-and-rule-templates-yaml-integration/168568 "2026-05-15T15:49:23Z")

</div>

The rule file provider was finally merged, meaning that it is now possible to include rules and rule templates in the YAML configuration files together with Things, Items, tags etc. Documentation must be written, but I …

---

## [Ghostly behavior on a Thing turning OFF all lights](https://community.openhab.org/t/ghostly-behavior-on-a-thing-turning-off-all-lights/169107)

<div class="topic-metadata">

**Author:** [@pedrolima](https://community.openhab.org/u/pedrolima)\
**Replies:** 9\
**Last updated:** [April 23, 2026, 9:06am UTC](https://community.openhab.org/t/ghostly-behavior-on-a-thing-turning-off-all-lights/169107 "2026-04-23T09:06:58Z")

</div>

Platform information: Hardware: RPi5 8Gb 512Gb SSD OS: Raspbian Debian 12 (bookworm) Java Runtime Environment: Temurin-21.0.9+10 (build 21.0.9+10-LTS) openHAB version: 5.1.1 Here’s what’s happening: I have two thin…

---

## [!= is flagged as an error](https://community.openhab.org/t/is-flagged-as-an-error/169097)

<div class="topic-metadata">

**Author:** [@Domotekhome](https://community.openhab.org/u/Domotekhome)\
**Replies:** 8\
**Last updated:** [April 21, 2026, 5:45pm UTC](https://community.openhab.org/t/is-flagged-as-an-error/169097 "2026-04-21T17:45:19Z")

</div>

I know the question is silly… but why!?! my string (keypad.state as DecimalType != 1111 != is flagged as an error

---

## [Calculation of Timedifferences in DSL-Rules produces Errors (OH5.2.0-SNAPSHOT - Build #5309)](https://community.openhab.org/t/calculation-of-timedifferences-in-dsl-rules-produces-errors-oh5-2-0-snapshot-build-5309/169099)

<div class="topic-metadata">

**Author:** [@fibu-freak](https://community.openhab.org/u/fibu-freak)\
**Replies:** 3\
**Last updated:** [April 20, 2026, 5:03am UTC](https://community.openhab.org/t/calculation-of-timedifferences-in-dsl-rules-produces-errors-oh5-2-0-snapshot-build-5309/169099 "2026-04-20T05:03:06Z")

</div>

Pi5/8GB(PiOS Lite 64-bit(trixie)/SSD 120GB - OH5.1. openhabian (Test openHAB 5.2.0-SNAPSHOT - Build #5309 - RPi 5/8 / M.2 SSD) rule "Datum testen\_test" when // Item Dummy\_blind changed to "100" Item Dummy\_11 c…

---

## [System generates timeout messages when testing/debugging JRuby scripts](https://community.openhab.org/t/system-generates-timeout-messages-when-testing-debugging-jruby-scripts/154808)

<div class="topic-metadata">

**Author:** [@Duke\_Jones](https://community.openhab.org/u/Duke_Jones)\
**Replies:** 20\
**Last updated:** [April 17, 2026, 7:38am UTC](https://community.openhab.org/t/system-generates-timeout-messages-when-testing-debugging-jruby-scripts/154808 "2026-04-17T07:38:05Z")

</div>

Hi, I keep noticing that my system starts to generate timeout messages after a short time when testing JRuby scripts. (system: current Openhabian (4.1.1) on as Raspberry 4B/4GB) The messages are of the type: 2024-03-22…

---

## [OH5: Adding new items to new channels triggers partial and related rule reload](https://community.openhab.org/t/oh5-adding-new-items-to-new-channels-triggers-partial-and-related-rule-reload/168888)

<div class="topic-metadata">

**Author:** [@Max\_G](https://community.openhab.org/u/Max_G)\
**Replies:** 6\
**Last updated:** [March 26, 2026, 2:51pm UTC](https://community.openhab.org/t/oh5-adding-new-items-to-new-channels-triggers-partial-and-related-rule-reload/168888 "2026-03-26T14:51:27Z")

</div>

Platform information: Hardware: Proxmox | LXC | Docker | 2 CPUs | 8 GB RAM | 16 GB SSD OS: Debian Trixie Java Runtime Environment: openjdk 21.0.10 2026-01-20 OpenJDK Runtime Environment (build 21.0.10+7-Debian-1deb1…

---

## [Managing openHAB Rules Like Production Software: Testing, Automation, and Troubleshooting](https://community.openhab.org/t/managing-openhab-rules-like-production-software-testing-automation-and-troubleshooting/168641)

<div class="topic-metadata">

**Author:** [@patrik\_gfeller](https://community.openhab.org/u/patrik_gfeller)\
**Replies:** 2\
**Last updated:** [March 18, 2026, 6:46pm UTC](https://community.openhab.org/t/managing-openhab-rules-like-production-software-testing-automation-and-troubleshooting/168641 "2026-03-18T18:46:09Z")

</div>

Hi all, as I’m using openHAB since more than 10 year regressions problems, and troubleshooting after upgrades are well known to me. So - as I tried to leverage AI agents to create a system to create testable rules and w…

---

## [Annoying "action" in Code Editor](https://community.openhab.org/t/annoying-action-in-code-editor/168720)

<div class="topic-metadata">

**Author:** [@efrankzm](https://community.openhab.org/u/efrankzm)\
**Replies:** 6\
**Last updated:** [March 12, 2026, 9:56pm UTC](https://community.openhab.org/t/annoying-action-in-code-editor/168720 "2026-03-12T21:56:14Z")

</div>

Hi, in the code editor, a dropdown menu now always appears when you type a space or end the command with ;. I find the latter extremely annoying because when you want to press Enter to go to the next line after ;, it im…

---

## [Global functions for use in rules](https://community.openhab.org/t/global-functions-for-use-in-rules/37185)

<div class="topic-metadata">

**Author:** [@Roi](https://community.openhab.org/u/Roi)\
**Replies:** 23\
**Last updated:** [March 5, 2026, 3:55pm UTC](https://community.openhab.org/t/global-functions-for-use-in-rules/37185 "2026-03-05T15:55:29Z")

</div>

Platform information: Hardware: Raspberry Pi 3 OS: openHABian openHAB version: 2.1 Hello, I’m stuck here and I do not find much here in the forums or through Google. Or maybe I just do not understand how to read an…

---

## [Calculating Water Consumption using Droplet (JS issue)](https://community.openhab.org/t/calculating-water-consumption-using-droplet-js-issue/168258)

<div class="topic-metadata">

**Author:** [@brianlay](https://community.openhab.org/u/brianlay)\
**Replies:** 14\
**Last updated:** [February 23, 2026, 7:23am UTC](https://community.openhab.org/t/calculating-water-consumption-using-droplet-js-issue/168258 "2026-02-23T07:23:55Z")

</div>

Running OH 5.1.1 on RPi5 configured entirely with Main UI I recently installed a Droplet Water Sensor and integrated to OH with MQTT. I’d like to have OH keep a running total of water used per day as well as display …

---

## [Issues with DateTimeType Cast](https://community.openhab.org/t/issues-with-datetimetype-cast/162281)

<div class="topic-metadata">

**Author:** [@MatziBrow](https://community.openhab.org/u/MatziBrow)\
**Replies:** 5\
**Last updated:** [February 7, 2026, 3:46pm UTC](https://community.openhab.org/t/issues-with-datetimetype-cast/162281 "2026-02-07T15:46:33Z")

</div>

Platform & System Information: Ubuntu 18.04.6 LTS (GNU/Linux 4.15.0-213-generic x86\_64) Openhab Version: 4.1.1 (Build) OpenJDK Runtime Environment (build 17.0.7+7-Ubuntu-0ubuntu118.04) I have some javascript inte…

---

## [Rules not running - first time user](https://community.openhab.org/t/rules-not-running-first-time-user/168126)

<div class="topic-metadata">

**Author:** [@highvoltage](https://community.openhab.org/u/highvoltage)\
**Replies:** 4\
**Last updated:** [January 28, 2026, 2:06pm UTC](https://community.openhab.org/t/rules-not-running-first-time-user/168126 "2026-01-28T14:06:56Z")

</div>

Rules not (triggering) running. They do when I push the “RUN NOW” triangle and they it shows in log file, yet the simplest run at specific time triggers does not work.

---

## [Issue with able/disable functionality in Main UI rule generator](https://community.openhab.org/t/issue-with-able-disable-functionality-in-main-ui-rule-generator/168079)

<div class="topic-metadata">

**Author:** [@DiegoGR](https://community.openhab.org/u/DiegoGR)\
**Replies:** 5\
**Last updated:** [January 24, 2026, 4:56pm UTC](https://community.openhab.org/t/issue-with-able-disable-functionality-in-main-ui-rule-generator/168079 "2026-01-24T16:56:08Z")

</div>

Platform information: Hardware: Intel Core i5 4th gen / 8 Gb RAM DDR3 / SSD PCI Exp 128 Mb OS: W10 Home with extended safety pack until october 2026 Java Runtime Environment: Zulu 21 openHAB version: 5.1.0.M3 Issue o…

---

## [HTTP Blockly help and clarification](https://community.openhab.org/t/http-blockly-help-and-clarification/168071)

<div class="topic-metadata">

**Author:** [@kjknauss](https://community.openhab.org/u/kjknauss)\
**Replies:** 10\
**Last updated:** [January 23, 2026, 5:15am UTC](https://community.openhab.org/t/http-blockly-help-and-clarification/168071 "2026-01-23T05:15:34Z")

</div>

Long story short, I created a simple device based on ESP8266 to control my Somfy RTS awning. The device responds to: http://192.168.30.209/stop http://192.168.30.209/up http://192.168.30.209/down I worked a bit with t…

---

## [Error with Blockly generated code since Openhab 5.1](https://community.openhab.org/t/error-with-blockly-generated-code-since-openhab-5-1/167804)

<div class="topic-metadata">

**Author:** [@Huaba](https://community.openhab.org/u/Huaba)\
**Replies:** 5\
**Last updated:** [January 18, 2026, 7:48pm UTC](https://community.openhab.org/t/error-with-blockly-generated-code-since-openhab-5-1/167804 "2026-01-18T19:48:37Z")

</div>

Hi, i’ve a Blockly part in the “But only if” section in some rules, which doesn’t work since upgrade from Openhab 5.0 to 5.1. The openhab.log shows this entry for all rules with these Blockly part: 2026-01-03 14:18:00…

---

## [Python logging question](https://community.openhab.org/t/python-logging-question/167922)

<div class="topic-metadata">

**Author:** [@v61](https://community.openhab.org/u/v61)\
**Replies:** 4\
**Last updated:** [January 14, 2026, 1:43pm UTC](https://community.openhab.org/t/python-logging-question/167922 "2026-01-14T13:43:25Z")

</div>

Hi, When I run this python test in OH 5.1.1: from openhab import logger logger.info("logger is used") print("print is used") the result is this: 2026-01-09 15:23:00.013 \[INFO \] \[g.openhab.automation.pythonscripting…

---

## [Rule always fires despite Condition Script in Place](https://community.openhab.org/t/rule-always-fires-despite-condition-script-in-place/167990)

<div class="topic-metadata">

**Author:** [@Ltty](https://community.openhab.org/u/Ltty)\
**Replies:** 4\
**Last updated:** [January 13, 2026, 7:22pm UTC](https://community.openhab.org/t/rule-always-fires-despite-condition-script-in-place/167990 "2026-01-13T19:22:52Z")

</div>

Hey all, I am on OpenHab 5.1.1 and have a JavaScript Condition Script for one of my rules in place to ensure that the rule is only triggered between dusk and dawn. I’m using ECMA 262 Edition 11. var dusk = items.getIte…

---

## [publishMQTT stopped working in .rules](https://community.openhab.org/t/publishmqtt-stopped-working-in-rules/167914)

<div class="topic-metadata">

**Author:** [@dinkop](https://community.openhab.org/u/dinkop)\
**Replies:** 3\
**Last updated:** [January 9, 2026, 3:22pm UTC](https://community.openhab.org/t/publishmqtt-stopped-working-in-rules/167914 "2026-01-09T15:22:23Z")

</div>

After upgrading to openHAB 5.1.0 (or maybe even before that - not 100% sure) the publishMQTT action stopped working in rules. I have a very simple two-channel Tasmota-based light switch thing, nothing special - on/off …

---

## [Bringing electricity information from eloverblik.dk and energidataservice.dk into Openhab](https://community.openhab.org/t/bringing-electricity-information-from-eloverblik-dk-and-energidataservice-dk-into-openhab/143470)

<div class="topic-metadata">

**Author:** [@katerica](https://community.openhab.org/u/katerica)\
**Replies:** 151\
**Last updated:** [December 30, 2025, 4:17pm UTC](https://community.openhab.org/t/bringing-electricity-information-from-eloverblik-dk-and-energidataservice-dk-into-openhab/143470 "2025-12-30T16:17:54Z")

</div>

Hello, I have been eager to get real time information on Danish electricity prices into Openhab for potential automation - inspired by this Rest-API setup in openhab. In Denmark it is possible to create an account into h…

---

## [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…

---

## [Problems with rule generator in Main UI](https://community.openhab.org/t/problems-with-rule-generator-in-main-ui/167426)

<div class="topic-metadata">

**Author:** [@DiegoGR](https://community.openhab.org/u/DiegoGR)\
**Replies:** 16\
**Last updated:** [December 10, 2025, 11:49pm UTC](https://community.openhab.org/t/problems-with-rule-generator-in-main-ui/167426 "2025-12-10T23:49:36Z")

</div>

Platform information: Hardware: Intel Core i5 4th gen / 8 Gb RAM DDR3 / SSD PCI Exp 128 Mb OS: W10 Home with extended safety pack until october 2026 Java Runtime Environment: Zulu 21 openHAB version: 5.1.0.M3 Issue o…

---

## [Surveillance Station Home Mode switch via OpenHab3](https://community.openhab.org/t/surveillance-station-home-mode-switch-via-openhab3/143566)

<div class="topic-metadata">

**Author:** [@Green93](https://community.openhab.org/u/Green93)\
**Replies:** 4\
**Last updated:** [December 6, 2025, 10:38am UTC](https://community.openhab.org/t/surveillance-station-home-mode-switch-via-openhab3/143566 "2025-12-06T10:38:03Z")

</div>

Hi there, i’m new on OH and on this forum so I hope i’m not making any mistake creating this post! I use OH3 running into a Docker Container inside a Synology Nas. I’m trying to use keypad widget to create a text var,…

[Next page](https://community.openhab.org/tag/rules/249.md?match_all_tags=true&page=1&tags%5B%5D=rules)
