# Frage zu Logikfunktionen

**URL:** <https://community.homey.app/t/frage-zu-logikfunktionen/143752>\
**Category:** Flows (DE)\
**Created:** [October 4, 2025, 1:57pm UTC](https://community.homey.app/t/frage-zu-logikfunktionen/143752 "2025-10-04T13:57:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manni](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/manni/32/125114_2.png) [@Manni](https://community.homey.app/u/Manni)\
**Post date:** [October 4, 2025, 1:57pm UTC](https://community.homey.app/t/frage-zu-logikfunktionen/143752/1 "2025-10-04T13:57:32Z")

</div>

Hallo zusammen,

warum funktioniert dies nicht:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/a/4ab076a6be8cc46cda846dc1c05216b61b1d27f8.png)

Der Wert der Variable ist anfangs 0. Sobald die Addition durchlaufen wird, ist der Wert NaN, also anscheinend nicht initialisiert.

Danke für Eure Tipps….

---

<div class="post-metadata">

**Author:** ![DirkH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkh/32/78952_2.png) [@DirkH](https://community.homey.app/u/DirkH)\
**Post date:** [October 4, 2025, 2:07pm UTC](https://community.homey.app/t/frage-zu-logikfunktionen/143752/2 "2025-10-04T14:07:33Z")

</div>

Hi @Manni,  
Die Berechnungsfunktion von Logik verlangt zwei geschweifte Klammern am Anfang und Ende.  
Ich glaube, da stolpert jeder mal drüber. 🙃

---

<div class="post-metadata">

**Author:** ![Undertaker](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/undertaker/32/53278_2.png) [@Undertaker](https://community.homey.app/u/Undertaker)\
**Post date:** [October 4, 2025, 2:12pm UTC](https://community.homey.app/t/frage-zu-logikfunktionen/143752/3 "2025-10-04T14:12:27Z")

</div>

Hallo Manni und herzlich willkommen.

ich geh mal davon aus, dass das Dimmlevel bei einer Leuchte gemeint ist. Viele Lampen Dimmen von 0 bis 1. Das heißt mit 99 können Sie nichts anfangen. Wenn du 99 haben willst, gib mal 0.99 ein. Das plus 10 ändere in 0.1 und versuch es nochmal.

0 = aus

1= 100% Helligkeit

Ich komm leider noch nicht ganz dahinter, was genau der Flow machen soll. Vielleicht gibt es eine andere Möglichkeit das Gewünschte zu erreichen.

---

<div class="post-metadata">

**Author:** ![Manni](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/manni/32/125114_2.png) [@Manni](https://community.homey.app/u/Manni)\
**Post date:** [October 4, 2025, 3:09pm UTC](https://community.homey.app/t/frage-zu-logikfunktionen/143752/4 "2025-10-04T15:09:35Z")

</div>

Ich bin absoluter Anfänger mit Homey und es sind nur erste Tests, kein vollständiger Flow. Mein Ziel ist, eine globale Variable zu haben, die mir in Abhängigkeit der Helligkeit draußen den Dimmlevel innen definiert. Beide Hinweise haben meine Probleme vorerst gelöst.

Vielen Dank dafür!

---

<div class="post-metadata">

**Author:** ![Daniel\_Gut](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_gut/32/79948_2.png) [@Daniel\_Gut](https://community.homey.app/u/Daniel_Gut)\
**Post date:** [October 14, 2025, 11:22am UTC](https://community.homey.app/t/frage-zu-logikfunktionen/143752/5 "2025-10-14T11:22:39Z")

</div>

Wenn du in Abhänigkeit von draussen das Dimmlevel einstellen möchtest hilft dir vieleicht auch diese App [Circadian Lighting | Homey](https://homey.app/de-ch/app/net.alistairs.circadian/Circadian-Lighting/)

---

<div class="post-metadata">

**Author:** ![Manni](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/manni/32/125114_2.png) [@Manni](https://community.homey.app/u/Manni)\
**Post date:** [October 14, 2025, 2:49pm UTC](https://community.homey.app/t/frage-zu-logikfunktionen/143752/6 "2025-10-14T14:49:34Z")

</div>

Danke Dir! Werde ich mal testen…
