Rich, I’ve only just moved over to Openhab v3 (took a week or two migrating DSL rules and learning new bits etc). I’ve bumped in a few new features, one of which is new lighting rules with expire timers, however, I’m sticking with the BasicUI for now, so cant use this widget above. As such, I was thinking I could create say 5x sliders or setpoints to change the minutes value only of my expire timers (so 1 to 60 values).
This widget works great, but I cant use it in the BasicUI. And try as I might (for a good many hours) to understand the JS code with reading forums or trying to do something in Blocky, I’m getting nowhere, bar confused with errors in my logs.
Obviously my items with expires set are On/Off switches, so for each item with an expire, Id need a matching item to use as the slider (as far as I’m aware or would do in DSL rules). To put that in simple terms:
Slider item=PresenceDetectExpireChanger1 minValue=1 maxValue=60
Slider item=PresenceDetectExpireChanger2 minValue=1 maxValue=60
I read your Design Pattern here and many other forum posts, but I cannot seem to figure the way to make the right code that does what I’m asking for. Somewhere I’m getting lost between JS’s use of pulling in/using Item names, and I’ve tried with Blocky to re-create something, but struggling without a metadata option in there, and using the inline code block to affect the metadata of an item.
As an addition perhaps I could even store in the Item that the Number Item is going to affect, in a custom metadata Namespace, so that the code can just look up there all the bits it needs… but again, so far this is beyond my understanding.
Thanks in advance if you manage to find time to help me with this.