Closed Apollon77 closed 5 years ago
Wow, that's a lot smarter than what I was doing. Thanks.
I'll change this later today.
Yes, found that way after experimenting a bit while implementing in my ioBroker adapter directly.
In fact i defined a function and then have the function name as parameter instead of the function definition because it feeled weired in this "object definition context" :-)
Fixed in v1.4.0.
... you can use it like:
Rule:
And in main file: