Variables vs. helper items

Wow, this thread really develops into a great “Getting started and a little more…” discussion!
I’ve learned so much already and need to digest this a little.

I fully agree and as you mentioned: I could actually solve all my usecases so far with RuleDSL. The system works to my needs although it has grown over time.

But: I noticed that I made some special choices in the past which make the adaptation of my system, let’s say I add a new color temperature light which I would like to control mainly in homekit, more complex than it needs to be. To be honest: I sometimes look at my code and think: “Geez… I hope this will never break. This looks more complex than it needs to be!”

I always wondered about tiny details which bloated my code a lot: Why do I need such a complicated syncing mechanism between Kelvin and Mired items (see Synchronize 2 dependent items), why do I need to manually take care of timers in typical usecases (see Avoid state flickering with JRuby scripts)?
So I started my investigations and from a gut feeling found that JRuby seems to be quite powerful as it can handle lots of things in the background. This combined with the use of the semantic model.

That is why I would like to refactor my current system. The goal should be: Way less code to achieve the same behaviour of the system.