# \#code

**URL:** https://community.openhab.org/tag/code/212.md

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

---

## [Changing Z-Wave Thing Configuration parameter is not working in main-ui](https://community.openhab.org/t/changing-z-wave-thing-configuration-parameter-is-not-working-in-main-ui/130056)

<div class="topic-metadata">

**Author:** [@weigu](https://community.openhab.org/u/weigu)\
**Replies:** 7\
**Last updated:** [August 27, 2026, 7:33pm UTC](https://community.openhab.org/t/changing-z-wave-thing-configuration-parameter-is-not-working-in-main-ui/130056 "2026-08-27T19:33:44Z")

</div>

Hi, I’m using version 3.1.1 and have an issue with 2 Z-Wave devices from Devolo (Motion Sensor MT2647 and Door Window contact MT2648). Some configuration parameter are wrong, so that motion is always triggered and the …

---

## [Home Page won't load after changes](https://community.openhab.org/t/home-page-wont-load-after-changes/148375)

<div class="topic-metadata">

**Author:** [@Norman576](https://community.openhab.org/u/Norman576)\
**Replies:** 4\
**Last updated:** [August 6, 2023, 7:45pm UTC](https://community.openhab.org/t/home-page-wont-load-after-changes/148375 "2023-08-06T19:45:29Z")

</div>

Hi! So in January I made some changes to the code of my home page. The change was not what I was expecting and so I removed the changes I did. When doing so the home page would not load anymore. If I enter it, its stuck…

---

## [Misleading note text in "Transform Values" section OH3 GUI](https://community.openhab.org/t/misleading-note-text-in-transform-values-section-oh3-gui/145913)

<div class="topic-metadata">

**Author:** [@Vertux](https://community.openhab.org/u/Vertux)\
**Replies:** 2\
**Last updated:** [April 8, 2023, 7:36pm UTC](https://community.openhab.org/t/misleading-note-text-in-transform-values-section-oh3-gui/145913 "2023-04-08T19:36:17Z")

</div>

As far as I know, OH3 generates pices of code for every thing, item and link I create in the GUI, so I can check out the code in the code tab afterwards. I have added NOUS A1T (with Tasmota) as a generic MQTT thing and …

---

## [Counter add 1 loop](https://community.openhab.org/t/counter-add-1-loop/85871)

<div class="topic-metadata">

**Author:** [@sebastiaanbrian](https://community.openhab.org/u/sebastiaanbrian)\
**Replies:** 8\
**Last updated:** [November 21, 2019, 12:00pm UTC](https://community.openhab.org/t/counter-add-1-loop/85871 "2019-11-21T12:00:57Z")

</div>

Dear, I’m configuring an alarm. I need to count the times a wrong code is entered into the panel and save that. Everytime a wrong code is entered it needs to +1. I want to show the times a wrong code is entered into Str…

---

## [Column Alignment Tool](https://community.openhab.org/t/column-alignment-tool/82330)

<div class="topic-metadata">

**Author:** [@Max\_Bec](https://community.openhab.org/u/Max_Bec)\
**Replies:** 5\
**Last updated:** [September 23, 2019, 11:16pm UTC](https://community.openhab.org/t/column-alignment-tool/82330 "2019-09-23T23:16:43Z")

</div>

Hey guys, i am searching for a tool (would be the best if it is a VSC Extension) which can align my items file in columns. How are you guys handeling the problem? And do you know a tool for it? Fixed it myself: Thank…

---

## [Geofences in Android App - design choices](https://community.openhab.org/t/geofences-in-android-app-design-choices/45808)

<div class="topic-metadata">

**Author:** [@CasualTriangle](https://community.openhab.org/u/CasualTriangle)\
**Replies:** 5\
**Last updated:** [October 9, 2018, 6:40pm UTC](https://community.openhab.org/t/geofences-in-android-app-design-choices/45808 "2018-10-09T18:40:27Z")

</div>

Hey there, I wanted to use geofences in my OH2 setup, but didnt want to use any external apps like IFTTT and i saw that there was already a old pull request on github about it. After reading through the comments i was…

---

## [Defining channels in thing-types.xml?](https://community.openhab.org/t/defining-channels-in-thing-types-xml/45542)

<div class="topic-metadata">

**Author:** [@namraccr](https://community.openhab.org/u/namraccr)\
**Replies:** 0\
**Last updated:** [May 27, 2018, 11:18pm UTC](https://community.openhab.org/t/defining-channels-in-thing-types-xml/45542 "2018-05-27T23:18:18Z")

</div>

Looking for a way to define 3 channels and give them each a different label. Tried the following, which won’t compile. \<channel id="r1" typeId="Robot" label="Robot #1" /\> \<channel id="r2" typeId="Robot" label="Robot …

---

## [Questions about best practices implementing bindings](https://community.openhab.org/t/questions-about-best-practices-implementing-bindings/35405)

<div class="topic-metadata">

**Author:** [@hilbrand](https://community.openhab.org/u/hilbrand)\
**Replies:** 4\
**Last updated:** [October 27, 2017, 8:54pm UTC](https://community.openhab.org/t/questions-about-best-practices-implementing-bindings/35405 "2017-10-27T20:54:51Z")

</div>

I’ve been building some bindings and review code recently and looked at other reviews and have some questions about best practices: Threads It is in general not allowed to create your own threads (Point 2 of http://docs…

---

## [Using Java 8 APIs for OpenHAB 1 add-on development](https://community.openhab.org/t/using-java-8-apis-for-openhab-1-add-on-development/32931)

<div class="topic-metadata">

**Author:** [@tensberg](https://community.openhab.org/u/tensberg)\
**Replies:** 2\
**Last updated:** [August 8, 2017, 1:58am UTC](https://community.openhab.org/t/using-java-8-apis-for-openhab-1-add-on-development/32931 "2017-08-08T01:58:17Z")

</div>

I’d like to know if it is OK to use Java 8 APIs like Optional and Function in OpenHAB 1 add-ons like the FritzBoxTR064 binding I am currently working on. The coding guidelines say that the code must be compatible with Ja…

---

## [\[Solved\] Loop through group which is member of group](https://community.openhab.org/t/solved-loop-through-group-which-is-member-of-group/27992)

<div class="topic-metadata">

**Author:** [@Tox](https://community.openhab.org/u/Tox)\
**Replies:** 1\
**Last updated:** [May 8, 2017, 8:10am UTC](https://community.openhab.org/t/solved-loop-through-group-which-is-member-of-group/27992 "2017-05-08T08:10:05Z")

</div>

Hi! I’m trying to loop through a group (using ‘forEach’) where the group object is coming from another ‘forEach’ loop. Explanation: The item setup is something like this: Group grpProfiles Group grpProfile1 (grpPro…

---

## [Best way to access icons in one action](https://community.openhab.org/t/best-way-to-access-icons-in-one-action/25391)

<div class="topic-metadata">

**Author:** [@jmv\_driver](https://community.openhab.org/u/jmv_driver)\
**Replies:** 0\
**Last updated:** [March 21, 2017, 9:12am UTC](https://community.openhab.org/t/best-way-to-access-icons-in-one-action/25391 "2017-03-21T09:12:44Z")

</div>

Hi! Anyone can point me the best way to access the icons installed in one action? I want to create one action to create toasts and pass icons from the openhab iconset. Thanks,

---

## [Best place to post about developing bindings?](https://community.openhab.org/t/best-place-to-post-about-developing-bindings/16157)

<div class="topic-metadata">

**Author:** [@Stormwind](https://community.openhab.org/u/Stormwind)\
**Replies:** 1\
**Last updated:** [December 2, 2016, 2:50pm UTC](https://community.openhab.org/t/best-place-to-post-about-developing-bindings/16157 "2016-12-02T14:50:21Z")

</div>

Where is the best place to post about developing bindings? And alternatively, if it is a OH1.8 binding at first which would later be ported to OH2 once I migrate? I see the following possible forums: OpenHAB2 \> Bindi…

---

## [Examples of variable declaration in rules file](https://community.openhab.org/t/examples-of-variable-declaration-in-rules-file/11658)

<div class="topic-metadata">

**Author:** [@jooobay](https://community.openhab.org/u/jooobay)\
**Replies:** 2\
**Last updated:** [June 16, 2016, 6:04pm UTC](https://community.openhab.org/t/examples-of-variable-declaration-in-rules-file/11658 "2016-06-16T18:04:06Z")

</div>

Hi, I have some trouble with syntax of variable declaration. Basically, I would like to declare a bytes array that will be used for encryption. The Java syntax would be like : byte\[\] keyBytes = new byte\[\] { 's','o','m'…

---

## [Reuse of Rules - How to reduce the numberof Rules?](https://community.openhab.org/t/reuse-of-rules-how-to-reduce-the-numberof-rules/10404)

<div class="topic-metadata">

**Author:** [@HarpieC](https://community.openhab.org/u/HarpieC)\
**Replies:** 11\
**Last updated:** [May 11, 2016, 10:34am UTC](https://community.openhab.org/t/reuse-of-rules-how-to-reduce-the-numberof-rules/10404 "2016-05-11T10:34:39Z")

</div>

Hi, I learned to use Lambdas as Function definitions to reuse rule code. But it seems that I still have to define one rule for each item \* each lambda to get all conditions defined. I’m looking for a way to simplify thi…

---

## [Learn OH / Java - where to start](https://community.openhab.org/t/learn-oh-java-where-to-start/9422)

<div class="topic-metadata">

**Author:** [@Tab\_Daham](https://community.openhab.org/u/Tab_Daham)\
**Replies:** 2\
**Last updated:** [April 6, 2016, 5:57am UTC](https://community.openhab.org/t/learn-oh-java-where-to-start/9422 "2016-04-06T05:57:16Z")

</div>

Hi, I hope someone can point me to the right places, where I can learn Java or the tools needed to start. Im aware of the fact that google delivers a buck load of information, but maybe someone can recommend a starting …

---

## [How to test my own binding under OH2 b1?](https://community.openhab.org/t/how-to-test-my-own-binding-under-oh2-b1/6387)

<div class="topic-metadata">

**Author:** [@mr\_eskildsen](https://community.openhab.org/u/mr_eskildsen)\
**Replies:** 2\
**Last updated:** [January 17, 2016, 10:57pm UTC](https://community.openhab.org/t/how-to-test-my-own-binding-under-oh2-b1/6387 "2016-01-17T22:57:43Z")

</div>

I am working on a ZoneMinder binding and have now reached a state where the basics is done. Next step is some more realistic test, e.g. in my on test setup. In OpenHAB 1 I would just drop the jar in the addons folder and…
